Offscreen rendering shows window when built with VTK_USE_X on Ubuntu.
VTK example with offscreen rendering ON shows a quick window popup when built with VTK_USE_X. I read through the forums and other VTK issues 11911 and 11912, which show often that the problem is fixed, but I still have the issue. I looked in the code and the suggested fixes are already there. Does someone have an idea how to prevent the popup window?
I use VTK 8.1 built on Ubuntu 16.04 LTS with CMake 3.12 and libxt-dev (1:1.1.5-0ubuntu1).
CMake configuration:
cmake \
-DBUILD_EXAMPLES:bool=OFF \
-DBUILD_SHARED_LIBS:bool=OFF \
-DBUILD_TESTING:bool=OFF \
-DCMAKE_BUILD_TYPE:string="Release" \
-DCMAKE_CXX_FLAGS:string=-fPIC\ -std=c++14 \
-DCMAKE_CXX_FLAGS_RELEASE:string=-O3\ -DNDEBUG\ -fvisibility=hidden\ -fvisibility-inlines-hidden \
-DCMAKE_C_FLAGS:string=-fPIC \
-DCMAKE_C_FLAGS_RELEASE:string=-O3\ -DNDEBUG\ -fvisibility=hidden \
-DModule_vtkWebCore:bool=ON \
-DVTK_Group_Rendering:bool=ON \
-DVTK_Group_StandAlone:bool=ON \
-DVTK_USE_X:bool=ON \
../source
The Example I use for offscreen rendering is a combination of the VTK StackedPlot example and an implementation of an image to string encoding. Here the CMakeLists.txt
I already tried the same on a recent VTK master, which posed the same problem. Should I try to use another OpenGL backend like using VTK_OPENGL_HAS_EGL?
Thanks beforehand.