main menu option comes up instead of context specific menu

Bug #779131 reported by themusicgod1
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
singularity (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: singularity

New game -> Easy -> Skip -> New Base
about half the time brings up the main menu option (Save Game, Load Game, etc)

An exception is also thrown :
themusicgod1@fwtaylor:~$ singularity
Exception in function show at Sat May 7 11:22:20 2011 CST:
Traceback (most recent call last):
  File "/usr/share/games/singularity/code/safety.py", line 58, in safe_call
    return func(*args, **kwargs)
  File "/usr/share/games/singularity/code/graphics/dialog.py", line 200, in show
    result = self.handle(event)
  File "/usr/share/games/singularity/code/graphics/dialog.py", line 327, in handle
    return self.call_handlers(handlers, event)
  File "/usr/share/games/singularity/code/graphics/dialog.py", line 339, in call_handlers
    handler(event)
  File "/usr/share/games/singularity/code/graphics/button.py", line 111, in handle_event
    self.activate_with_sound(event)
  File "/usr/share/games/singularity/code/graphics/button.py", line 124, in activate_with_sound
    self.activated(event)
  File "/usr/share/games/singularity/code/graphics/button.py", line 153, in activated
    self.function(*self.args, **self.kwargs)
  File "/usr/share/games/singularity/code/screens/map.py", line 423, in open_location
    dialog.call_dialog(self.location_dialog, self)
  File "/usr/share/games/singularity/code/graphics/dialog.py", line 94, in call_dialog
    retval = dialog.show()
  File "/usr/share/games/singularity/code/screens/location.py", line 127, in show
    return super(LocationScreen, self).show()
  File "/usr/share/games/singularity/code/graphics/dialog.py", line 200, in show
    result = self.handle(event)
  File "/usr/share/games/singularity/code/graphics/dialog.py", line 327, in handle
    return self.call_handlers(handlers, event)
  File "/usr/share/games/singularity/code/graphics/dialog.py", line 339, in call_handlers
    handler(event)
  File "/usr/share/games/singularity/code/graphics/button.py", line 111, in handle_event
    self.activate_with_sound(event)
  File "/usr/share/games/singularity/code/graphics/button.py", line 124, in activate_with_sound
    self.activated(event)
  File "/usr/share/games/singularity/code/graphics/button.py", line 153, in activated
    self.function(*self.args, **self.kwargs)
  File "/usr/share/games/singularity/code/screens/location.py", line 172, in new_base
    result = dialog.call_dialog(self.new_base_dialog, self)
  File "/usr/share/games/singularity/code/graphics/dialog.py", line 94, in call_dialog
    retval = dialog.show()
  File "/usr/share/games/singularity/code/screens/location.py", line 217, in show
    return super(NewBaseDialog, self).show()
  File "/usr/share/games/singularity/code/graphics/dialog.py", line 591, in show
    return super(ChoiceDialog, self).show()
  File "/usr/share/games/singularity/code/graphics/dialog.py", line 186, in show
    Dialog.top.maybe_update()
  File "/usr/share/games/singularity/code/graphics/widget.py", line 303, in maybe_update
    self.update()
  File "/usr/share/games/singularity/code/graphics/widget.py", line 307, in update
    self.prepare_for_redraw()
  File "/usr/share/games/singularity/code/graphics/widget.py", line 299, in prepare_for_redraw
    child.prepare_for_redraw()
  File "/usr/share/games/singularity/code/graphics/widget.py", line 299, in prepare_for_redraw
    child.prepare_for_redraw()
  File "/usr/share/games/singularity/code/graphics/widget.py", line 299, in prepare_for_redraw
    child.prepare_for_redraw()
  File "/usr/share/games/singularity/code/graphics/widget.py", line 286, in prepare_for_redraw
    self.rebuild()
  File "/usr/share/games/singularity/code/graphics/dialog.py", line 638, in rebuild
    self.desc_func(self.description_pane, key)
  File "/usr/share/games/singularity/code/screens/location.py", line 198, in on_change
    base_info = base_type.get_info(self.parent.location)
  File "/usr/share/games/singularity/code/base.py", line 94, in get_info
    detect = self.get_detect_info(location)
  File "/usr/share/games/singularity/code/base.py", line 80, in get_detect_info
    return detect_template % (g.to_percent(chance.get("news", 0)),
  File "/usr/share/games/singularity/code/g.py", line 270, in to_percent
    return locale.format("%d%%", raw_percent // 100).decode(encoding)
  File "/usr/lib/python2.7/locale.py", line 189, in format
    "format specifier, %s not valid") % repr(percent))

language : en_US, or fr_FR

themusicgod1@fwtaylor:~$ apt-cache policy singularity
singularity:
  Installed: 0.30b-1
  Candidate: 0.30b-1
  Version table:
 *** 0.30b-1 0
        500 http://ubuntu.mirror.rafal.ca/ubuntu/ natty/universe amd64 Packages
        100 /var/lib/dpkg/status

Description: Ubuntu Natty (development branch)
Release: 11.04

Usually if I can get past the first screen related to making a new 'base', I can do so for the rest of the game.
Seems to also be a problem in other languages, other resolutions...but it seems like enough fiddling with the options and it eventually goes away.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: singularity 0.30b-1
ProcVersionSignature: Ubuntu 2.6.38-8.41-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic x86_64
Architecture: amd64
Date: Sat May 7 11:20:23 2011
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_CA:en
 PATH=(custom, user)
 LANG=en_CA.UTF-8
 SHELL=/bin/bash
SourcePackage: singularity
UpgradeStatus: Upgraded to natty on 2011-04-04 (33 days ago)

Revision history for this message
themusicgod1 (themusicgod1) wrote :
Changed in singularity (Ubuntu):
status: New → Confirmed
Revision history for this message
Sebastian Bator (eremit7) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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