After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 503238 - GLUError class called GLUerror on Gentoo
GLUError class called GLUerror on Gentoo
Status: RESOLVED FIXED
Product: gnome-games-superseded
Classification: Deprecated
Component: glchess
2.22.x
Other All
: High critical
: ---
Assigned To: GNOME Games maintainers
GNOME Games maintainers
: 503478 503904 507094 511704 513794 515893 518130 518204 518319 518320 518321 519117 522013 522641 523845 525222 527009 527647 528854 536770 537748 541940 544617 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-12-12 10:31 UTC by mbarczyk
Modified: 2008-07-27 22:33 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
Handles error objects in pyopengl 2.0 and 3.0 (1.32 KB, patch)
2008-03-24 10:26 UTC, Robert Ancell
committed Details | Review

Description mbarczyk 2007-12-12 10:31:53 UTC
Version: 2.20.2

What were you doing when the application crashed?



Distribution: Gentoo Base System release 1.12.10
Gnome Release: 2.20.2 2007-12-11 (Gentoo)
BugBuddy Version: 2.20.1

System: Linux 2.6.22-kamikaze9 #1 SMP Fri Sep 14 19:18:03 CEST 2007 x86_64
X Vendor: The X.Org Foundation
X Vendor Release: 10400000
Selinux: No
Accessibility: Disabled
GTK+ Theme: Clearlooks
Icon Theme: gnome

Memory status: size: 0 vsize: 0 resident: 0 share: 0 rss: 0 rss_rlim: 0
CPU usage: start_time: 0 rtime: 0 utime: 0 stime: 0 cutime:0 cstime: 0 timeout: 0 it_real_value: 0 frequency: 0



