[vtkusers] VTK 5.2 ImagePlaneWidget.py crashes

Carl Trapani carl at skytopsoftware.com
Fri Sep 5 12:05:38 EDT 2008


Hi David,

Here is command line error:

-------------------
vtkpython 
C:\projects\vtk\vtk-5.2\VTK\Examples\GUI\Python\ImagePlaneWidget.py
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.
-------------------

I see part of an error in a vtkOutputWindow:

-------------------
ERROR: In ..\..\VTK\IO\vtkVolume16Reader.cxx, line 355
vtkVolume16Reader [01D3FDB8]: Can't find file: ../../../../VTKData/Data/hea
-------------------

I can't see anymore of the file name, but it looks like it can't find 
the headsq data because it has one too many .. .

Here is my directory structure:

C:\projects\vtk\vtk-5.2  <--containing directory for 5.2
C:\projects\vtk\vtk-5.2\VTK <-- source
C:\projects\vtk\vtk-5.2\VTKBuildVC9  <-- build
C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug  <-- vtkPython.exe
C:\projects\vtk\vtk-5.2\VTKData  <-- data
C:\projects\vtk\vtk-5.2\VTKData\Data\headsq  <-- headsq data

I did NOT build the examples ... I'm trying to run them as they are in 
the source dir tree because the build was taking soooo long. Perhaps 
that is my problem? I will try building examples and running them and 
let you know if I get same errors ... but that will take at least an hour++.

Thanks!!
Carl

David Cole wrote:
> In your build tree, there should be a "vtkpython.exe" -- can you try 
> it with that (instead of python.exe) and see if you get the same 
> thing...?
>
>
>
> On Fri, Sep 5, 2008 at 10:58 AM, Carl Trapani <carl at skytopsoftware.com 
> <mailto:carl at skytopsoftware.com>> wrote:
>
>     Hi David,
>
>     Here's what I've done:
>
>     1) Started Visual Studio 2008 and opened the VTK.sln solution.
>     2) Set it to stop on access violation exceptions (Win32 Exceptions
>     - c0000005 Access violation)
>     3) Opened a command prompt, cd'd to dir where ImagePlaneWidget.py
>     is located and ran
>
>     python ImagePlaneWidget.py
>
>     4) Got the following at command prompt:
>
>     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.
>
>     5) Then, a dialog prompted me to "Check online ..., Close, or
>     Debug". I chose Debug and selected the already open instance of
>     Visual Studio.
>
>     6) Then, VS displays this dialog:
>
>     First-chance exception at 0x0408579d in python.exe: 0xC0000005:
>     Access violation reading location 0x000001b4.
>
>     Break, Continue, Ignore, Pray, Start Drinking ...
>
>     I selected Break. Then, I get a dialog warning that VS doesn't
>     have the symbols for Tk85.dll - but I can't subsequently get that
>     warning when I re-run, so I'm not sure of the detail. Anyway ...
>     here is the Call Stack:
>
>     >    tk85.dll!03f3579d()        [Frames below may be incorrect
>     and/or missing, no symbols loaded for tk85.dll]    
>      tk85.dll!03ef4654()        tk85.dll!03f9d6f7()      
>      ntdll.dll!76e6a604()        ntdll.dll!76e3a303()      
>      ntdll.dll!76e5fea0()        kernel32.dll!7575596c()      
>      kernel32.dll!756fd873()        msvcrt.dll!768b2070()      
>      msvcrt.dll!768b1d5e()        ntdll.dll!76e5fea0()      
>      ntdll.dll!76e62447()        ntdll.dll!76e6214c()      
>      ntdll.dll!76e618c3()        kernel32.dll!75707a7e()      
>      msvcr71.dll!7c34218a()        ntdll.dll!76e618c3()      
>      kernel32.dll!75707a7e()        msvcr71.dll!7c34218a()      
>      python25.dll!1e062ff6()        python25.dll!1e0266dc()      
>      python25.dll!1e039eaa()        python25.dll!1e041862()      
>      python25.dll!1e0266dc()        python25.dll!1e03a32d()      
>      python25.dll!1e03b2e2()        python25.dll!1e03d296()      
>      python25.dll!1e03e1bd()        python25.dll!1e03e222()      
>      python25.dll!1e0abbda()        python25.dll!1e0acb56()      
>      python25.dll!1e0ad22d()        msvcr71.dll!7c369c33()      
>      python25.dll!1e08add6()        python.exe!1d0011a5()      
>      kernel32.dll!75703833()        ntdll.dll!76e3a9bd()    
>     Let me know if I can help further.
>     Thanks!
>     Carl
>
>
>
>     David Cole wrote:
>
>         It's likely a bug.
>
>         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...?
>         (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.)
>
>
>         Thanks,
>         David
>
>
>


-- 
Carl Trapani (carl at skytopsoftware.com)
Skytop Software (http://www.skytopsoftware.com)
32 Washington St., Suite 222
Camden ME 04843
(207) 975-1685




More information about the vtkusers mailing list