MantisBT - VTK
View Issue Details
0012767VTK(No Category)public2011-12-05 09:132016-08-12 09:55
Luke Dodd 
Sebastien Jourdain 
normalminorhave not tried
closedmoved 
5.8.0 
 
TBD
crash
0012767: MakeCurrent() error with vtkPanel using the Java wrappers under windows.
Somtimes, when disposing a vtkPanel an error occurs in vtkWin32OpenGLRenderWindow::MakeCurrent().

(Typically a vtkOutputWindow pops up, and the application crashes out)

Code that reliable reproduces the error is here: https://github.com/lukedodd/lwjgl-vtkcanvas/blob/lwjgl-vtkcanvas/lwjglvtkcanvas/VTKMakeCurrentBugReproduce.java [^]

In the context of a larger project I've had this error happen fairly non-deterministically. I've had someone else report that the test case crashes for them too.

This error happens under fairly similar circumstances to: http://www.vtk.org/Bug/view.php?id=12756 [^]

But the panel must have it's Delete method called prior to disposing, which judging from the source of vtkPanel is the only way to ensure memory is cleaned up.

As with bug 0012756 my alternative vtkPanel class which is based on LWJGL fixes the issue. https://github.com/lukedodd/lwjgl-vtkcanvas/tree/lwjgl-vtkcanvas/lwjglvtkcanvas [^]

I've attached a stack trace of the MakeCurrent error.
No tags attached.
png stacktrace2.png (397,029) 2011-12-05 09:13
https://www.vtk.org/Bug/file/9082/stacktrace2.png
Issue History
2011-12-05 09:13Luke DoddNew Issue
2011-12-05 09:13Luke DoddFile Added: stacktrace2.png
2013-07-22 12:44Dave DeMarleNote Added: 0031153
2013-07-22 12:44Dave DeMarleStatusbacklog => expired
2013-07-22 12:44Dave DeMarleResolutionopen => fixed
2013-07-22 12:44Dave DeMarleAssigned To => Dave DeMarle
2013-08-08 12:41Sebastien JourdainAssigned ToDave DeMarle => Sebastien Jourdain
2016-08-12 09:55Kitware RobotNote Added: 0037257
2016-08-12 09:55Kitware RobotStatusexpired => closed
2016-08-12 09:55Kitware RobotResolutionfixed => moved

Notes
(0031153)
Dave DeMarle   
2013-07-22 12:44   
feel free to reopen if you find this is not working in 6.0.0
(0037257)
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.