FretsOnFire.py crashed with ArgumentError in SetViewport()

Bug #136844 reported by Kieran Hogg
42
Affects Status Importance Assigned to Milestone
fretsonfire (Debian)
Invalid
Undecided
Unassigned
fretsonfire (Ubuntu)
Invalid
High
Unassigned

Bug Description

Binary package hint: fretsonfire

Crashed on load in Gutsy.

ProblemType: Crash
Architecture: amd64
Date: Sun Sep 2 21:04:04 2007
DistroRelease: Ubuntu 7.10
ExecutablePath: /usr/share/games/fretsonfire/game/FretsOnFire.py
InterpreterPath: /usr/bin/python2.5
NonfreeKernelModules: ath_hal
Package: fretsonfire-game 1.2.451.dfsg-1
PackageArchitecture: all
ProcCmdline: /usr/bin/python ./FretsOnFire.py
ProcCwd: /usr/share/games/fretsonfire/game
ProcEnviron:
 PATH=/home/kieran/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
PythonArgs: ['./FretsOnFire.py']
SourcePackage: fretsonfire
Title: FretsOnFire.py crashed with ArgumentError in SetViewport()
Uname: Linux kieran-laptop 2.6.22-10-generic #1 SMP Wed Aug 22 07:42:05 GMT 2007 x86_64 GNU/Linux

Tags: apport-crash
Revision history for this message
Kieran Hogg (xerosis) wrote :
Revision history for this message
Heikki Mäntysaari (heikki-mantysaari) wrote :

I can confirm this bug on my 64-bit Gutsy. Frets On Fire doesn't work with Python 2.5.x.

Kieran Hogg (xerosis)
Changed in fretsonfire:
importance: Undecided → High
status: New → Triaged
Revision history for this message
Olivier Guéry (nemolivier) wrote :

Same here on ubuntu gutsy 64.
Il tried a « python2.4 ./Fretsonfire » in /usr/share/games/fretsonfire/game/

With the same error as the normal script :

Traceback (most recent call last):
  File "./FretsOnFire.py", line 64, in ?
    engine = GameEngine(config)
  File "/usr/share/games/fretsonfire/game/GameEngine.py", line 166, in __init__
    self.svg = SvgContext(geometry)
  File "/usr/share/games/fretsonfire/game/Svg.py", line 78, in __init__
    self.setGeometry(geometry)
  File "/usr/share/games/fretsonfire/game/Svg.py", line 91, in setGeometry
    geometry[2], geometry[3])
  File "/usr/share/games/fretsonfire/game/DummyAmanith.py", line 42, in SetViewport
    glViewport(x, y, w, h)
ctypes.ArgumentError: argument 3: exceptions.TypeError: wrong type

Olivier

Revision history for this message
optiluca (optiluca) wrote :

Exact same error over here...

Revision history for this message
M Hickford (hickford) wrote :

Ubuntu gutsy 64. Following error using either python2.4 or 2.5.

Traceback (most recent call last):
  File "./FretsOnFire.py", line 64, in <module>
    engine = GameEngine(config)
  File "/usr/share/games/fretsonfire/game/GameEngine.py", line 166, in __init__
    self.svg = SvgContext(geometry)
  File "/usr/share/games/fretsonfire/game/Svg.py", line 78, in __init__
    self.setGeometry(geometry)
  File "/usr/share/games/fretsonfire/game/Svg.py", line 91, in setGeometry
    geometry[2], geometry[3])
  File "/usr/share/games/fretsonfire/game/DummyAmanith.py", line 42, in SetViewport
    glViewport(x, y, w, h)
ctypes.ArgumentError: argument 3: <type 'exceptions.TypeError'>: wrong type

Revision history for this message
Anthony S (aaaantoine) wrote :

Problem fixed in latest version of Frets on Fire (1.2.512). Please issue an upgrade.

Revision history for this message
Brady Merriweather (brady-merriweather) wrote :

the problem are missing song lists on the 32bit under the games/data directory. Extracting the files necessary from the tar file available at sourceforge, and adding in the location of /usr/share/games/fretsonfire/ directory, remedied the issue.

Revision history for this message
Jochen Kemnade (jochenkemnade) wrote :

In fact, it has nothing to do with missing songs, the problem is some missing casts. a fix is available at http://<email address hidden>/msg112018.html
applying the patch makes the application start and run, but unfortunately, mostly it segfaults within the first few seconds.

Revision history for this message
Boyd Stephen Smith Jr. (bss03) wrote :

This has been patched upstream and the fix is in the most recent tarball (1.2.512).
This bug will also hit debian and there are a couple of similar bugs (427115, 446713) but none in exactly the right place, I'm hoping a refresh from upstream would fix those debian bugs as well.
So, I pulled down the sid package (there don't appear to be any Ubuntu patches), used the debian/rules target to pull down the upstream tarball and remove all the non-dfsg free parts.
I dropped one debian patch that intended to fix this problem (but didn't, of course) that has been fixed and integrated upstream.
I've build an amd64 binary package that my roommate on Gutsy has installed, and I've attached the source plus signed changes here.
Attached tarball includes, dsfg-free orig.tar.gz, .diff.gz, .dsc, and source.changes.

Revision history for this message
Boyd Stephen Smith Jr. (bss03) wrote :

Outside of the crash, Debian seems to be tracking the version bump as bug 454346.

Revision history for this message
ScottMiller (stmiller) wrote :

Requesting Hardy package update to 1.2.512 (current stable version). Hardy still has previous version with errors which does not run in Ubuntu.

Revision history for this message
Tres Finocchiaro (tres-finocchiaro) wrote :

Agreed. Same issue here, will try suggested fixes, can't wait for a working install. Nice program, and cheers for any help. :)

-FBL

Revision history for this message
pengju (jinpj159357) wrote :

I get problem too in 1.2.512 :
File "/home/skyostil/src/cx_Freeze-3.0.3/initscripts/Console.py", line 27, in ?
  File "src/FretsOnFire.py", line 36, in ?
  File "src/GameEngine.py", line 23, in ?
  File "/usr/lib/python2.4/site-packages/OpenGL/GL/__init__.py", line 2, in ?
    from OpenGL.raw.GL import *
  File "/usr/lib/python2.4/site-packages/OpenGL/raw/GL/__init__.py", line 6, in ?
    from OpenGL.raw.GL.constants import *
  File "/usr/lib/python2.4/site-packages/OpenGL/raw/GL/constants.py", line 6, in ?
    from ctypes import *
  File "/usr/lib/python2.4/site-packages/ctypes/__init__.py", line 10, in ?
ImportError: libffi.so.4: cannot open shared object file: No such file or directory

What is easy way to fix it?

Revision history for this message
Hew (hew) wrote :

Please test if the bug is still present with fretsonfire 1.2.512.dfsg-3 (in Intrepid). Thanks in advance.

Changed in fretsonfire:
status: Triaged → Incomplete
Revision history for this message
Hew (hew) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in fretsonfire:
status: Incomplete → Invalid
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.