[vtkusers] Bug report: ImagePlaneWidget crashes on WinXP.
Jeff Lee
jeff at cdnorthamerica.com
Thu Jan 16 16:03:05 EST 2003
Hi,
Haven't had time for a workaround - there is a problem in general that
the drawing surface needs to be locked when a pick is performed - in
this case, ImagePlaneWidget is calling pick from c++ when it needs to be
wrapped with a Lock/UnLock. There may be a way to attach callbacks to
the picker, but honestly I just haven't had time to track it down,
-Jeff
Budd Hirons wrote:
> I am testing the ImagePlaneWidget as below, and I get the same set of
> errors for the same events. I am on Win2k, using a current nightly
> source build and vtkImagePlaneWidget.cxx shows version 1.56 and but
> other than that the debug output is virtually identical. I will
> implement it from C++ (VC6) and see if it occurs there as well. Has
> anyone come up with a fix for this?
>
> Budd Hirons
>
> At 11:46 AM 9/27/2002 -0400, you wrote:
>
>> I wrote this, and it works fine for Linux, but there may be some
>> problems on win32. It looks like the problem is that the image plane
>> widget performs a pick while the drawing surface is already locked.
>> I'll have to run on windows and debug it. Thanks for the report.
>> -Jeff
>>
>> Jarek Sacha wrote:
>>
>>> I am trying to use Java example ImagePlaneWidget. It starts fine and
>>> displays an image. However, it crashes on any interaction. Here are
>>> some
>>> examples (detailed error message for the first one at the end of the
>>> e-mail):
>>>
>>> Right mouse button:
>>> EXCEPTION_ACCESS_VIOLATION
>>> Hybrid\vtkImagePlaneWidget.cxx : 546
>>> " this->PlanePicker->Pick(X,Y,0.0,this->CurrentRenderer);"
>>>
>>> Left mouse button:
>>> EXCEPTION_ACCESS_VIOLATION
>>> Hybrid\vtkImagePlaneWidget.cxx : 546
>>> " this->PlanePicker->Pick(X,Y,0.0,this->CurrentRenderer);"
>>>
>>> Middle mouse button:
>>> EXCEPTION_ACCESS_VIOLATION
>>> Hybrid\vtkImagePlaneWidget.cxx : 618:
>>> " this->PlanePicker->Pick(X,Y,0.0,this->CurrentRenderer);"
>>>
>>> Pressing key "q":
>>> EXCEPTION_ACCESS_VIOLATION
>>> Rendering/vtkInteractorObserver.cxx : 101
>>> " self->OnChar();"
>>>
>>> I am able to run SimpleVTK example with no problems, mouse and key
>>> board
>>> interaction works fine. A am using WinXP, VC++ 6, VTK 9/26/2002 CVS
>>> (vtkImagePlaneWidget.cxx shows $Date: 2002/09/25 18:40:49 $ $Revision:
>>> 1.45 $), Java 1.4.1.
>>>
>>>
>>> Jarek
>>> ---------------------------------------------------------
>>> Full error printout for crash pressing left mouse button
>>> ---------------------------------------------------------
>>> An unexpected exception has been detected in native code outside the
>>> VM.
>>> Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0xBBBACA7
>>> Function=vtkImagePlaneWidget::OnLeftButtonDown+0x47
>>> Library=D:\src\VTK-build-vc\bin\RelWithDebInfo\vtkHybrid.dll
>>> Source file = D:\src\VTK\Hybrid\vtkImagePlaneWidget.cxx : 546
>>>
>>>
>>> Current Java thread:
>>> at
>>> vtk.vtkGenericRenderWindowInteractor.LeftButtonPressEvent_5(Native
>>> Method)
>>> at
>>> vtk.vtkGenericRenderWindowInteractor.LeftButtonPressEvent(vtkGenericRenderWindowInteractor.java:32)
>>> at vtk.vtkCanvas.mousePressed(vtkCanvas.java:119)
>>> at java.awt.Component.processMouseEvent(Component.java:5090)
>>> at java.awt.Component.processEvent(Component.java:4890)
>>> at java.awt.Component.dispatchEventImpl(Component.java:3598)
>>> at java.awt.Component.dispatchEvent(Component.java:3439)
>>> at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
>>> at
>>> java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
>>> at
>>> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
>>> at
>>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
>>> at
>>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
>>> at
>>> java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
>>>
>>> Dynamic libraries:
>>> 0x00400000 - 0x00406000 C:\apps\j2sdk1.4.1\bin\javaw.exe
>>> 0x77F50000 - 0x77FF9000 C:\WINDOWS\System32\ntdll.dll
>>> 0x77E60000 - 0x77F45000 C:\WINDOWS\system32\kernel32.dll
>>> 0x77DD0000 - 0x77E5B000 C:\WINDOWS\system32\ADVAPI32.dll
>>> 0x77CC0000 - 0x77D35000 C:\WINDOWS\system32\RPCRT4.dll
>>> 0x77D40000 - 0x77DCD000 C:\WINDOWS\system32\USER32.dll
>>> 0x77C70000 - 0x77CB0000 C:\WINDOWS\system32\GDI32.dll
>>> 0x77C10000 - 0x77C63000 C:\WINDOWS\system32\MSVCRT.dll
>>> 0x6D330000 - 0x6D45C000
>>> C:\apps\j2sdk1.4.1\jre\bin\client\jvm.dll
>>> 0x76B40000 - 0x76B6C000 C:\WINDOWS\System32\WINMM.dll
>>> 0x6D1D0000 - 0x6D1D7000 C:\apps\j2sdk1.4.1\jre\bin\hpi.dll
>>> 0x6D300000 - 0x6D30D000 C:\apps\j2sdk1.4.1\jre\bin\verify.dll
>>> 0x6D210000 - 0x6D229000 C:\apps\j2sdk1.4.1\jre\bin\java.dll
>>> 0x6D320000 - 0x6D32D000 C:\apps\j2sdk1.4.1\jre\bin\zip.dll
>>> 0x6D000000 - 0x6D0FA000 C:\apps\j2sdk1.4.1\jre\bin\awt.dll
>>> 0x73000000 - 0x73023000 C:\WINDOWS\System32\WINSPOOL.DRV
>>> 0x76390000 - 0x763AA000 C:\WINDOWS\System32\IMM32.dll
>>> 0x771B0000 - 0x772CA000 C:\WINDOWS\system32\ole32.dll
>>> 0x5AD70000 - 0x5ADA4000 C:\WINDOWS\system32\uxtheme.dll
>>> 0x6D180000 - 0x6D1D0000
>>> C:\apps\j2sdk1.4.1\jre\bin\fontmanager.dll
>>> 0x10000000 - 0x1007A000
>>> D:\src\VTK-build-vc\bin\RelWithDebInfo\vtkCommonJava.dll
>>> 0x0AE80000 - 0x0B00F000
>>> D:\src\VTK-build-vc\bin\RelWithDebInfo\vtkCommon.dll
>>> 0x76080000 - 0x760E1000 C:\WINDOWS\System32\MSVCP60.dll
>>> 0x008C0000 - 0x008DD000
>>> D:\src\VTK-build-vc\bin\RelWithDebInfo\vtkFilteringJava.dll
>>> 0x0B010000 - 0x0B075000
>>> D:\src\VTK-build-vc\bin\RelWithDebInfo\vtkFiltering.dll
>>> 0x0B080000 - 0x0B0A4000
>>> D:\src\VTK-build-vc\bin\RelWithDebInfo\vtkIOJava.dll
>>> 0x0B0B0000 - 0x0B24B000
>>> D:\src\VTK-build-vc\bin\RelWithDebInfo\vtkIO.dll
>>> 0x0B250000 - 0x0B26A000
>>> D:\src\VTK-build-vc\bin\RelWithDebInfo\vtkpng.dll
>>> 0x0B270000 - 0x0B27F000
>>> D:\src\VTK-build-vc\bin\RelWithDebInfo\vtkzlib.dll
>>> 0x0B280000 - 0x0B29A000
>>> D:\src\VTK-build-vc\bin\RelWithDebInfo\vtkjpeg.dll
>>> 0x0B2A0000 - 0x0B2DE000
>>> D:\src\VTK-build-vc\bin\RelWithDebInfo\vtktiff.dll
>>> 0x0B2E0000 - 0x0B2FB000
>>> D:\src\VTK-build-vc\bin\RelWithDebInfo\vtkexpat.dll
>>> 0x0B300000 - 0x0B33D000
>>> D:\src\VTK-build-vc\bin\RelWithDebInfo\vtkImagingJava.dll
>>> 0x0B340000 - 0x0B56C000
>>> D:\src\VTK-build-vc\bin\RelWithDebInfo\vtkImaging.dll
>>> 0x0B570000 - 0x0B5E3000
>>> D:\src\VTK-build-vc\bin\RelWithDebInfo\vtkGraphicsJava.dll
>>> 0x0B5F0000 - 0x0B860000
>>> D:\src\VTK-build-vc\bin\RelWithDebInfo\vtkGraphics.dll
>>> 0x0B860000 - 0x0B8B9000
>>> D:\src\VTK-build-vc\bin\RelWithDebInfo\vtkRenderingJava.dll
>>> 0x0B8C0000 - 0x0BAC8000
>>> D:\src\VTK-build-vc\bin\RelWithDebInfo\vtkRendering.dll
>>> 0x5ED00000 - 0x5EDC6000 C:\WINDOWS\System32\OPENGL32.dll
>>> 0x68B20000 - 0x68B3E000 C:\WINDOWS\System32\GLU32.dll
>>> 0x73760000 - 0x737A5000 C:\WINDOWS\System32\DDRAW.dll
>>> 0x73BC0000 - 0x73BC6000 C:\WINDOWS\System32\DCIMAN32.dll
>>> 0x0BAD0000 - 0x0BADB000
>>> D:\src\VTK-build-vc\bin\RelWithDebInfo\vtkftgl.dll
>>> 0x0BAE0000 - 0x0BB1C000
>>> D:\src\VTK-build-vc\bin\RelWithDebInfo\vtkfreetype.dll
>>> 0x6D230000 - 0x6D235000 C:\apps\j2sdk1.4.1\jre\bin\jawt.dll
>>> 0x0BB20000 - 0x0BB56000
>>> D:\src\VTK-build-vc\bin\RelWithDebInfo\vtkHybridJava.dll
>>> 0x0BB60000 - 0x0BCAD000
>>> D:\src\VTK-build-vc\bin\RelWithDebInfo\vtkHybrid.dll
>>> 0x6D910000 - 0x6D981000 C:\WINDOWS\System32\D3DIM.DLL
>>> 0x69500000 - 0x69818000 C:\WINDOWS\System32\nvoglnt.dll
>>> 0x76C90000 - 0x76CB2000 C:\WINDOWS\system32\imagehlp.dll
>>> 0x6D510000 - 0x6D58C000 C:\WINDOWS\system32\DBGHELP.dll
>>> 0x77C00000 - 0x77C07000 C:\WINDOWS\system32\VERSION.dll
>>> 0x76BF0000 - 0x76BFB000 C:\WINDOWS\System32\PSAPI.DLL
>>>
>>> Local Time = Fri Sep 27 10:08:01 2002
>>> Elapsed Time = 8
>>> #
>>> # The exception above was detected in native code outside the VM
>>> #
>>> # Java VM: Java HotSpot(TM) Client VM (1.4.1-b21 mixed mode)
>>> #
>>> # An error report file has been saved as hs_err_pid3500.log.
>>> # Please refer to the file for further information.
>>> #
>>> ---------------------------------------------------------
>>
>
> _______________________________________________
> This is the private VTK discussion list. Please keep messages
> on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list