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 538252 - currentMode[0] fails inside OpenGL.glRenderMode(GL_SELECT)
currentMode[0] fails inside OpenGL.glRenderMode(GL_SELECT)
Status: RESOLVED NOTGNOME
Product: gnome-games-superseded
Classification: Deprecated
Component: glchess
2.23.x
Other All
: High critical
: ---
Assigned To: GNOME Games maintainers
GNOME Games maintainers
: 539613 540797 540962 541397 542559 542955 544725 545618 547071 547945 548047 548048 548049 548482 549098 549099 549224 549756 551119 552123 552438 552439 552440 552574 552629 552933 552934 552935 552936 552937 553270 554315 555357 555358 555844 555845 555846 556076 556077 556602 556677 557304 562899 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-06-14 02:41 UTC by Anders Kaseorg
Modified: 2008-12-01 21:49 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24



Description Anders Kaseorg 2008-06-14 02:41:17 UTC
Version: 2.23.3

What were you doing when the application crashed?
Clicked on a square in 3D mode.


Distribution: Ubuntu 8.10 (intrepid)
Gnome Release: 2.23.3 2008-06-04 (Ubuntu)
BugBuddy Version: 2.22.0

System: Linux 2.6.24-19-generic #1 SMP Wed Jun 4 15:10:52 UTC 2008 x86_64
X Vendor: The X.Org Foundation
X Vendor Release: 10400090
Selinux: No
Accessibility: Disabled
GTK+ Theme: Clearlooks
Icon Theme: Tango

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 (945 sec old) ---------------------
CalDAV Eplugin starting up ...
** (evolution:7072): DEBUG: mailto URL command: evolution %s
** (evolution:7072): DEBUG: mailto URL program: evolution
GCJ PLUGIN: thread 0x623490: NP_GetMIMEDescription
GCJ PLUGIN: thread 0x623490: NP_GetMIMEDescription return
GCJ PLUGIN: thread 0x623490: NP_GetValue
GCJ PLUGIN: thread 0x623490: NP_GetValue: returning plugin name.
GCJ PLUGIN: thread 0x623490: NP_GetValue return
GCJ PLUGIN: thread 0x623490: NP_GetValue
GCJ PLUGIN: thread 0x623490: NP_GetValue: returning plugin description.
GCJ PLUGIN: thread 0x623490: NP_GetValue return
(npviewer.bin:7200): Gtk-CRITICAL **: gtk_style_detach: assertion `style->attach_count > 0' failed
(npviewer.bin:7200): Gtk-CRITICAL **: gtk_widget_destroy: assertion `GTK_IS_WIDGET (widget)' failed
--------------------------------------------------
Traceback (most recent call last):
  • File "/var/lib/python-support/python2.5/glchess/gtkui/chessview.py", line 205 in __button_press
    self.view.feedback.select(event.x, event.y)
  • File "/var/lib/python-support/python2.5/glchess/display.py", line 487 in select
    self.scene.select(x, y)
  • File "/var/lib/python-support/python2.5/glchess/scene/human.py", line 95 in select
    coord = self.getSquare(x, y)
  • File "/var/lib/python-support/python2.5/glchess/display.py", line 229 in getSquare
    return self.controller.getSquare(x, y)
  • File "/var/lib/python-support/python2.5/glchess/scene/opengl/opengl.py", line 359 in getSquare
    glRenderMode(GL_SELECT)
  • File "/usr/lib/python2.5/site-packages/OpenGL/GL/pointers.py", line 261 in glRenderMode
    currentMode = currentMode[0]
IndexError: invalid index to scalar variable.

Comment 1 Gianluca Borello 2008-06-22 22:04:44 UTC
*** Bug 539613 has been marked as a duplicate of this bug. ***
Comment 2 Robert Ancell 2008-06-27 07:31:58 UTC
This is a problem in PyOpenGL. Keeping open as this may be related to 535256
Comment 3 Jason Clinton 2008-06-29 19:05:32 UTC
*** Bug 540797 has been marked as a duplicate of this bug. ***
Comment 4 Robert Ancell 2008-07-01 00:49:53 UTC
*** Bug 540962 has been marked as a duplicate of this bug. ***
Comment 5 Jason Clinton 2008-07-03 19:31:33 UTC
*** Bug 541397 has been marked as a duplicate of this bug. ***
Comment 6 Jason Clinton 2008-07-03 19:32:08 UTC
Reporters, please let us know what video driver you are using.
Comment 7 Joan Catala 2008-07-04 14:15:32 UTC
Hi all,

