[vtkusers] vtk 4.4.2, python, vtkTkRenderWidget, crashes X11

Burlen burlen at apollo.sr.unh.edu
Fri Nov 12 18:45:55 EST 2004


Prabhu, thank you for the answer. This is a new machine, and I have just 
installed everything from scratch, including vtk, python and tcl/tk. my 
system doesn't have a _tkinter.so!! any where. on the other hand niether does 
my other system, which is not experiencing the crashes. both systems are 
nearly identical in terms of hardware and software, they have the same 
version of python, and tcl/tk as well. My new machine only has one version of 
tcl/tk, (so vtk and python aperently have been using the same library??)

I tried to track down the _tkinter python module
>>> import imp
>>> imp.find_module("_tkinter")
(None, '_tkinter', ('', '', 6))

which means it is a C_BUILTIN, I think. So I don't know where this leaves me, 
do you have any other ideas?

thank you for the advise.
Burlen



On Friday 12 November 2004 01:27, Prabhu Ramachandran wrote:
> >>>>> "Burlen" == burlen  <burlen at apollo.sr.unh.edu> writes:
>
>     Burlen> hello, can you please look at this if you're familiar with
>     Burlen> vtk??  I just upgraded from 4.2.3 to 4.4.2. When I made
>     Burlen> the change, I found that my application I developed using
>     Burlen> python 2.3.4, Tkinter, and vtk 4.2 crashes X11, I traced
>     Burlen> the crash as far as the vtkTkRenderWidget. under vtk 4.2
>     Burlen> the application never crashed. I am at a loss to figure
>     Burlen> out what is going on here!
> [...]
>
> I assume you rebuilt VTK.  I've been using 4.4.x for a while and
> things seem to work fine for me.  The most common case of failure with
> the Tk widgets is when you build VTK with a different version of
> libtcl/libtk than the one used by _tkinter.so.  So, I'd recommend that
> you first run ldd on _tkinter.so (it should be in
> /usr/lib/pythonX.Y/lib-dynload/) and check to see if you built VTK
> 4.4.2 with the same exact version of the libraries.  If you did not do
> this, reconfigure CMake to use the correct version and build it again.
> This usually fixes most problems of this kind with the Tk widgets.
>
> HTH.
> cheers,
> prabhu




Subject: vtk 4.4.2, python, vtkTkRenderWidget, crashes X11
From:  Burlen <burlen at apollo.sr.unh.edu>
To: vtkusers at vtk.org, vtk-developers at public.kitware.com
Date: Yesterday 21:02:43

hello, can you please look at this if you're familiar with vtk??

I just upgraded from 4.2.3 to 4.4.2. When I made the change, I found that my 
application I developed using python 2.3.4, Tkinter, and vtk 4.2 crashes X11, 
I traced the crash as far as the vtkTkRenderWidget. under vtk 4.2 the 
application never crashed. I am at a loss to figure out what is going on 
here!

I have a tkinter gui up that has a bunch of config options, that creates a 
toplevel dialog with the vtkTkRenderWidget inside it. When the options are 
changed the user will press "render" and a new dialog is created with a new 
vtkTkRenderWidget containing the scene.


The crash is predictable in that it always occurs in the call to create the 
tkrenderwidget.

The crash is unpredictable, in that any number of creations can occur before 
the crash. Sometimes it can go through > 10-20 "render"'s before the crash, 
other times it crashes on the second one. It has never crashed on the first 
"render" though, or on any type of predictable conditions.

I have set DebugOn() in all of the vtk objects I am usings, and am printing 
the state of all my own objects. As far as the vtk output is concerned I am 
not sure what to look for. I am redirecting the stderr into a file and the 
last line is always:

X connection to :0.0 broken (explicit kill or server shutdown)^M

my x11 log says:

Fatal server error:
Caught signal 11.  Server aborting

in desperation I tried using vtkpython instead of python, but that didn't 
help.

I am totally at a loss as how I can debug this. Does any one have any ideas?? 
I really am in need of some advise, here, if you have any ideas please share 
them => Thanks

Burlen




More information about the vtkusers mailing list