<div dir="ltr">It&#39;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 &quot;Debug &gt; Exceptions&quot; menu item to stop on access violations and the &quot;Debug &gt; Windows &gt; Call Stack&quot; 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">&lt;<a href="mailto:carl@skytopsoftware.com">carl@skytopsoftware.com</a>&gt;</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&#39;m brand new to Python and new to VTK. I&#39;m wondering if anyone can help me troubleshoot the problem I&#39;m having trying to run Examples/GUI/Python/ImagePlaneWidget.py. I&#39;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&#39;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&#39;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>
&#39;python.exe&#39;: Loaded &#39;C:\Python25\python.exe&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\System32\ntdll.dll&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\System32\kernel32.dll&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\System32\python25.dll&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\System32\user32.dll&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\System32\gdi32.dll&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\System32\advapi32.dll&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\System32\rpcrt4.dll&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\System32\shell32.dll&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\System32\msvcrt.dll&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\System32\shlwapi.dll&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\System32\msvcr71.dll&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\System32\imm32.dll&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\System32\msctf.dll&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\System32\lpk.dll&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\System32\usp10.dll&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6000.16386_none_5d07289e07e1d100\comctl32.dll&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkCommonPython.pyd&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkCommonPythonD.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkCommon.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtksys.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.21022.8_none_96748342450f6aa2\msvcr90d.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.21022.8_none_96748342450f6aa2\msvcp90d.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\System32\wsock32.dll&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\System32\ws2_32.dll&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\System32\nsi.dll&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkFilteringPython.pyd&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkFilteringPythonD.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkFiltering.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkIOPython.pyd&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkIOPythonD.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkIO.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkDICOMParser.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkNetCDF.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkmetaio.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkzlib.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkpng.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtktiff.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkjpeg.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkexpat.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\System32\avifil32.dll&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\System32\winmm.dll&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\System32\ole32.dll&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\System32\oleaut32.dll&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\System32\oleacc.dll&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\System32\msacm32.dll&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\System32\msvfw32.dll&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.6000.16386_none_87e0cb09378714f1\comctl32.dll&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkImagingPython.pyd&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkImagingPythonD.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkImaging.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkGraphicsPython.pyd&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkGraphicsPythonD.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkGraphics.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkverdict.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkGenericFilteringPython.pyd&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkGenericFilteringPythonD.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkGenericFiltering.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkRenderingPython.pyd&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkRenderingPythonD.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkRendering.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkftgl.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\System32\opengl32.dll&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\System32\glu32.dll&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\System32\ddraw.dll&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\System32\dciman32.dll&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\System32\setupapi.dll&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\System32\dwmapi.dll&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkfreetype.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkVolumeRenderingPython.pyd&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkVolumeRenderingPythonD.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkVolumeRendering.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkHybridPython.pyd&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkHybridPythonD.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkHybrid.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkexoIIc.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\System32\avicap32.dll&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\System32\version.dll&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkWidgetsPython.pyd&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkWidgetsPythonD.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkWidgets.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkInfovisPython.pyd&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkInfovisPythonD.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkInfovis.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtklibxml2.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkViewsPython.pyd&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkViewsPythonD.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug\vtkViews.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\Python25\DLLs\_tkinter.pyd&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\Python25\DLLs\tk84.dll&#39;, Binary was not built with debug information.<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\System32\comdlg32.dll&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\Python25\DLLs\tcl84.dll&#39;, Binary was not built with debug information.<br>
&#39;python.exe&#39;: Loaded &#39;C:\Python25\tcl\reg1.1\tclreg11.dll&#39;, Binary was not built with debug information.<br>
&#39;python.exe&#39;: Loaded &#39;C:\Windows\System32\uxtheme.dll&#39;<br>
&#39;python.exe&#39;: Loaded &#39;C:\projects\vtk\vtk-5.2\VTKInstall\bin\vtkRenderingPythonTkWidgets.dll&#39;, Symbols loaded.<br>
&#39;python.exe&#39;: Loaded &#39;C:\Tcl\bin\tk85.dll&#39;, Binary was not built with debug information.<br>
&#39;python.exe&#39;: Loaded &#39;C:\Tcl\bin\tcl85.dll&#39;, Binary was not built with debug information.<br>
The thread &#39;Win32 Thread&#39; (0xeac) has exited with code 0 (0x0).<br>
The thread &#39;Win32 Thread&#39; (0xbf0) has exited with code 3 (0x3).<br>
The thread &#39;Win32 Thread&#39; (0xe28) has exited with code 3 (0x3).<br>
The thread &#39;Win32 Thread&#39; (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 &#39;[4928] python.exe: Native&#39; 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>