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 535256 - IndexError selecting unnamed polygon in 3D mode
IndexError selecting unnamed polygon in 3D mode
Status: RESOLVED OBSOLETE
Product: gnome-games-superseded
Classification: Deprecated
Component: glchess
unspecified
Other All
: High major
: ---
Assigned To: GNOME Games maintainers
GNOME Games maintainers
: 539663 540252 540303 540345 540846 541497 542386 543081 543203 543765 543900 544170 544353 544530 546350 546447 547232 547511 549004 550422 552092 552319 555734 555883 556158 557938 558471 559969 561029 562161 562421 562585 562717 562809 563536 565754 568271 571101 572594 579094 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-05-28 13:49 UTC by fois5
Modified: 2011-01-17 08:24 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20



Description fois5 2008-05-28 13:49:40 UTC
Version: 2.20.0.1

What were you doing when the application crashed?
starting a new game in 3d mode.


Distribution: openSUSE 10.3 (X86-64)
Gnome Release: 2.20.0 2007-09-22 (SUSE)
BugBuddy Version: 2.20.1

System: Linux 2.6.22.17-0.1-default #1 SMP 2008/02/10 20:01:04 UTC x86_64
X Vendor: The X.Org Foundation
X Vendor Release: 70200000
Selinux: No
Accessibility: Disabled
GTK+ Theme: Industrial
Icon Theme: Industrial

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 ---------------------
RENDERER=ATI MOBILITY RADEON X700
VERSION=2.1.7537 Release
EXTENSIONS=GL_AMD_performance_monitor GL_ARB_depth_texture GL_ARB_draw_buffers GL_ARB_fragment_program GL_ARB_fragment_shader GL_ARB_half_float_pixel GL_ARB_multisample GL_ARB_multitexture GL_ARB_occl
  • File "/usr/lib64/python2.5/site-packages/glchess/gtkui/chessview.py", line 187 in __button_press
    self.view.feedback.select(event.x, event.y)
  • File "/usr/lib64/python2.5/site-packages/glchess/main.py", line 484 in select
    self.scene.select(x, y)
  • File "/usr/lib64/python2.5/site-packages/glchess/scene/human.py", line 117 in select
    coord = self.getSquare(x, y)
  • File "/usr/lib64/python2.5/site-packages/glchess/main.py", line 310 in getSquare
    return self.controller.getSquare(x, y)
  • File "/usr/lib64/python2.5/site-packages/glchess/scene/opengl/opengl.py", line 387 in getSquare
    rank = chr(ord('a') + coord[0])
IndexError: tuple index out of range
--------------------------------------------------
Traceback (most recent call last):
  • File "/usr/lib64/python2.5/site-packages/glchess/gtkui/chessview.py", line 187 in __button_press
    self.view.feedback.select(event.x, event.y)
  • File "/usr/lib64/python2.5/site-packages/glchess/main.py", line 484 in select
    self.scene.select(x, y)
  • File "/usr/lib64/python2.5/site-packages/glchess/scene/human.py", line 117 in select
    coord = self.getSquare(x, y)
  • File "/usr/lib64/python2.5/site-packages/glchess/main.py", line 310 in getSquare
    return self.controller.getSquare(x, y)
  • File "/usr/lib64/python2.5/site-packages/glchess/scene/opengl/opengl.py", line 387 in getSquare
    rank = chr(ord('a') + coord[0])
IndexError: tuple index out of range

Comment 1 Gianluca Borello 2008-06-23 09:28:31 UTC
*** Bug 539663 has been marked as a duplicate of this bug. ***
Comment 2 Jason Clinton 2008-06-23 13:54:26 UTC
Is line 387 in opengl.py a typo?
Comment 3 Gianluca Borello 2008-06-26 07:33:42 UTC
*** Bug 540252 has been marked as a duplicate of this bug. ***
Comment 4 Gianluca Borello 2008-06-26 11:52:30 UTC
*** Bug 540303 has been marked as a duplicate of this bug. ***
Comment 5 Susana 2008-06-26 18:38:30 UTC
*** Bug 540345 has been marked as a duplicate of this bug. ***
Comment 6 Robert Ancell 2008-06-27 07:02:21 UTC
No typo, in this case the users are selecting an unnamed polygon (i.e. the polygon has an empty tuple attached to it not (row,col) as we expect). This should not be occurring, maybe the scene has not been correctly cleared before a render is done?

Some documents:
http://pyopengl.sourceforge.net/documentation/opengl_diffs.html
http://www.opengl.org/sdk/docs/man/xhtml/glRenderMode.xml
http://www.opengl.org/sdk/docs/man/xhtml/glLoadName.xml
http://www.opengl.org/sdk/docs/man/xhtml/glPushName.xml
Comment 7 Jason Clinton 2008-06-30 03:25:34 UTC
*** Bug 540846 has been marked as a duplicate of this bug. ***
Comment 8 Robert Ancell 2008-07-04 06:39:55 UTC
*** Bug 541497 has been marked as a duplicate of this bug. ***
Comment 9 Robert Ancell 2008-07-04 06:41:15 UTC
The last duplicate give some information:
3D CHESS VIEW. wONDERING WHERE THE PIECES WERE.

i.e. The display is not rendering
Comment 10 Gianluca Borello 2008-07-06 22:15:11 UTC
*** Bug 541788 has been marked as a duplicate of this bug. ***
Comment 11 Robert Ancell 2008-07-11 07:59:48 UTC
Probably related to similar bug #542386 (where it appears the attached tuple element is outside the range [0,7]).

