[vtkusers] VTK 5.2 ImagePlaneWidget.py crashes

Carl Trapani carl at skytopsoftware.com
Thu Sep 4 12:20:41 EDT 2008


Hi All,

I'm brand new to Python and new to VTK. I'm wondering if anyone can help 
me troubleshoot the problem I'm having trying to run 
Examples/GUI/Python/ImagePlaneWidget.py. I'm running Vista 32bit with 
VTK 5.2 built from source with Python wrapping ON and shared libraries 
ON, built using CMake 2.6.1 and Visual Studio 9 2008. I have Python 2.5 
installed and can successfully run other Python examples like Cone*.py, 
and Examples/GUI/Python/BoxWidget.py using the following command:

python BoxWidget.py

Among other things, my PATH has the following entries (without newlines):
...
C:\Python25;
C:\Tcl\bin;
C:\projects\vtk\vtk-5.2\VTKInstall\bin;
...

and PYTHONPATH is set to (without newlines):

C:\projects\vtk\vtk-5.2\VTKBuildVC9\Wrapping\Python;
C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug

When I try and run:

python ImagePlaneWidget.py

I get the following result:
alloc: invalid block: 10089F90: 1 0

This application has requested the Runtime to terminate it in an unusual 
way.
Please contact the application's support team for more information.

Debugging using Visual Studio 9 2008 produces the output below in the 
output window.

I have no clue where to begin debugging. I'm trying to understand how to 
use vtkTiffWriter to write an image to a file ... although I suppose I 
can just copy the example and see if it works in my own app.

Questions:
1) Is this likely a bug somewhere in VTK or a problem in my configuration?
2) If it is likely a configuration issue, any suggestions on what I need 
to do to fix?

Thanks in advance for any help,
Carl
Skytop Software

