Snowballz crashed

Bug #234598 reported by J.G.
46
This bug affects 6 people
Affects Status Importance Assigned to Milestone
snowballz (Debian)
Fix Released
Unknown
snowballz (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: snowballz

snowballz.py crashed with KeyError in remove_emblem()

ProblemType: Crash
Architecture: i386
Date: Sat May 24 17:08:58 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/share/games/snowballz/snowballz.py
InterpreterPath: /usr/bin/python2.5
NonfreeKernelModules: fglrx
Package: snowballz 0.9.4-1
PackageArchitecture: all
ProcCmdline: python snowballz.py
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=hr_HR.UTF-8
 SHELL=/bin/bash
PythonArgs: ['snowballz.py']
SourcePackage: snowballz
Title: snowballz.py crashed with KeyError in remove_emblem()
Uname: Linux 2.6.24-16-rt i686
UserGroups: adm admin audio cdrom dialout dip floppy lpadmin netdev plugdev powerdev sambashare scanner video

Tags: apport-crash

Related branches

Revision history for this message
J.G. (j.gorski) wrote :
Revision history for this message
J.G. (j.gorski) wrote :

Here is what it says when i run it (installed snowballz from repository) in terminal:

gorski@mashina:~$ snowballz
X Error of failed request: BadValue (integer parameter out of range for operation)
  Major opcode of failed request: 134 (XFree86-VidModeExtension)
  Minor opcode of failed request: 10 (XF86VidModeSwitchToMode)
  Value in failed request: 0x88
  Serial number of failed request: 124
  Current serial number in output stream: 126

I am using Hardy.

Revision history for this message
Siegfried Gevatter (rainct) wrote :

Please remove file ~/.snowballz.ini and try again.

If the problem continues, run the following command in a terminal: python -c "import pygame; pygame.init(); print pygame.display.list_modes()" and check whether the highest listed resolution is supported by your system.

visibility: private → public
Revision history for this message
J.G. (j.gorski) wrote :

removing the file doesn't solve the problem, and running the command doesn't show anything.

Revision history for this message
Mathieu Divaret (joots) wrote :

It crashes with jaunty too. (installed from repository). Reported by every users on french forum.
The error is:

  import rabbyt.fonts
/usr/share/games/snowballz/font.py:3: UserWarning:
The rabbyt.vertexarrays module is deprecated and will be removed in a future
version of rabbyt.

  import rabbyt.fonts
Traceback (most recent call last):
  File "snowballz.py", line 28, in <module>
    import menu
  File "/usr/share/games/snowballz/menu.py", line 3, in <module>
    from gooeypy import gl as gui
  File "/usr/share/games/snowballz/gooeypy/gl.py", line 1, in <module>
    import util
  File "/usr/share/games/snowballz/gooeypy/util.py", line 10, in <module>
    from cellulose import *
  File "/usr/share/games/snowballz/cellulose/__init__.py", line 24, in <module>
    from cellulose.celltypes import CellList, CellDict, CellSet, ComputedDict
  File "/usr/share/games/snowballz/cellulose/celltypes.py", line 72, in <module>
    class CellList(DependencyCell, _ListBase):
  File "/usr/share/games/snowballz/cellulose/celltypes.py", line 66, in __init__
    try: new.__name__ = old.__name__
AttributeError: 'NoneType' object has no attribute '__name__'

Maybe it comes from the package python-rabbyt. It's not the same with jaunty.
With intrepid: version 0.7.5-1
With Jaunty: version 0.8.1-1build1

Revision history for this message
joey101 (marshallpenguin) wrote :

cellulose (which snowballz 0.9 depends on) doesn't work with python 2.6 which is the default version in the latest Ubuntu release. I recommend downloading the pre-built linux binary from the website: http://arcticpaint.com/static/games/snowballz.tar.bz2

Revision history for this message
Deactivated User (deactivated-user636007-deactivatedaccount) wrote :

Same for me.
/usr/share/games/snowballz/font.py:3: UserWarning:
*******************************************************************************
The rabbyt.fonts module is deprecated and will be removed in a future version
of rabbyt. I recommend using pyglet for font rendering.

If you still want to use pygame fonts, check out the ``pygame_font.py`` example
included with rabbyt.
*******************************************************************************

  import rabbyt.fonts
/usr/share/games/snowballz/font.py:3: UserWarning:
The rabbyt.vertexarrays module is deprecated and will be removed in a future
version of rabbyt.

  import rabbyt.fonts
Traceback (most recent call last):
  File "snowballz.py", line 28, in <module>
    import menu
  File "/usr/share/games/snowballz/menu.py", line 3, in <module>
    from gooeypy import gl as gui
  File "/usr/share/games/snowballz/gooeypy/gl.py", line 1, in <module>
    import util
  File "/usr/share/games/snowballz/gooeypy/util.py", line 10, in <module>
    from cellulose import *
  File "/usr/share/games/snowballz/cellulose/__init__.py", line 24, in <module>
    from cellulose.celltypes import CellList, CellDict, CellSet, ComputedDict
  File "/usr/share/games/snowballz/cellulose/celltypes.py", line 72, in <module>
    class CellList(DependencyCell, _ListBase):
  File "/usr/share/games/snowballz/cellulose/celltypes.py", line 66, in __init__
    try: new.__name__ = old.__name__

Revision history for this message
Deactivated User (deactivated-user636007-deactivatedaccount) wrote :

AttributeError: 'NoneType' object has no attribute '__name__'

Changed in snowballz (Ubuntu):
status: New → Confirmed
Revision history for this message
Christian Csar (cacsar) wrote :

/usr/share/games/snowballz/font.py:3: UserWarning:
*******************************************************************************
The rabbyt.fonts module is deprecated and will be removed in a future version
of rabbyt. I recommend using pyglet for font rendering.

If you still want to use pygame fonts, check out the ``pygame_font.py`` example
included with rabbyt.
*******************************************************************************

  import rabbyt.fonts
/usr/share/games/snowballz/font.py:3: UserWarning:
The rabbyt.vertexarrays module is deprecated and will be removed in a future
version of rabbyt.

  import rabbyt.fonts
Traceback (most recent call last):
  File "snowballz.py", line 28, in <module>
    import menu
  File "/usr/share/games/snowballz/menu.py", line 3, in <module>
    from gooeypy import gl as gui
  File "/usr/share/games/snowballz/gooeypy/gl.py", line 1, in <module>
    import util
  File "/usr/share/games/snowballz/gooeypy/util.py", line 10, in <module>
    from cellulose import *
  File "/usr/share/games/snowballz/cellulose/__init__.py", line 24, in <module>
    from cellulose.celltypes import CellList, CellDict, CellSet, ComputedDict
  File "/usr/share/games/snowballz/cellulose/celltypes.py", line 72, in <module>
    class CellList(DependencyCell, _ListBase):
  File "/usr/share/games/snowballz/cellulose/celltypes.py", line 66, in __init__
    try: new.__name__ = old.__name__
AttributeError: 'NoneType' object has no attribute '__name__'

Problem remains in Jaunty.

Revision history for this message
Dimitris Kalamaras (dimitris-kalamaras) wrote :

same situation in Karmic:

Traceback (most recent call last):
  File "snowballz.py", line 28, in <module>
    import menu
  File "/usr/share/games/snowballz/menu.py", line 3, in <module>
    from gooeypy import gl as gui
  File "/usr/share/games/snowballz/gooeypy/gl.py", line 1, in <module>
    import util
  File "/usr/share/games/snowballz/gooeypy/util.py", line 10, in <module>
    from cellulose import *
  File "/usr/share/games/snowballz/cellulose/__init__.py", line 24, in <module>
    from cellulose.celltypes import CellList, CellDict, CellSet, ComputedDict
  File "/usr/share/games/snowballz/cellulose/celltypes.py", line 72, in <module>
    class CellList(DependencyCell, _ListBase):
  File "/usr/share/games/snowballz/cellulose/celltypes.py", line 66, in __init__
    try: new.__name__ = old.__name__
AttributeError: 'NoneType' object has no attribute '__name__'

Revision history for this message
Niall Creech (sevenmachines-deactivatedaccount) wrote :

seems to be something to do with cellulose celltypes not dealing with the case where now __hash__ = None with some containers, this simply checks to see if we have 'None' and skip trying to get attributes if we do.

snowballz (0.9.5.1-2ubuntu1) lucid; urgency=low

  * debian/patches/list_nohash.patch:
    - catch a case where the cellulose celltype tries to get variables
    from None types (LP: #350466, #234598)

test build here,
https://launchpad.net/~sevenmachines/+archive/release+1

Revision history for this message
StefanPotyra (sistpoty) wrote :

looks good, uploading, thanks!

Can you forward this to Debian please? Thanks.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package snowballz - 0.9.5.1-2ubuntu1

---------------
snowballz (0.9.5.1-2ubuntu1) lucid; urgency=low

  * debian/patches/list_nohash.patch:
    - catch a case where the cellulose celltype tries to get variables
    from None types (LP: #350466, #234598)
 -- Niall Creech <email address hidden> Sat, 20 Feb 2010 15:47:12 +0000

Changed in snowballz (Ubuntu):
status: Confirmed → Fix Released
Changed in snowballz (Debian):
status: Unknown → New
Changed in snowballz (Debian):
status: New → Fix Committed
Changed in snowballz (Debian):
status: Fix Committed → Fix Released
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.