[Python-apps-team] Bug#534764: mayavi2: GLXBadContext when creating new scene

Kevin Mitchell kevmitch at math.sfu.ca
Sat Jun 27 01:08:59 UTC 2009


Package: mayavi2
Version: 3.2.0-3
Severity: normal


I run

ipython -wthread

and at the prompt the following commands

from enthought.mayavi import mlab,api
mlab.test_surf()

upon which I see
"""
The program 'python' received an X Window System error.
This probably reflects a bug in the program.
The error was 'GLXBadContext'.
  (Details: serial 63 error_code 154 request_code 143 minor_code 5)
...
"""
and I'm dumped back to the command prompt

I've found that one workaround is to manually start the engine first:

from enthought.mayavi import mlab,api
api.Engine().start()
mlab.test_surf()

will give me a working figure.

This workaround does not however work for the OffScreenEngine:

from enthought.mayavi import mlab,api
api.OffScreenEngine().start()
mlab.test_surf()

will give me the same error message as above and dump me to the prompt.

This is a regression from 2.2.0-1 in Lenny.
It occurs with mayavi2=3.2.0-3 but keeping Lenny versions of

libgl1-mesa-dri=7.0.3-7
libgl1-mesa-glx=7.0.3-7
x11-common=1:7.3+18
xserver-xorg=1:7.3+18
xserver-xorg-core=2:1.4.2-10.lenny1
xserver-xorg-video-intel=2:2.3.2-2+lenny6

as well as with the sid packages

x11-common=1:7.3+18
xserver-xorg=1:7.3+18
xserver-xorg-core=2:1.4.2-10.lenny1
xserver-xorg-video-intel=2:2.3.2-2+lenny6

kernel mode setting is not enabled in either case.

Kevin
-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (600, 'unstable'), (500, 'testing'), (400, 'stable'), (300, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30.013 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

Versions of packages mayavi2 depends on:
ii  libc6                        2.9-13      GNU C Library: Shared libraries
ii  libjs-jquery                 1.3.3-1     JavaScript library for dynamic web
ii  libvtk5.2                    5.2.1-6     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-6     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:
ii  python-scipy                  0.7.0-1+b1 scientific tools for Python

-- no debconf information





More information about the Python-apps-team mailing list