Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix problem with spin() and spinOnce() for X Window System #5252

Merged

Conversation

mvieth
Copy link
Member

@mvieth mvieth commented May 10, 2022

Due to a problem in VTK (versions 9.0.2, 9.0.3, and 9.1.0), the Start() function of the vtkXRenderWindowInteractor crashes when Terminate() is called. This leads to spin() and spinOnce() crashing.
This commit adds a fixed version of the vtkXRenderWindowInteractor that is used for the previously mentioned VTK versions.
Additionally, it is necessary to change spinOnce() from Start()+timer+Terminate() to ProcessEvents()+sleep since Terminate() closes the window in future VTK versions (and the fixed vtkXRenderWindowInteractor).
The changes are limited to the affected versions and the X Window System to avoid regressions for e.g. Windows and MacOS

Due to a problem in VTK (versions 9.0.2, 9.0.3, and 9.1.0), the Start() function of the vtkXRenderWindowInteractor crashes when Terminate() is called. This leads to spin() and spinOnce() crashing.
This commit adds a fixed version of the vtkXRenderWindowInteractor that is used for the previously mentioned VTK versions.
Additionally, it is necessary to change spinOnce() from Start()+timer+Terminate() to ProcessEvents()+sleep since Terminate() closes the window in future VTK versions (and the fixed vtkXRenderWindowInteractor).
The changes are limited to the affected versions and the X Window System to avoid regressions for e.g. Windows and MacOS
@mvieth mvieth marked this pull request as ready for review May 12, 2022 19:10
@mvieth mvieth requested a review from larshg May 13, 2022 16:31
@mvieth mvieth merged commit 6db8266 into PointCloudLibrary:master May 19, 2022
@mvieth mvieth deleted the fix_vtkXRenderWindowInteractor branch May 19, 2022 19:01
@yasamoka
Copy link
Contributor

Thank you very much for this!

yasamoka pushed a commit to yasamoka/pcl that referenced this pull request Jun 17, 2022
…dLibrary#5252)

* Fix problem with spin() and spinOnce() for X Window System
Due to a problem in VTK (versions 9.0.2, 9.0.3, and 9.1.0), the Start() function of the vtkXRenderWindowInteractor crashes when Terminate() is called. This leads to spin() and spinOnce() crashing.
This commit adds a fixed version of the vtkXRenderWindowInteractor that is used for the previously mentioned VTK versions.
Additionally, it is necessary to change spinOnce() from Start()+timer+Terminate() to ProcessEvents()+sleep since Terminate() closes the window in future VTK versions (and the fixed vtkXRenderWindowInteractor).
The changes are limited to the affected versions and the X Window System to avoid regressions for e.g. Windows and MacOS

* Do not always compile the fixed X rwi

* Only include header if necessary
nikhilm added a commit to nikhilm/SFND_Lidar_Obstacle_Detection that referenced this pull request Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: fix Meta-information for changelog generation module: visualization
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants