MantisBT - VTK
View Issue Details
0014985VTK(No Category)public2014-09-07 10:492016-08-12 09:55
Victor Lamoine 
Kitware Robot 
normalminorhave not tried
closedmoved 
6.0.0 
 
TBD
incorrect functionality
0014985: CloseWindow example not working on Linux Ubuntu
The example CloseWindow (http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CloseWindow [^]) does not work as expected; the first window remains opened (but frozen) until the application is terminated.

Tested with VTK 6.1.0
gcc 4.8.2
Ubuntu 14.04 x64

I believe the problem is in vtkRenderWindowInteractor:
http://www.vtk.org/doc/nightly/html/classvtkRenderWindowInteractor.html#a538b1adf29d41c990bd494005c962eb7 [^]

http://www.vtk.org/doc/nightly/html/classvtkXRenderWindowInteractor.html#a2cc229d0bcba69569b3783660f48c367 [^]

When the second window is drawn the first one becomes frozen, clicking on the X icon does not close the window; the user cannot spin the viewer with the mouse.

Please find enclosed a screenshot.
linux
png vtk-6.1-not_closing.png (22,491) 2014-09-07 10:49
https://www.vtk.org/Bug/file/9709/vtk-6.1-not_closing.png
png
Issue History
2014-09-07 10:49Victor LamoineNew Issue
2014-09-07 10:49Victor LamoineFile Added: vtk-6.1-not_closing.png
2015-02-12 05:02Victor LamoineTag Attached: linux
2015-07-10 11:08Victor LamoineNote Added: 0034741
2015-10-23 11:42atenpasNote Added: 0035382
2016-03-18 12:50Christopher MitchellNote Added: 0035847
2016-05-03 11:24Eduardo RuizNote Added: 0035925
2016-07-06 12:51Utkarsh AyachitAssigned To => Utkarsh Ayachit
2016-07-06 12:51Utkarsh AyachitStatusbacklog => active development
2016-07-06 13:32Utkarsh AyachitNote Added: 0036211
2016-07-06 13:32Utkarsh AyachitAssigned ToUtkarsh Ayachit =>
2016-07-06 13:33Utkarsh AyachitStatusactive development => backlog
2016-07-06 17:18Victor LamoineNote Added: 0036313
2016-08-12 09:55Kitware RobotNote Added: 0037340
2016-08-12 09:55Kitware RobotStatusbacklog => closed
2016-08-12 09:55Kitware RobotResolutionopen => moved
2016-08-12 09:55Kitware RobotAssigned To => Kitware Robot

Notes
(0034741)
Victor Lamoine   
2015-07-10 11:08   
With VTK latest trunk (6.3) closing the first window by clicking the (X) button crashes the program with the following error:

Window 1 closed...
X Error of failed request: GLXBadDrawable
  Major opcode of failed request: 155 (GLX)
  Minor opcode of failed request: 11 (X_GLXSwapBuffers)
  Serial number of failed request: 196
  Current serial number in output stream: 198

Closing the first window by hitting 'q' on the keyboard does not crash program but does not close the window either.
(0035382)
atenpas   
2015-10-23 11:42   
Same problem here.
(0035847)
Christopher Mitchell   
2016-03-18 12:50   
This problem still exists. Hitting 'q' to close the window does not close the window, and creating future instances of the same class causes overlapping windows (and later double free problems).
(0035925)
Eduardo Ruiz   
2016-05-03 11:24   
I have the same problem.
(0036211)
Utkarsh Ayachit   
2016-07-06 13:32   
I can't reproduce this with latest master and OpenGL2 rendering backend.
(0036313)
Victor Lamoine   
2016-07-06 17:18   
I can still reproduce this issue.

VTK version compiled:
9fcbac099c4540370b5e75a1e2154df50c9b9126

Linux desktop 4.2.0-39-generic #46~14.04.1-Ubuntu SMP Mon Jun 13 15:40:38 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

I'm using Unity desktop environment.


CMakeCache + CloseWindow ldd output are here:
https://gist.github.com/VictorLamoine/ae4834e017a06a18053d4372d20fe39b [^]

What information can I provide to help you?
(0037340)
Kitware Robot   
2016-08-12 09:55   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.