Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • VTK VTK
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 738
    • Issues 738
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 203
    • Merge requests 203
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTK
  • VTKVTK
  • Issues
  • #17436

Closed
Open
Created Nov 06, 2018 by Steven Roodhorst@s.roodhorst

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.

Edited Nov 06, 2018 by Steven Roodhorst
Assignee
Assign to
Time tracking