Menu Bug in Endgame:Singularity

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

Bug Description

In the attached saved game (MenuBug.sav), the main menu keeps popping up, making the game unplayable. Running from the command line (see below) gives "ValueError: zero-size array to ufunc.reduce without identity" in buyable.py.

Steps to repeat:
1) Download MenuBug.sav
2) Save to ~/.endgame/saves
3) Start singularity and load the game MenuBug

Package Details:
singularity 0.30-2
Ubuntu 10.04
python 2.65.0ubuntu1
pygame 1.9.1release-0ubuntu1
numpy 1:1.3.0:0-3build1

Command line output:
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 180, in show
    self.handle(pygame.event.Event(pygame.USEREVENT))
  File "/usr/share/games/singularity/code/graphics/dialog.py", line 306, in handle
    return self.call_handlers(handlers, event)
  File "/usr/share/games/singularity/code/graphics/dialog.py", line 318, in call_handlers
    handler(event)
  File "/usr/share/games/singularity/code/screens/map.py", line 490, in on_tick
    mins_passed = g.pl.give_time(secs)
  File "/usr/share/games/singularity/code/player.py", line 321, in give_time
    built_item = item.work_on(time = mins_passed)
  File "/usr/share/games/singularity/code/buyable.py", line 191, in work_on
    spent, self.cost_paid = self.calculate_work(*args, **kwargs)
  File "/usr/share/games/singularity/code/buyable.py", line 168, in calculate_work
    least_complete = self.min_valid(pct_complete)
  File "/usr/share/games/singularity/code/buyable.py", line 145, in min_valid
    return complete[self.total_cost > 0].min()
ValueError: zero-size array to ufunc.reduce without identity

Revision history for this message
Scott Parker (scotttparker) wrote :
Revision history for this message
Sebastian Bator (eremit7) wrote :

I could verify the issue under 11.10. Loading MenuBug.sav results in permanent popping up of the menu, whereas other saves function as expected.

This issue was already reported upstream: https://code.google.com/p/endgame-singularity/issues/detail?id=107

Changed in singularity (Ubuntu):
status: New → Confirmed
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

This sounds similar to bug 576504, however that is supposed to be fixed.

Revision history for this message
Scott Parker (scotttparker) wrote :

The manifestation is similar, but the root cause does not appear to be. The actual error reported in the traceback is different for the the two bugs. Implementing the workaround first proposed in 576504 did not fix the bug and actually created additional bugs, presumably because the current version of python is 2.65, not 2.7.

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.