Bug#440488: fretsonfire: segfaults as soon as it tries to play a song

Jeremy Lainé jeremy.laine at m4x.org
Wed Jan 16 08:09:23 UTC 2008


I can confirm that in my case the crash is due to an OpenGL call, usually 
glGetDoublev but sometimes glGetIntegerv.

I used the attached patch to trace these OpenGL calls.

Jeremy

-- 
http://www.jerryweb.org/             : JerryWeb.org
http://sailcut.sourceforge.net/      : Sailcut CAD
-------------- next part --------------
diff -urN usr/share/games/fretsonfire/game/DebugGL.py /usr/share/games/fretsonfire/game/DebugGL.py
--- usr/share/games/fretsonfire/game/DebugGL.py	1970-01-01 01:00:00.000000000 +0100
+++ /usr/share/games/fretsonfire/game/DebugGL.py	2008-01-16 09:01:37.000000000 +0100
@@ -0,0 +1,13 @@
+import OpenGL
+
+def glGetDoublev(n):
+    print "glGetDoublev(0x%x) : start" % n
+    ret = OpenGL.GL.glGetDoublev(n)
+    print "glGetDoublev : stop"
+    return ret
+
+def glGetIntegerv(n):
+    print "glGetIntegerv(0x%x) : start" %n
+    ret = OpenGL.GL.glGetIntegerv(n)
+    print "glGetIntegerv : stop"
+    return ret
diff -urN usr/share/games/fretsonfire/game/Dialogs.py /usr/share/games/fretsonfire/game/Dialogs.py
--- usr/share/games/fretsonfire/game/Dialogs.py	2007-04-07 14:19:48.000000000 +0200
+++ /usr/share/games/fretsonfire/game/Dialogs.py	2008-01-15 23:42:08.000000000 +0100
@@ -25,6 +25,7 @@
 import pygame
 from OpenGL.GL import *
 from OpenGL.GLU import *
+from DebugGL import *
 import math
 import os
 import fnmatch
diff -urN usr/share/games/fretsonfire/game/Font.py /usr/share/games/fretsonfire/game/Font.py
--- usr/share/games/fretsonfire/game/Font.py	2007-02-20 20:42:45.000000000 +0100
+++ /usr/share/games/fretsonfire/game/Font.py	2008-01-15 23:26:43.000000000 +0100
@@ -22,6 +22,7 @@
 
 import pygame
 from OpenGL.GL import *
+from DebugGL import *
 import sys
 
 from Texture import Texture
diff -urN usr/share/games/fretsonfire/game/Scene.py /usr/share/games/fretsonfire/game/Scene.py
--- usr/share/games/fretsonfire/game/Scene.py	2007-02-20 20:42:45.000000000 +0100
+++ /usr/share/games/fretsonfire/game/Scene.py	2008-01-16 07:37:05.000000000 +0100
@@ -32,6 +32,7 @@
 from OpenGL.GL import *
 from OpenGL.GLU import *
 #from OpenGL.GLUT import *
+from DebugGL import *
 import math
 import colorsys
 import pygame
diff -urN usr/share/games/fretsonfire/game/View.py /usr/share/games/fretsonfire/game/View.py
--- usr/share/games/fretsonfire/game/View.py	2007-09-01 20:14:34.000000000 +0200
+++ /usr/share/games/fretsonfire/game/View.py	2008-01-15 23:24:22.000000000 +0100
@@ -23,6 +23,7 @@
 from __future__ import division
 from OpenGL.GL import *
 from OpenGL.GLU import *
+from DebugGL import *
 
 import Log
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20080116/b025c7c3/attachment.pgp 


More information about the Pkg-games-devel mailing list