----------BEGIN VC++ OUTPUT WINDOW----------------------
'python.exe': Loaded 'C:\Python25\python.exe'
'python.exe': Loaded 'C:\Windows\System32\ntdll.dll'
'python.exe': Loaded 'C:\Windows\System32\kernel32.dll'
'python.exe': Loaded 'C:\Windows\System32\python25.dll'
'python.exe': Loaded 'C:\Windows\System32\user32.dll'
'python.exe': Loaded 'C:\Windows\System32\gdi32.dll'
'python.exe': Loaded 'C:\Windows\System32\advapi32.dll'
'python.exe': Loaded 'C:\Windows\System32\rpcrt4.dll'
'python.exe': Loaded 'C:\Windows\System32\shell32.dll'
'python.exe': Loaded 'C:\Windows\System32\msvcrt.dll'
'python.exe': Loaded 'C:\Windows\System32\shlwapi.dll'
'python.exe': Loaded 'C:\Windows\System32\msvcr71.dll'
'python.exe': Loaded 'C:\Windows\System32\imm32.dll'
'python.exe': Loaded 'C:\Windows\System32\msctf.dll'
'python.exe': Loaded 'C:\Windows\System32\lpk.dll'
'python.exe': Loaded 'C:\Windows\System32\usp10.dll'
'python.exe': Loaded 
'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6000.16386_none_5d07289e07e1d100\comctl32.dll'
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkCommonPython.pyd', 
Symbols loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkCommonPythonD.dll', 
Symbols loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkCommon.dll', Symbols 
loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtksys.dll', Symbols loaded.
'python.exe': Loaded 
'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.21022.8_none_96748342450f6aa2\msvcr90d.dll', 
Symbols loaded.
'python.exe': Loaded 
'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.21022.8_none_96748342450f6aa2\msvcp90d.dll', 
Symbols loaded.
'python.exe': Loaded 'C:\Windows\System32\wsock32.dll'
'python.exe': Loaded 'C:\Windows\System32\ws2_32.dll'
'python.exe': Loaded 'C:\Windows\System32\nsi.dll'
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkFilteringPython.pyd', 
Symbols loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkFilteringPythonD.dll', 
Symbols loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkFiltering.dll', 
Symbols loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkIOPython.pyd', Symbols 
loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkIOPythonD.dll', 
Symbols loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkIO.dll', Symbols loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkDICOMParser.dll', 
Symbols loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkNetCDF.dll', Symbols 
loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkmetaio.dll', Symbols 
loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkzlib.dll', Symbols loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkpng.dll', Symbols loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtktiff.dll', Symbols loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkjpeg.dll', Symbols loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkexpat.dll', Symbols 
loaded.
'python.exe': Loaded 'C:\Windows\System32\avifil32.dll'
'python.exe': Loaded 'C:\Windows\System32\winmm.dll'
'python.exe': Loaded 'C:\Windows\System32\ole32.dll'
'python.exe': Loaded 'C:\Windows\System32\oleaut32.dll'
'python.exe': Loaded 'C:\Windows\System32\oleacc.dll'
'python.exe': Loaded 'C:\Windows\System32\msacm32.dll'
'python.exe': Loaded 'C:\Windows\System32\msvfw32.dll'
'python.exe': Loaded 
'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.6000.16386_none_87e0cb09378714f1\comctl32.dll'
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkImagingPython.pyd', 
Symbols loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkImagingPythonD.dll', 
Symbols loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkImaging.dll', Symbols 
loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkGraphicsPython.pyd', 
Symbols loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkGraphicsPythonD.dll', 
Symbols loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkGraphics.dll', Symbols 
loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkverdict.dll', Symbols 
loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkGenericFilteringPython.pyd', 
Symbols loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkGenericFilteringPythonD.dll', 
Symbols loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkGenericFiltering.dll', 
Symbols loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkRenderingPython.pyd', 
Symbols loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkRenderingPythonD.dll', 
Symbols loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkRendering.dll', 
Symbols loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkftgl.dll', Symbols loaded.
'python.exe': Loaded 'C:\Windows\System32\opengl32.dll'
'python.exe': Loaded 'C:\Windows\System32\glu32.dll'
'python.exe': Loaded 'C:\Windows\System32\ddraw.dll'
'python.exe': Loaded 'C:\Windows\System32\dciman32.dll'
'python.exe': Loaded 'C:\Windows\System32\setupapi.dll'
'python.exe': Loaded 'C:\Windows\System32\dwmapi.dll'
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkfreetype.dll', Symbols 
loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkVolumeRenderingPython.pyd', 
Symbols loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkVolumeRenderingPythonD.dll', 
Symbols loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkVolumeRendering.dll', 
Symbols loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkHybridPython.pyd', 
Symbols loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkHybridPythonD.dll', 
Symbols loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkHybrid.dll', Symbols 
loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkexoIIc.dll', Symbols 
loaded.
'python.exe': Loaded 'C:\Windows\System32\avicap32.dll'
'python.exe': Loaded 'C:\Windows\System32\version.dll'
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkWidgetsPython.pyd', 
Symbols loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkWidgetsPythonD.dll', 
Symbols loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkWidgets.dll', Symbols 
loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkInfovisPython.pyd', 
Symbols loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkInfovisPythonD.dll', 
Symbols loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkInfovis.dll', Symbols 
loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtklibxml2.dll', Symbols 
loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkViewsPython.pyd', 
Symbols loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkViewsPythonD.dll', 
Symbols loaded.
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkViews.dll', Symbols 
loaded.
'python.exe': Loaded 'C:\Python25\DLLs\_tkinter.pyd'
'python.exe': Loaded 'C:\Python25\DLLs\tk84.dll', Binary was not built 
with debug information.
'python.exe': Loaded 'C:\Windows\System32\comdlg32.dll'
'python.exe': Loaded 'C:\Python25\DLLs\tcl84.dll', Binary was not built 
with debug information.
'python.exe': Loaded 'C:\Python25\tcl\reg1.1\tclreg11.dll', Binary was 
not built with debug information.
'python.exe': Loaded 'C:\Windows\System32\uxtheme.dll'
'python.exe': Loaded 
'C:\projects\vtk\vtk-5.2\VTKInstall\bin\vtkRenderingPythonTkWidgets.dll', 
Symbols loaded.
'python.exe': Loaded 'C:\Tcl\bin\tk85.dll', Binary was not built with 
debug information.
'python.exe': Loaded 'C:\Tcl\bin\tcl85.dll', Binary was not built with 
debug information.
The thread 'Win32 Thread' (0xeac) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0xbf0) has exited with code 3 (0x3).
The thread 'Win32 Thread' (0xe28) has exited with code 3 (0x3).
The thread 'Win32 Thread' (0x1330) has exited with code 3 (0x3).
First-chance exception at 0x0401579d in python.exe: 0xC0000005: Access 
violation reading location 0x000001b4.
The program '[4928] python.exe: Native' has exited with code 3 (0x3).




More information about the vtkusers mailing list