Can't go to "highscores"

Bug #789991 reported by Walter Alini on 2011-05-29
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
enjuewemela
Undecided
Unassigned

Bug Description

I started the game and tried to go to "highscores", and got:

{{{
Random music Akajules - Broken.ogg
Using AVBin module: <module 'pyglet.media.avbin' from '/usr/lib/pymodules/python2.7/pyglet/media/avbin.pyc'>
Traceback (most recent call last):
  File "main.py", line 88, in <module>
    start(dmenu, spec)
  File "main.py", line 74, in start
    director.run(sc)
  File "/home/.../enjuewemela-0.3/enjuewemela/cocos/cocos/director.py", line 415, in run
    event_loop.run()
  File "/usr/lib/pymodules/python2.7/pyglet/app/xlib.py", line 83, in run
    window.dispatch_platform_event(e)
  File "/usr/lib/pymodules/python2.7/pyglet/window/xlib/__init__.py", line 1169, in dispatch_platform_event
    event_handler(e)
  File "/usr/lib/pymodules/python2.7/pyglet/window/xlib/__init__.py", line 1323, in _event_key
    self.dispatch_event('on_key_press', symbol, modifiers)
  File "/usr/lib/pymodules/python2.7/pyglet/window/__init__.py", line 1217, in dispatch_event
    EventDispatcher.dispatch_event(self, *args)
  File "/usr/lib/pymodules/python2.7/pyglet/event.py", line 340, in dispatch_event
    if handler(*args):
  File "/home/.../enjuewemela-0.3/enjuewemela/cocos/cocos/menu.py", line 303, in on_key_press
    self._activate_item()
  File "/home/.../enjuewemela-0.3/enjuewemela/cocos/cocos/menu.py", line 247, in _activate_item
    self.children[ self.selected_index ][1].on_key_press( key.ENTER, 0 )
  File "/home/.../enjuewemela-0.3/enjuewemela/cocos/cocos/menu.py", line 439, in on_key_press
    self.callback_func(*self.callback_args, **self.callback_kwargs)
  File "/home/.../enjuewemela-0.3/enjuewemela/gamemenu.py", line 219, in on_highscores
    scn.add(highscores.HighScores(), z=1)
  File "/home/.../enjuewemela-0.3/enjuewemela/highscores.py", line 77, in __init__
    for name, score in all_hs[style][:10]:
KeyError: 'rush'
AL lib: ALc.c:1879: exit(): closing 1 Device
AL lib: ALc.c:1808: alcCloseDevice(): destroying 1 Context(s)
Inconsistency detected by ld.so: dl-close.c: 737: _dl_close: Assertion `map->l_init_called' failed!
}}}

I am using python 2.7.1 over Ubuntu NN

Walter Alini (walteralini) wrote :

i got a different backtrace now:

{{{
  File "/usr/bin/enjuewemela", line 42, in <module>
    main.start()
  File "/usr/share/enjuewemela/enjuewemela/main.py", line 70, in start
    director.run(sc)
  File "/usr/share/enjuewemela/enjuewemela/cocos/cocos/director.py", line 451, in run
    event_loop.run()
  File "/usr/lib/pymodules/python2.7/pyglet/app/xlib.py", line 83, in run
    window.dispatch_platform_event(e)
  File "/usr/lib/pymodules/python2.7/pyglet/window/xlib/__init__.py", line 1169, in dispatch_platform_event
    event_handler(e)
  File "/usr/lib/pymodules/python2.7/pyglet/window/xlib/__init__.py", line 1430, in _event_button
    x, y, button, modifiers)
  File "/usr/lib/pymodules/python2.7/pyglet/window/__init__.py", line 1217, in dispatch_event
    EventDispatcher.dispatch_event(self, *args)
  File "/usr/lib/pymodules/python2.7/pyglet/event.py", line 340, in dispatch_event
    if handler(*args):
  File "/usr/share/enjuewemela/enjuewemela/cocos/cocos/menu.py", line 333, in on_mouse_release
    self._activate_item()
  File "/usr/share/enjuewemela/enjuewemela/cocos/cocos/menu.py", line 248, in _activate_item
    self.children[ self.selected_index ][1].on_key_press( key.ENTER, 0 )
  File "/usr/share/enjuewemela/enjuewemela/cocos/cocos/menu.py", line 443, in on_key_press
    self.callback_func(*self.callback_args, **self.callback_kwargs)
  File "/usr/share/enjuewemela/enjuewemela/gamemenu.py", line 229, in on_highscores
    scn.add(highscores.HighScores(), z=1)
  File "/usr/share/enjuewemela/enjuewemela/highscores.py", line 79, in __init__
    for name, score in all_hs[style][:10]:
KeyError: 'crazy'
}}}

Changed in enjuewemela:
status: New → Fix Committed
Changed in enjuewemela:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers