Debian Bug report logs - #534764
mayavi2: GLXBadContext when creating new scene

version graph

Package: mayavi2; Maintainer for mayavi2 is Python Applications Packaging Team <python-apps-team@lists.alioth.debian.org>; Source for mayavi2 is src:mayavi2.

Reported by: Kevin Mitchell <kevmitch@math.sfu.ca>

Date: Sat, 27 Jun 2009 01:12:02 UTC

Severity: normal

Found in version mayavi2/3.2.0-3

Forwarded to https://svn.enthought.com/enthought/ticket/1824

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Python Applications Packaging Team <python-apps-team@lists.alioth.debian.org>:
Bug#534764; Package mayavi2. (Sat, 27 Jun 2009 01:12:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Kevin Mitchell <kevmitch@math.sfu.ca>:
New Bug report received and forwarded. Copy sent to Python Applications Packaging Team <python-apps-team@lists.alioth.debian.org>. (Sat, 27 Jun 2009 01:12:04 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Kevin Mitchell <kevmitch@math.sfu.ca>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: mayavi2: GLXBadContext when creating new scene
Date: Fri, 26 Jun 2009 18:08:59 -0700
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




Information forwarded to debian-bugs-dist@lists.debian.org, Python Applications Packaging Team <python-apps-team@lists.alioth.debian.org>:
Bug#534764; Package mayavi2. (Sun, 28 Jun 2009 10:42:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Varun Hiremath <varunhiremath@gmail.com>:
Extra info received and forwarded to list. Copy sent to Python Applications Packaging Team <python-apps-team@lists.alioth.debian.org>. (Sun, 28 Jun 2009 10:42:02 GMT) Full text and rfc822 format available.

Message #10 received at 534764@bugs.debian.org (full text, mbox):

From: Varun Hiremath <varunhiremath@gmail.com>
To: Kevin Mitchell <kevmitch@math.sfu.ca>, 534764@bugs.debian.org
Cc: control@bugs.debian.org
Subject: Re: [Python-apps-team] Bug#534764: mayavi2: GLXBadContext when creating new scene
Date: Sun, 28 Jun 2009 06:28:40 -0400
forwarded 534764 https://svn.enthought.com/enthought/ticket/1824
thanks

Hi Kevin,

On Fri, 26 Jun, 2009 at 06:08:59PM -0700, Kevin Mitchell wrote:
> 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()

Thanks for the report.

For me only the OffScreenEngine doesn't work, but the regular mode
works fine and I am able to see the popup window. 

I have forwarded your report upstream:
https://svn.enthought.com/enthought/ticket/1824

Thanks,
Varun

------------------------
$$ ipython -wthread
Python 2.5.4 (r254:67916, Feb 18 2009, 03:00:47)
Type "copyright", "credits" or "license" for more information.

IPython 0.8.4 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object'. ?object also works, ?? prints more.

In [1]: from enthought.mayavi import mlab,api

In [2]: mlab.test_surf()
Failed to initialize GEM.  Falling back to classic.

(python:20034): Gtk-CRITICAL **: gtk_widget_set_colormap: assertion `!GTK_WIDGET_REALIZED (widget)' failed
Out[2]: <enthought.mayavi.modules.surface.Surface object at 0x7f59830>

In [3]: api.OffScreenEngine().start()

In [4]: mlab.test_surf()
Failed to initialize GEM.  Falling back to classic.
The program 'python' received an X Window System error.
This probably reflects a bug in the program.
The error was 'GLXBadCurrentWindow'.
  (Details: serial 145 error_code 171 request_code 153 minor_code 5)
  (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.)
------------------------

-- 
Varun Hiremath                  http://eccentric.mae.cornell.edu/~vh63/




Noted your statement that Bug has been forwarded to https://svn.enthought.com/enthought/ticket/1824. Request was from Varun Hiremath <varunhiremath@gmail.com> to control@bugs.debian.org. (Sun, 28 Jun 2009 10:42:04 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Apr 18 11:34:22 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.