[Python-apps-team] Bug#528392: wxPython apps using mayavi2 crash when exitting

Rodrigo Valiña Gutiérrez rodrivg at gmail.com
Tue May 12 16:21:48 UTC 2009


Package: mayavi2
Version: 3.2.0-1
Severity: important


1) wxPython apps using mayavi2 work well, but when I close the window, it reports a crash. Below is the output of the first case:

$ python /usr/share/doc/mayavi2/examples/mayavi/wx_embedding.py
(python:6883): Gtk-CRITICAL **: gtk_widget_set_colormap: assertion `!GTK_WIDGET_REALIZ$
The program 'python' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadDrawable (invalid Pixmap or Window parameter)'.
  (Details: serial 4055 error_code 9 request_code 136 minor_code 9)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

2) The second case is a bigger app that has an embedded Mayavi2 visualization similar to the first one in this report. It displays the Gtk-CRITICAL when showing the 3D object, and crashes on exit:

(python:5413): Gtk-CRITICAL **: gtk_widget_set_colormap: assertion `!GTK_WIDGET_REALIZED (widget)' failed

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7e468d0 (LWP 5413)]
0xb7eb8142 in free () from /lib/i686/cmov/libc.so.6
(gdb) bt
#0  0xb7eb8142 in free () from /lib/i686/cmov/libc.so.6
#1  0xafa03f1d in _mesa_free () from /usr/lib/dri/r200_dri.so
#2  0xaf99cbf9 in __driUtilUpdateDrawableInfo () from /usr/lib/dri/r200_dri.so
#3  0xaf9a3af5 in r200GetLock () from /usr/lib/dri/r200_dri.so
#4  0xaf9a2110 in r200FlushCmdBuf () from /usr/lib/dri/r200_dri.so
#5  0xaf9a21be in r200Flush () from /usr/lib/dri/r200_dri.so
#6  0xaf9a221b in r200Finish () from /usr/lib/dri/r200_dri.so
#7  0xaf9d0781 in _mesa_Finish () from /usr/lib/dri/r200_dri.so
#8  0xb1e57bb1 in vtkXOpenGLRenderWindow::DestroyWindow ()
   from /usr/lib/libvtkRendering.so.5.2
#9  0xb1e52b58 in vtkXOpenGLRenderWindow::Finalize ()
   from /usr/lib/libvtkRendering.so.5.2
#10 0xb1e5768a in vtkXOpenGLRenderWindow::~vtkXOpenGLRenderWindow ()
   from /usr/lib/libvtkRendering.so.5.2
#11 0xb3c6ee63 in vtkObjectBase::UnRegisterInternal ()
   from /usr/lib/libvtkCommon.so.5.2
#12 0xb3c6d714 in vtkObject::UnRegisterInternal ()
   from /usr/lib/libvtkCommon.so.5.2
#13 0xb3c6ed30 in vtkObjectBase::UnRegister ()
   from /usr/lib/libvtkCommon.so.5.2
#14 0xb1dabec4 in vtkRenderWindow::UnRegister ()
   from /usr/lib/libvtkRendering.so.5.2
#15 0xb1db7ac3 in vtkRenderWindowInteractor::SetRenderWindow ()
---Type <return> to continue, or q <return> to quit---
   from /usr/lib/libvtkRendering.so.5.2
#16 0xb1db7b82 in vtkRenderWindowInteractor::UnRegister ()
   from /usr/lib/libvtkRendering.so.5.2
#17 0xb3ca1a65 in vtkSmartPointerBase::~vtkSmartPointerBase ()
   from /usr/lib/libvtkCommon.so.5.2
#18 0xb3e33620 in std::_Rb_tree<vtkSmartPointerBase, std::pair<vtkSmartPointerBase const, _object*>, std::_Select1st<std::pair<vtkSmartPointerBase const, _object*> >, std::less<vtkSmartPointerBase>, std::allocator<std::pair<vtkSmartPointerBase const, _object*> > >::_M_erase () from /usr/lib/libvtkCommonPythonD.so.5.2
#19 0xb3e33612 in std::_Rb_tree<vtkSmartPointerBase, std::pair<vtkSmartPointerBase const, _object*>, std::_Select1st<std::pair<vtkSmartPointerBase const, _object*> >, std::less<vtkSmartPointerBase>, std::allocator<std::pair<vtkSmartPointerBase const, _object*> > >::_M_erase () from /usr/lib/libvtkCommonPythonD.so.5.2
#20 0xb3e33612 in std::_Rb_tree<vtkSmartPointerBase, std::pair<vtkSmartPointerBase const, _object*>, std::_Select1st<std::pair<vtkSmartPointerBase const, _object*> >, std::less<vtkSmartPointerBase>, std::allocator<std::pair<vtkSmartPointerBase const, _object*> > >::_M_erase () from /usr/lib/libvtkCommonPythonD.so.5.2
#21 0xb3e31a62 in vtkPythonUtil::~vtkPythonUtil ()
   from /usr/lib/libvtkCommonPythonD.so.5.2
#22 0xb3e31ace in vtkPythonHashDelete ()
   from /usr/lib/libvtkCommonPythonD.so.5.2
#23 0x080ecff7 in Py_Finalize ()
#24 0x08058d3f in Py_Main ()
---Type <return> to continue, or q <return> to quit---
#25 0x08058722 in main ()
(gdb) 



-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.29-2-686 (SMP w/1 CPU core)
Locale: LANG=gl_ES.UTF-8, LC_CTYPE=gl_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages mayavi2 depends on:
ii  libc6                        2.9-12      GNU C Library: Shared libraries
ii  libjs-jquery                 1.3.2-2     JavaScript library for dynamic web
ii  libvtk5                      5.2.1-3     Visualization Toolkit - A high lev
ii  python                       2.5.4-2     An interactive high-level object-o
ii  python-apptools              3.2.0-1     ETS Application Tools
ii  python-central               0.6.11      register and build utility for Pyt
ii  python-configobj             4.5.2-2     a simple but powerful config file 
ii  python-envisagecore          3.1.0-1     Extensible Application Framework
ii  python-envisageplugins       3.1.0-1     Plugins for the Envisage framework
ii  python-numpy                 1:1.2.1-1   Numerical Python adds a fast array
ii  python-pkg-resources         0.6c9-2     Package Discovery and Resource Acc
ii  python-traits                3.1.0-1     Manifest typing and reactive progr
ii  python-traitsgui             3.0.4-1     Traits-capable windowing framework
ii  python-vtk                   5.2.1-3     Python bindings for VTK
ii  python-wxgtk2.8              2.8.7.1-1.1 wxWidgets Cross-platform C++ GUI t
ii  python2.5                    2.5.4-1     An interactive high-level object-o

mayavi2 recommends no packages.

Versions of packages mayavi2 suggests:
pn  python-scipy                  <none>     (no description available)

-- no debconf information





More information about the Python-apps-team mailing list