----------- .xsession-errors (4483 sec old) ---------------------
(evolution:4267): Gdk-CRITICAL **: gdk_window_get_origin: assertion `GDK_IS_WINDOW (window)' failed
(evolution:4267): Gdk-CRITICAL **: gdk_window_get_origin: assertion `GDK_IS_WINDOW (window)' failed
(evolution:4267): Gdk-CRITICAL **: gdk_window_get_origin: assertion `GDK_IS_WINDOW (window)' failed
(evolution:4267): Gdk-CRITICAL **: gdk_window_get_origin: assertion `GDK_IS_WINDOW (window)' failed
(evolution:4267): Gdk-CRITICAL **: gdk_window_get_origin: assertion `GDK_IS_WINDOW (window)' failed
(evolution:4267): Gdk-CRITICAL **: gdk_window_get_origin: assertion `GDK_IS_WINDOW (window)' failed
(evolution:4267): Gdk-CRITICAL **: gdk_window_get_origin: assertion `GDK_IS_WINDOW (window)' failed
...Too much output, ignoring rest...
--------------------------------------------------
Traceback (most recent call last):
  • File "/usr/lib64/python2.5/site-packages/glchess/gtkui/chessview.py", line 161 in __expose
    self.view.feedback.renderGL()
  • File "/usr/lib64/python2.5/site-packages/glchess/main.py", line 460 in renderGL
    self.scene.controller.render()
  • File "/usr/lib64/python2.5/site-packages/glchess/scene/opengl/opengl.py", line 314 in render
    self.drawBoard()
  • File "/usr/lib64/python2.5/site-packages/glchess/scene/opengl/opengl.py", line 666 in drawBoard
    self.whiteTexture.bind() #blackTexture
  • File "/usr/lib64/python2.5/site-packages/glchess/scene/opengl/texture.py", line 132 in bind
    self.__texture = self.__generate()
  • File "/usr/lib64/python2.5/site-packages/glchess/scene/opengl/texture.py", line 113 in __generate
    except GLUError, e:
NameError: global name 'GLUError' is not defined

Comment 1 Thomas Andersen 2007-12-15 02:58:23 UTC
*** Bug 503478 has been marked as a duplicate of this bug. ***
Comment 2 Robert Ancell 2007-12-20 07:09:30 UTC
*** Bug 503904 has been marked as a duplicate of this bug. ***
Comment 3 Robert Ancell 2007-12-24 06:09:53 UTC
This only seems to affect Gentoo systems:

Can you please try the following:
$ python
>>> import OpenGL.GLU
>>> OpenGL.GLU.GLUError

$ python
>>> from OpenGL.GLU import *
>>> GLUError

(The above work for me in Ubuntu Gutsy).
Comment 4 Robert Ancell 2008-01-10 07:01:49 UTC
*** Bug 507094 has been marked as a duplicate of this bug. ***
Comment 5 Thomas Andersen 2008-01-25 04:07:47 UTC
*** Bug 511704 has been marked as a duplicate of this bug. ***
Comment 6 Thomas Andersen 2008-02-03 20:34:29 UTC
*** Bug 513794 has been marked as a duplicate of this bug. ***
Comment 7 Thomas Andersen 2008-02-12 00:24:22 UTC
*** Bug 515893 has been marked as a duplicate of this bug. ***
Comment 8 Gianluca Borello 2008-02-23 09:46:23 UTC
*** Bug 518204 has been marked as a duplicate of this bug. ***
Comment 9 Gianluca Borello 2008-02-23 09:46:29 UTC
*** Bug 518130 has been marked as a duplicate of this bug. ***
Comment 10 Robert Ancell 2008-02-27 05:37:15 UTC
*** Bug 518319 has been marked as a duplicate of this bug. ***
Comment 11 Robert Ancell 2008-02-27 05:37:22 UTC
*** Bug 518320 has been marked as a duplicate of this bug. ***
Comment 12 Robert Ancell 2008-02-27 05:37:30 UTC
*** Bug 518321 has been marked as a duplicate of this bug. ***
Comment 13 Robert Ancell 2008-02-28 03:12:41 UTC
*** Bug 519117 has been marked as a duplicate of this bug. ***
Comment 14 Robert Ancell 2008-02-29 05:03:33 UTC
I've asked upstream if it should be "GLUError" (on Ubuntu) or "GLUerror" (on Gentoo?):
http://sourceforge.net/mailarchive/forum.php?thread_name=9a0b92c0802262155o284cdd5cg3fca87d6fcc5ffe6%40mail.gmail.com&forum_name=pyopengl-users
Comment 15 Thomas Andersen 2008-03-12 18:17:59 UTC
*** Bug 522013 has been marked as a duplicate of this bug. ***
Comment 16 Eric Piel 2008-03-12 19:34:16 UTC
I think they have change the name of the class from "GLUerror" in 2.0.x.xx to "GLUError" in 3.0.x (which is still beta). On Mandriva, which has PyOpenGL version   2.0.1.09, this bug is also happening.
Comment 17 Gianluca Borello 2008-03-15 18:13:33 UTC
*** Bug 522641 has been marked as a duplicate of this bug. ***
Comment 18 Eric Piel 2008-03-19 09:59:52 UTC
For info, I've renamed GLUError to GLUerror in glchess/scene/opengl/new_models.py.
It fixes this particular problem, in particular glChess doesn't crash anymore.

Now, this is opening a little Pandora's box: glChess will really display the opengl error. Every duplicate of this bug might come up as actually a different bug!
Comment 19 Gianluca Borello 2008-03-22 13:12:44 UTC
*** Bug 523845 has been marked as a duplicate of this bug. ***
Comment 20 Robert Ancell 2008-03-24 10:26:33 UTC
Created attachment 107907 [details] [review]
Handles error objects in pyopengl 2.0 and 3.0
Comment 21 Robert Ancell 2008-03-24 10:31:31 UTC
Thanks Eric for confirming this one. I've patched 2.22.1 and the 2.23 head to support both names of the variables. I think you're right that this is only going to fix the initial problem - we still need to find out why this expcetion is occuring in Gentoo/PyOpenGL3.0.

The best I can find on what the changes are from documentation/using.html in the PyOpenGL 3.0 release:

"""
# different error types
    * In a number of locations PyOpenGL 3.x will raise a different error type than PyOpenGL 2.x [XXX document which cases, at minimum every ctypes-level error is new (and should be eliminated, likely)]
"""
Comment 22 Gianluca Borello 2008-03-31 10:32:32 UTC
*** Bug 525222 has been marked as a duplicate of this bug. ***
Comment 23 Thomas Andersen 2008-04-08 20:28:36 UTC
*** Bug 527009 has been marked as a duplicate of this bug. ***
Comment 24 Gianluca Borello 2008-04-12 08:33:56 UTC
*** Bug 527647 has been marked as a duplicate of this bug. ***
Comment 25 Thomas Andersen 2008-04-19 08:40:49 UTC
*** Bug 528854 has been marked as a duplicate of this bug. ***
Comment 26 Gianluca Borello 2008-06-05 10:00:09 UTC
*** Bug 536770 has been marked as a duplicate of this bug. ***
Comment 27 Gianluca Borello 2008-06-11 11:32:40 UTC
*** Bug 537748 has been marked as a duplicate of this bug. ***
Comment 28 Jason Clinton 2008-07-07 21:26:18 UTC
*** Bug 541940 has been marked as a duplicate of this bug. ***
Comment 29 Susana 2008-07-27 22:33:32 UTC
*** Bug 544617 has been marked as a duplicate of this bug. ***