<div dir="ltr">OK.... so the problem looks like the example you are trying to run is using a data file that does not exist in the expected location on your machine. Do you have a VTKData folder next to your VTK folder?<br>
<br>You can download the VTKData folder from the VTK download page:<br><a href="http://www.vtk.org/get-software.php">http://www.vtk.org/get-software.php</a><br><br><br>HTH,<br>David<br><br><br><div class="gmail_quote">On Fri, Sep 5, 2008 at 12:05 PM, Carl Trapani <span dir="ltr"><<a href="mailto:carl@skytopsoftware.com">carl@skytopsoftware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi David,<br>
<br>
Here is command line error:<br>
<br>
-------------------<br>
vtkpython C:\projects\vtk\vtk-5.2\VTK\Examples\GUI\Python\ImagePlaneWidget.py<div class="Ih2E3d"><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></div>
-------------------<br>
<br>
I see part of an error in a vtkOutputWindow:<br>
<br>
-------------------<br>
ERROR: In ..\..\VTK\IO\vtkVolume16Reader.cxx, line 355<br>
vtkVolume16Reader [01D3FDB8]: Can't find file: ../../../../VTKData/Data/hea<br>
-------------------<br>
<br>
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 .. .<br>
<br>
Here is my directory structure:<br>
<br>
C:\projects\vtk\vtk-5.2 <--containing directory for 5.2<br>
C:\projects\vtk\vtk-5.2\VTK <-- source<br>
C:\projects\vtk\vtk-5.2\VTKBuildVC9 <-- build<br>
C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug <-- vtkPython.exe<br>
C:\projects\vtk\vtk-5.2\VTKData <-- data<br>
C:\projects\vtk\vtk-5.2\VTKData\Data\headsq <-- headsq data<br>
<br>
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++.<div class="Ih2E3d">
<br>
<br>
Thanks!!<br>
Carl<br>
<br>
David Cole wrote:<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
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...?<br>
<br>
<br>
<br></div><div><div></div><div class="Wj3C7c">
On Fri, Sep 5, 2008 at 10:58 AM, Carl Trapani <<a href="mailto:carl@skytopsoftware.com" target="_blank">carl@skytopsoftware.com</a> <mailto:<a href="mailto:carl@skytopsoftware.com" target="_blank">carl@skytopsoftware.com</a>>> wrote:<br>
<br>
Hi David,<br>
<br>
Here's what I've done:<br>
<br>
1) Started Visual Studio 2008 and opened the VTK.sln solution.<br>
2) Set it to stop on access violation exceptions (Win32 Exceptions<br>
- c0000005 Access violation)<br>
3) Opened a command prompt, cd'd to dir where ImagePlaneWidget.py<br>
is located and ran<br>
<br>
python ImagePlaneWidget.py<br>
<br>
4) Got the following at command prompt:<br>
<br>
alloc: invalid block: 10089F90: 1 0<br>
<br>
This application has requested the Runtime to terminate it in an<br>
unusual way.<br>
Please contact the application's support team for more information.<br>
<br>
5) Then, a dialog prompted me to "Check online ..., Close, or<br>
Debug". I chose Debug and selected the already open instance of<br>
Visual Studio.<br>
<br>
6) Then, VS displays this dialog:<br>
<br>
First-chance exception at 0x0408579d in python.exe: 0xC0000005:<br>
Access violation reading location 0x000001b4.<br>
<br>
Break, Continue, Ignore, Pray, Start Drinking ...<br>
<br>
I selected Break. Then, I get a dialog warning that VS doesn't<br>
have the symbols for Tk85.dll - but I can't subsequently get that<br>
warning when I re-run, so I'm not sure of the detail. Anyway ...<br>
here is the Call Stack:<br>
<br>
> tk85.dll!03f3579d() [Frames below may be incorrect<br>
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.<br>
Thanks!<br>
Carl<br>
<br>
<br>
<br>
David Cole wrote:<br>
<br>
It's likely a bug.<br>
<br>
Can you set your Visual Studio to stop on access violation<br>
exceptions, and the look at the call stack window and<br>
copy/paste/send along the call stack when it crashes...?<br>
(See the "Debug > Exceptions" menu item to stop on access<br>
violations and the "Debug > Windows > Call Stack" menu item to<br>
show the call stack... then select all the text in the call<br>
stack window and Ctrl+C to copy.)<br>
<br>
<br>
Thanks,<br>
David<br>
<br>
<br>
<br>
</div></div></blockquote><font color="#888888">
<br>
<br>
-- <br>
Carl Trapani (<a href="mailto:carl@skytopsoftware.com" target="_blank">carl@skytopsoftware.com</a>)<br>
Skytop Software (<a href="http://www.skytopsoftware.com" target="_blank">http://www.skytopsoftware.com</a>)<br>
32 Washington St., Suite 222<br>
Camden ME 04843<br>
(207) 975-1685<br>
<br>
</font></blockquote></div><br></div>