I'm using the last version of the propietary driver from NVIDIA (NVIDIA-Linux-x86-173.14.09-pkg1).  Not sure if it happens also with previous versions, I'll check it during the weekend and tell you about.
Comment 8 Jason Clinton 2008-07-07 16:15:46 UTC
So it's probably not a driver issue. Perhaps some python-opengl API has changed... confirming bug.
Comment 9 Gianluca Borello 2008-07-12 08:23:44 UTC
*** Bug 542559 has been marked as a duplicate of this bug. ***
Comment 10 Reinout van Schouwen 2008-07-15 14:04:04 UTC
*** Bug 542955 has been marked as a duplicate of this bug. ***
Comment 11 Gianluca Borello 2008-07-26 11:07:09 UTC
*** Bug 544725 has been marked as a duplicate of this bug. ***
Comment 12 Thomas Andersen 2008-08-07 00:12:48 UTC
*** Bug 545618 has been marked as a duplicate of this bug. ***
Comment 13 Thomas Andersen 2008-08-09 15:31:49 UTC
*** Bug 547071 has been marked as a duplicate of this bug. ***
Comment 14 Thomas Andersen 2008-08-17 03:51:18 UTC
*** Bug 547945 has been marked as a duplicate of this bug. ***
Comment 15 Thomas Andersen 2008-08-17 03:51:22 UTC
*** Bug 548047 has been marked as a duplicate of this bug. ***
Comment 16 Thomas Andersen 2008-08-17 03:51:26 UTC
*** Bug 548048 has been marked as a duplicate of this bug. ***
Comment 17 Thomas Andersen 2008-08-17 03:51:29 UTC
*** Bug 548049 has been marked as a duplicate of this bug. ***
Comment 18 Goran Rakic 2008-08-28 20:23:53 UTC
*** Bug 549756 has been marked as a duplicate of this bug. ***
Comment 19 Goran Rakic 2008-08-28 20:24:22 UTC
*** Bug 548482 has been marked as a duplicate of this bug. ***
Comment 20 Goran Rakic 2008-08-28 20:24:35 UTC
*** Bug 549098 has been marked as a duplicate of this bug. ***
Comment 21 Goran Rakic 2008-08-28 20:24:53 UTC
*** Bug 549099 has been marked as a duplicate of this bug. ***
Comment 22 Goran Rakic 2008-08-28 20:25:09 UTC
*** Bug 549224 has been marked as a duplicate of this bug. ***
Comment 23 Thomas Andersen 2008-08-30 23:58:34 UTC
I have been trying to reproduce this but I can't.

I have tried both the 177 and the 173 nvidia driver.

Other possibly relevant versions I'm running:
python-opengl 3.0.0~b3-1ubuntu1
python-gtkglext1 1.1.0-3.1
Comment 24 Josselin Mouette 2008-08-31 06:35:12 UTC
I’m getting the crash with the same versions, but apparently not if python-opengl was upgraded from a former version. This really looks like an issue in python-opengl or its packaging.
Comment 25 Andreas Røsdal 2008-08-31 21:51:37 UTC
Yes, looking at the stack-trace, this seems to be a problem with python-opengl:

    glRenderMode(GL_SELECT)
  • File "/usr/lib/python2.5/site-packages/OpenGL/GL/pointers.py", line 261 in glRenderMode
    currentMode = currentMode[0]
IndexError: invalid index to scalar variable.