These reports suggest corruption of the selection buffer.
Comment 12 Robert Ancell 2008-07-16 00:17:53 UTC
*** Bug 543081 has been marked as a duplicate of this bug. ***
Comment 13 Robert Ancell 2008-07-16 03:31:17 UTC
*** Bug 543203 has been marked as a duplicate of this bug. ***
Comment 14 Robert Ancell 2008-07-20 03:12:01 UTC
*** Bug 543765 has been marked as a duplicate of this bug. ***
Comment 15 Robert Ancell 2008-07-21 01:47:01 UTC
*** Bug 543900 has been marked as a duplicate of this bug. ***
Comment 16 Robert Ancell 2008-07-21 01:48:02 UTC
The display is rendering in some cases (bug #543900):
"Clicking on a pawn"
Comment 17 Gianluca Borello 2008-07-23 08:12:04 UTC
*** Bug 544170 has been marked as a duplicate of this bug. ***
Comment 18 Allan Day 2008-07-24 00:38:36 UTC
*** Bug 544353 has been marked as a duplicate of this bug. ***
Comment 19 Susana 2008-07-27 22:29:59 UTC
*** Bug 544530 has been marked as a duplicate of this bug. ***
Comment 20 Gianluca Borello 2008-08-05 11:27:59 UTC
*** Bug 546350 has been marked as a duplicate of this bug. ***
Comment 21 Gianluca Borello 2008-08-06 15:33:44 UTC
*** Bug 546447 has been marked as a duplicate of this bug. ***
Comment 22 Thomas Andersen 2008-08-06 22:09:43 UTC
*** Bug 542386 has been marked as a duplicate of this bug. ***
Comment 23 Thomas Andersen 2008-08-11 11:13:07 UTC
*** Bug 547232 has been marked as a duplicate of this bug. ***
Comment 24 Thomas Andersen 2008-08-12 23:29:10 UTC
*** Bug 547511 has been marked as a duplicate of this bug. ***
Comment 25 Susana 2008-09-05 21:23:47 UTC
*** Bug 550422 has been marked as a duplicate of this bug. ***
Comment 26 Gianluca Borello 2008-09-15 15:32:57 UTC
*** Bug 549004 has been marked as a duplicate of this bug. ***
Comment 27 Gianluca Borello 2008-09-15 15:33:06 UTC
*** Bug 552092 has been marked as a duplicate of this bug. ***
Comment 28 Gianluca Borello 2008-09-15 15:33:13 UTC
*** Bug 552319 has been marked as a duplicate of this bug. ***
Comment 29 Gianluca Borello 2008-10-10 08:35:46 UTC
*** Bug 555734 has been marked as a duplicate of this bug. ***
Comment 30 Gianluca Borello 2008-10-11 10:31:54 UTC
*** Bug 555883 has been marked as a duplicate of this bug. ***
Comment 31 Gianluca Borello 2008-10-13 19:17:27 UTC
*** Bug 556158 has been marked as a duplicate of this bug. ***
Comment 32 Robert Ancell 2008-10-15 10:08:21 UTC
I've made the code handle this invalid response and print out some debugging information 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 and possible provide us with some useful information.

If you are getting this problem can you please try the patch/wait for 2.24.1, run Chess from a terminal and report if you see something like:
Invalid response received from glRenderMode(GL_RENDER): coord=(0,), viewport=array([  0,   0, 526, 512],'i')
Comment 33 Robert Ancell 2008-10-27 06:50:09 UTC
*** Bug 557938 has been marked as a duplicate of this bug. ***
Comment 34 Robert Ancell 2008-10-31 06:43:00 UTC
*** Bug 558471 has been marked as a duplicate of this bug. ***
Comment 35 Robert Ancell 2008-11-10 04:38:34 UTC
*** Bug 559969 has been marked as a duplicate of this bug. ***
Comment 36 André Klapper 2008-11-16 18:50:51 UTC
*** Bug 561029 has been marked as a duplicate of this bug. ***
Comment 37 palfrey 2008-11-24 20:13:03 UTC
*** Bug 562161 has been marked as a duplicate of this bug. ***
Comment 38 Robert Ancell 2008-11-28 04:18:32 UTC
*** Bug 562421 has been marked as a duplicate of this bug. ***
Comment 39 Pedro Villavicencio 2008-11-29 23:28:17 UTC
*** Bug 562717 has been marked as a duplicate of this bug. ***
Comment 40 Pascal Terjan 2008-11-30 14:18:46 UTC
*** Bug 562585 has been marked as a duplicate of this bug. ***
Comment 41 Robert Ancell 2008-12-01 03:24:01 UTC
*** Bug 562809 has been marked as a duplicate of this bug. ***
Comment 42 Robert Ancell 2008-12-28 01:31:48 UTC
*** Bug 563536 has been marked as a duplicate of this bug. ***
Comment 43 Robert Ancell 2008-12-28 01:31:54 UTC
*** Bug 565754 has been marked as a duplicate of this bug. ***
Comment 44 palfrey 2009-01-19 11:46:30 UTC
*** Bug 568271 has been marked as a duplicate of this bug. ***
Comment 45 palfrey 2009-02-10 11:09:13 UTC
*** Bug 571101 has been marked as a duplicate of this bug. ***
Comment 46 Fabio Durán Verdugo 2009-02-20 20:08:39 UTC
*** Bug 572594 has been marked as a duplicate of this bug. ***
Comment 47 Fabio Durán Verdugo 2009-04-15 23:29:09 UTC
*** Bug 579094 has been marked as a duplicate of this bug. ***
Comment 48 Jason Clinton 2009-08-24 20:53:39 UTC
Robert, what's the status of this crasher? Is it fixed now?
Comment 49 Robert Ancell 2011-01-17 08:24:41 UTC
Obsolete/fixed now glChess has been rewritten in Vala.