[Python-apps-team] Bug#478844: Bug#478844: mayavi2: segfaults or corrupts memory after some operations

Varun Hiremath varunhiremath at gmail.com
Thu May 1 14:30:18 UTC 2008


Hi Francesco,

On Thu, 01 May, 2008 at 02:17:07PM +0200, Francesco Poli wrote:
> Package: mayavi2
> Version: 2.1.1-2
> Severity: important
> 
> Hi!
> 
> As I commented on bug #478017, I don't see mayavi2 crashing at startup.
> 
> On the other hand, I experience crashes after performing some
> operations.
> Please note that I've just upgraded mayavi2 from version 2.1.1-2 to
> version 2.1.1-2+b1, but I've seen the same issue on last Monday
> with version 2.1.1-2.
> 
> I could reproduce this bug as follows.  Let's take (again!) the test
> case I prepared for bug #400406 (see [1] and [2]).
> 
> [1] http://bugs.debian.org/400406
> [2] http://bugs.debian.org/cgi-bin/bugreport.cgi/vtk-multiblockPLOT3D-bug-test.tar.gz?bug=400406;msg=5;att=1
> 
>   $ tar xvzf vtk-multiblockPLOT3D-bug-test.tar.gz
>   $ ls
>   gen_tinyplot3d.f  tiny.q    vtk-multiblockPLOT3D-bug-test.tar.gz
>   list_plot3d.py    tiny.xyz
>   $ mayavi2 > ~/tmp/mayavi2.out 2> ~/tmp/mayavi2.err
> 
> The main window shows up.
> 
>  * from menus, select File -> Load data -> PLOT3D file
>  * as XYZ Co-ordinate file, select `tiny.xyz'
>  * as Q Solution file, select `tiny.q'
>  * select PLOT3D:tiny.xyz, tiny.q  in the MayaVi pane
>  * in the PLOT3DReader tab (inside the object editor), check "Binary
> file", "Do not reduce number of outputs", "Has byte count", and "Multi
> grid"; *un*check "Force read", "I blanking", and "Two dimensional
> geometry"; select "little_endian" Byte order
>  * in the Reader tab, click on the "Update Reader" button
> 
> OK, now we are ready to visualize the data...
> 
>  * from menus, select Visualize -> Modules -> Surface (a blue square
> shows up in the TVTK scene)
>  * in the MayaVi pane, right-click on PLOT3D:tiny.xyz, tiny.q and
> choose copy from the context menu
> 
> Boom!  Segmentation fault!
> 
> Relevant info in /var/log/kern.log:
> 
>   python[7379]: segfault at 2b7915ea1f40 rip 4b46cb rsp 7fffa3e3ccd0 error 7
> 
> File ~/tmp/mayavi2.out is empty:
> 
>   $ cat ~/tmp/mayavi2.out
> 
> File ~/tmp/mayavi2.err includes just a (possibly irrelevant) message:
> 
>   $ cat ~/tmp/mayavi2.err
> 
>   (python:7379): Gtk-CRITICAL **: gtk_widget_set_colormap: assertion `!GTK_WIDGET_REALIZED (widget)' failed
> 
> 
> After this test, I said to myself: "OK, let's see if this bug is
> well reproducible".
> Hence, I started the above procedure over again.
> To my surprise, I repeated all the above steps and didn't get a segfault
> at the same point!
> When I chose copy from the context menu, the command was accepted.
> Then I added one more step:
> 
>  * in the MayaVi pane, right-click on TVTK Scene 1 in order to choose
> paste from the context menu
> 
> Boom!  Memory corruption!

Strange, I am not able to reproduce this bug also on amd64 machine. I
followed the same steps and I could copy/paste without any errors. If
you don't believe me please see this screenshot:
http://people.debian.org/~varun/misc/mayavi2_amd64.png

These are the versions of the packages that I am using:
ii  libc6                     2.7-10                    GNU C Library: Shared libraries
ii  libvtk5                   5.0.4-1+b1                Visualization Toolkit - A high level 3D visualization library
ii  python                    2.5.2-1                   An interactive high-level object-oriented language (default versio
ii  python-central            0.6.6                     register and build utility for Python packages
ii  python-enthought-traits   2.0.4-2                   Manifest typing and reactive programming for Python
ii  python-enthought-traits-u 2.0.4-2                   User interface related modules for enthought traits
ii  python-numpy              1:1.0.4-7                 Numerical Python adds a fast array facility to the Python language
ii  python-pkg-resources      0.6c8-3                   Package Discovery and Resource Access using pkg_resources
ii  python-vtk                5.0.4-1+b1                Python bindings for VTK
ii  python-wxgtk2.6           2.6.3.2.2-2               wxWidgets Cross-platform C++ GUI toolkit (wxPython binding)
ii  python2.5                 2.5.2-4                   An interactive high-level object-oriented language (version 2.5)

Could you please tell me which version of libvtk5 are you using?

I am CCing this bug report upstream.

Hi Prabhu and Gael,

I got one more bug report, could you please check:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=478844

Any idea what is going on here? There have been some issues with
mayavi2 in Debian after it was rebuilt with python 2.5

Any help would be appreciated.

Thanks,
Varun

-- 
Varun Hiremath
Undergraduate Student,
Aerospace Engineering Department,
Indian Institute of Technology Madras,
Chennai, India
-------------------------------------
Homepage: http://varun.travisbsd.org





More information about the Python-apps-team mailing list