<div dir="ltr">It's likely a bug.<div><br></div><div>Can you set your Visual Studio to stop on access violation exceptions, and the look at the call stack window and copy/paste/send along the call stack when it crashes...?</div>
<div>(See the "Debug > Exceptions" menu item to stop on access violations and the "Debug > Windows > Call Stack" menu item to show the call stack... then select all the text in the call stack window and Ctrl+C to copy.)<br>
<br></div><div><br></div><div>Thanks,</div><div>David</div><div><br></div><div><br><div class="gmail_quote">On Thu, Sep 4, 2008 at 12:20 PM, Carl Trapani <span dir="ltr"><<a href="mailto:carl@skytopsoftware.com">carl@skytopsoftware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi All,<br>
<br>
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:<br>
<br>
python BoxWidget.py<br>
<br>
Among other things, my PATH has the following entries (without newlines):<br>
...<br>
C:\Python25;<br>
C:\Tcl\bin;<br>
C:\projects\vtk\vtk-5.2\VTKInstall\bin;<br>
...<br>
<br>
and PYTHONPATH is set to (without newlines):<br>
<br>
C:\projects\vtk\vtk-5.2\VTKBuildVC9\Wrapping\Python;<br>
C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug<br>
<br>
When I try and run:<br>
<br>
python ImagePlaneWidget.py<br>
<br>
I get the following result:<br>
alloc: invalid block: 10089F90: 1 0<br>
<br>
This application has requested the Runtime to terminate it in an unusual way.<br>
Please contact the application's support team for more information.<br>
<br>
Debugging using Visual Studio 9 2008 produces the output below in the output window.<br>
<br>
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.<br>
<br>
Questions:<br>
1) Is this likely a bug somewhere in VTK or a problem in my configuration?<br>
2) If it is likely a configuration issue, any suggestions on what I need to do to fix?<br>
<br>
Thanks in advance for any help,<br>
Carl<br>
Skytop Software<br>
<br>
----------BEGIN VC++ OUTPUT WINDOW----------------------<br>
'python.exe': Loaded 'C:\Python25\python.exe'<br>
'python.exe': Loaded 'C:\Windows\System32\ntdll.dll'<br>
'python.exe': Loaded 'C:\Windows\System32\kernel32.dll'<br>
'python.exe': Loaded 'C:\Windows\System32\python25.dll'<br>
'python.exe': Loaded 'C:\Windows\System32\user32.dll'<br>
'python.exe': Loaded 'C:\Windows\System32\gdi32.dll'<br>
'python.exe': Loaded 'C:\Windows\System32\advapi32.dll'<br>
'python.exe': Loaded 'C:\Windows\System32\rpcrt4.dll'<br>
'python.exe': Loaded 'C:\Windows\System32\shell32.dll'<br>
'python.exe': Loaded 'C:\Windows\System32\msvcrt.dll'<br>
'python.exe': Loaded 'C:\Windows\System32\shlwapi.dll'<br>
'python.exe': Loaded 'C:\Windows\System32\msvcr71.dll'<br>
'python.exe': Loaded 'C:\Windows\System32\imm32.dll'<br>
'python.exe': Loaded 'C:\Windows\System32\msctf.dll'<br>
'python.exe': Loaded 'C:\Windows\System32\lpk.dll'<br>
'python.exe': Loaded 'C:\Windows\System32\usp10.dll'<br>
'python.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6000.16386_none_5d07289e07e1d100\comctl32.dll'<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkCommonPython.pyd', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkCommonPythonD.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkCommon.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtksys.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.21022.8_none_96748342450f6aa2\msvcr90d.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.21022.8_none_96748342450f6aa2\msvcp90d.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\Windows\System32\wsock32.dll'<br>
'python.exe': Loaded 'C:\Windows\System32\ws2_32.dll'<br>
'python.exe': Loaded 'C:\Windows\System32\nsi.dll'<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkFilteringPython.pyd', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkFilteringPythonD.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkFiltering.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkIOPython.pyd', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkIOPythonD.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkIO.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkDICOMParser.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkNetCDF.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkmetaio.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkzlib.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkpng.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtktiff.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkjpeg.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkexpat.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\Windows\System32\avifil32.dll'<br>
'python.exe': Loaded 'C:\Windows\System32\winmm.dll'<br>
'python.exe': Loaded 'C:\Windows\System32\ole32.dll'<br>
'python.exe': Loaded 'C:\Windows\System32\oleaut32.dll'<br>
'python.exe': Loaded 'C:\Windows\System32\oleacc.dll'<br>
'python.exe': Loaded 'C:\Windows\System32\msacm32.dll'<br>
'python.exe': Loaded 'C:\Windows\System32\msvfw32.dll'<br>
'python.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.6000.16386_none_87e0cb09378714f1\comctl32.dll'<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkImagingPython.pyd', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkImagingPythonD.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkImaging.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkGraphicsPython.pyd', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkGraphicsPythonD.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkGraphics.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkverdict.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkGenericFilteringPython.pyd', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkGenericFilteringPythonD.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkGenericFiltering.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkRenderingPython.pyd', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkRenderingPythonD.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkRendering.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkftgl.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\Windows\System32\opengl32.dll'<br>
'python.exe': Loaded 'C:\Windows\System32\glu32.dll'<br>
'python.exe': Loaded 'C:\Windows\System32\ddraw.dll'<br>
'python.exe': Loaded 'C:\Windows\System32\dciman32.dll'<br>
'python.exe': Loaded 'C:\Windows\System32\setupapi.dll'<br>
'python.exe': Loaded 'C:\Windows\System32\dwmapi.dll'<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkfreetype.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkVolumeRenderingPython.pyd', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkVolumeRenderingPythonD.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkVolumeRendering.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkHybridPython.pyd', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkHybridPythonD.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkHybrid.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkexoIIc.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\Windows\System32\avicap32.dll'<br>
'python.exe': Loaded 'C:\Windows\System32\version.dll'<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkWidgetsPython.pyd', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkWidgetsPythonD.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkWidgets.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkInfovisPython.pyd', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkInfovisPythonD.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkInfovis.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtklibxml2.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkViewsPython.pyd', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkViewsPythonD.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkViews.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\Python25\DLLs\_tkinter.pyd'<br>
'python.exe': Loaded 'C:\Python25\DLLs\tk84.dll', Binary was not built with debug information.<br>
'python.exe': Loaded 'C:\Windows\System32\comdlg32.dll'<br>
'python.exe': Loaded 'C:\Python25\DLLs\tcl84.dll', Binary was not built with debug information.<br>
'python.exe': Loaded 'C:\Python25\tcl\reg1.1\tclreg11.dll', Binary was not built with debug information.<br>
'python.exe': Loaded 'C:\Windows\System32\uxtheme.dll'<br>
'python.exe': Loaded 'C:\projects\vtk\vtk-5.2\VTKInstall\bin\vtkRenderingPythonTkWidgets.dll', Symbols loaded.<br>
'python.exe': Loaded 'C:\Tcl\bin\tk85.dll', Binary was not built with debug information.<br>
'python.exe': Loaded 'C:\Tcl\bin\tcl85.dll', Binary was not built with debug information.<br>
The thread 'Win32 Thread' (0xeac) has exited with code 0 (0x0).<br>
The thread 'Win32 Thread' (0xbf0) has exited with code 3 (0x3).<br>
The thread 'Win32 Thread' (0xe28) has exited with code 3 (0x3).<br>
The thread 'Win32 Thread' (0x1330) has exited with code 3 (0x3).<br>
First-chance exception at 0x0401579d in python.exe: 0xC0000005: Access violation reading location 0x000001b4.<br>
The program '[4928] python.exe: Native' has exited with code 3 (0x3).<br>
<br>
_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div></div>