View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0016122VTK(No Category)public2016-05-12 15:152016-08-12 09:55
Reportercrupp 
Assigned ToKitware Robot 
PriorityhighSeverityminorReproducibilityhave not tried
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version6.3.0 
Target VersionFixed in Version 
Summary0016122: Fix for freeze with Java JOGL interaction
DescriptionI seem to have found a solution to the problem with JOGL referenced in this conversation:
http://www.vtk.org/pipermail/vtkusers/2014-May/084032.html [^]

To recap, the following doesn't work and freezes on Windows:
- Screen capture (Using VTK code)
- Rubber band type of interaction where a rectangle get drawn on top of
window.
- Volume rendering

Upon starting a rubber band interaction, vtk goes into an infinite loop in GetPixelData when clearing the OpenGL errors. This, I think, is a red herring. Basically, OpenGL gets into a bad state somehow.

The fix seems to be to force the context to be current in the java code. In vtkAbstractJoglComponent.java, the fix is to not check if the context is current, but instead always make it current (i.e., the if statement is commented out, forcing the makeCurrent() statement):

                // Make sure the JOGL Context is current
                GLContext ctx = drawable.getContext();
                //if (!ctx.isCurrent()) {
                    ctx.makeCurrent();
                //}


I've only tested this on Windows using a vtkInteractorStyleRubberBandZoom with VTK 6.1 and 7.0. It likely fixes the other issues and platforms, but someone else will need to test those.
TagsNo tags attached.
ProjectTBD
Typeincorrect functionality
Attached Files

 Relationships

  Notes
(0037472)
Kitware Robot (administrator)
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.

 Issue History
Date Modified Username Field Change
2016-05-12 15:15 crupp New Issue
2016-08-12 09:55 Kitware Robot Note Added: 0037472
2016-08-12 09:55 Kitware Robot Status backlog => closed
2016-08-12 09:55 Kitware Robot Resolution open => moved
2016-08-12 09:55 Kitware Robot Assigned To => Kitware Robot


Copyright © 2000 - 2018 MantisBT Team