Comment 26 Gianluca Borello 2008-09-16 12:21:43 UTC
*** Bug 551119 has been marked as a duplicate of this bug. ***
Comment 27 Gianluca Borello 2008-09-16 12:21:46 UTC
*** Bug 552123 has been marked as a duplicate of this bug. ***
Comment 28 Gianluca Borello 2008-09-16 12:21:52 UTC
*** Bug 552438 has been marked as a duplicate of this bug. ***
Comment 29 Gianluca Borello 2008-09-16 12:22:00 UTC
*** Bug 552439 has been marked as a duplicate of this bug. ***
Comment 30 Gianluca Borello 2008-09-16 12:22:05 UTC
*** Bug 552440 has been marked as a duplicate of this bug. ***
Comment 31 Susana 2008-09-20 11:09:46 UTC
*** Bug 552574 has been marked as a duplicate of this bug. ***
Comment 32 Susana 2008-09-20 11:09:55 UTC
*** Bug 552629 has been marked as a duplicate of this bug. ***
Comment 33 Susana 2008-09-20 11:10:05 UTC
*** Bug 552933 has been marked as a duplicate of this bug. ***
Comment 34 Susana 2008-09-20 11:10:14 UTC
*** Bug 552934 has been marked as a duplicate of this bug. ***
Comment 35 Susana 2008-09-20 11:10:29 UTC
*** Bug 552935 has been marked as a duplicate of this bug. ***
Comment 36 Susana 2008-09-20 11:10:39 UTC
*** Bug 552936 has been marked as a duplicate of this bug. ***
Comment 37 Susana 2008-09-20 11:10:50 UTC
*** Bug 552937 has been marked as a duplicate of this bug. ***
Comment 38 Gianluca Borello 2008-09-22 16:25:54 UTC
*** Bug 553270 has been marked as a duplicate of this bug. ***
Comment 39 Robert Ancell 2008-10-01 07:16:03 UTC
*** Bug 554315 has been marked as a duplicate of this bug. ***
Comment 40 Gianluca Borello 2008-10-07 10:47:49 UTC
*** Bug 555357 has been marked as a duplicate of this bug. ***
Comment 41 Gianluca Borello 2008-10-07 10:47:55 UTC
*** Bug 555358 has been marked as a duplicate of this bug. ***
Comment 42 Adam Reeve 2008-10-08 04:43:43 UTC
I'm using an nvidia 6600gt. Here's what nvidia-settings says.

Operating System: Linux-x86
NVIDIA Driver Version: 177.76

X Server Information
Server Version Number: 11.0
Server Vendor Version: 1.5.1 (10501000)

NV-Control Version: 1.17
Comment 43 Gianluca Borello 2008-10-11 10:32:28 UTC
*** Bug 555846 has been marked as a duplicate of this bug. ***
Comment 44 Gianluca Borello 2008-10-11 10:32:36 UTC
*** Bug 555845 has been marked as a duplicate of this bug. ***
Comment 45 Gianluca Borello 2008-10-11 10:32:44 UTC
*** Bug 555844 has been marked as a duplicate of this bug. ***
Comment 46 Gianluca Borello 2008-10-13 19:17:47 UTC
*** Bug 556076 has been marked as a duplicate of this bug. ***
Comment 47 Gianluca Borello 2008-10-13 19:17:53 UTC
*** Bug 556077 has been marked as a duplicate of this bug. ***
Comment 48 Robert Ancell 2008-10-15 10:15:34 UTC
I've made the code handle this invalid response for 2.24.1 (not 2.25):
http://svn.gnome.org/viewvc/gnome-games?view=revision&revision=8032
This will hopefully stop a flood of duplicates. Note however the rendering may be corrupt after this occurs.
Comment 50 Robert Ancell 2008-10-15 11:10:10 UTC
Looking at the PyOpenGL code (OpenGL/GL/pointers.py) shows we shouldn't change modes back to GL_RENDER:
http://svn.gnome.org/viewvc/gnome-games?view=revision&revision=8035
Comment 51 Robert Ancell 2008-10-15 11:14:30 UTC
This appears to be fixed in PyOpenGL 3.0.0b4
Comment 52 Robert Ancell 2008-10-15 11:19:31 UTC
Opened bug in Ubuntu to ask them to strongly consider upgrading before the release of Intrepid:
https://bugs.launchpad.net/ubuntu/+source/pyopengl/+bug/283717
Comment 53 Robert Ancell 2008-10-16 23:32:27 UTC
Ubuntu/Debian have confirmed this is a python-opengl bug and this bug has been fixed for Intrepid. Closing NOTGNOME but expecting some duplicates from existing installs.
Comment 54 Gianluca Borello 2008-10-17 08:55:39 UTC
*** Bug 556677 has been marked as a duplicate of this bug. ***
Comment 55 Gianluca Borello 2008-10-17 09:03:01 UTC
*** Bug 556602 has been marked as a duplicate of this bug. ***
Comment 56 Gianluca Borello 2008-10-22 11:06:39 UTC
*** Bug 557304 has been marked as a duplicate of this bug. ***
Comment 57 palfrey 2008-12-01 21:49:34 UTC
*** Bug 562899 has been marked as a duplicate of this bug. ***