HellerCommaA / endgame-singularity

Automatically exported from code.google.com/p/endgame-singularity
0 stars 0 forks source link

After loading game menu keeps on poping up every time i try to advance time. (win xp) #107

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. play game on one day save (very easy difficulity)
2. come back next day try to load save try to advance time menu screen 
will pop out. when i try to clear it it still pos out.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
Version 3.0 downloded on 26/4

Please provide any additional information below.

Here is error log entry there are several of them but they just differ in 
time of appearance:
Exception in function show at Tue Apr 27 12:19:08 2010 GMT Standard Time:
Traceback (most recent call last):
  File "C:\Documents and Settings\bartp\Desktop\bartek_stuff\singularity-
0.30-win\singularity-0.30\code\safety.py", line 58, in safe_call
  File "C:\Documents and Settings\bartp\Desktop\bartek_stuff\singularity-
0.30-win\singularity-0.30\code\graphics\dialog.py", line 189, in show
  File "C:\Documents and Settings\bartp\Desktop\bartek_stuff\singularity-
0.30-win\singularity-0.30\code\graphics\dialog.py", line 306, in handle
  File "C:\Documents and Settings\bartp\Desktop\bartek_stuff\singularity-
0.30-win\singularity-0.30\code\graphics\dialog.py", line 318, in 
call_handlers
  File "C:\Documents and Settings\bartp\Desktop\bartek_stuff\singularity-
0.30-win\singularity-0.30\code\screens\map.py", line 490, in on_tick
  File "C:\Documents and Settings\bartp\Desktop\bartek_stuff\singularity-
0.30-win\singularity-0.30\code\player.py", line 321, in give_time
  File "C:\Documents and Settings\bartp\Desktop\bartek_stuff\singularity-
0.30-win\singularity-0.30\code\buyable.py", line 191, in work_on
  File "C:\Documents and Settings\bartp\Desktop\bartek_stuff\singularity-
0.30-win\singularity-0.30\code\buyable.py", line 168, in calculate_work
  File "C:\Documents and Settings\bartp\Desktop\bartek_stuff\singularity-
0.30-win\singularity-0.30\code\buyable.py", line 145, in min_valid
ValueError: zero-size array to ufunc.reduce without identity

Original issue reported on code.google.com by penguins...@gmail.com on 27 Apr 2010 at 11:47

Attachments:

GoogleCodeExporter commented 9 years ago
I get this problem too, except I start getting it after around 1000 days and 
several reloads. Relaunching the application seems to "fix" it for me.

Original comment by jare...@gmail.com on 18 Jul 2010 at 3:11

GoogleCodeExporter commented 9 years ago
Weird.  Does this still happen (for either of you)?  I wonder if it was a bug 
with the version of Pygame packaged with 0.30.  Try a slightly newer version?

Original comment by phil.bor...@gmail.com on 29 Mar 2012 at 7:11

GoogleCodeExporter commented 9 years ago
Phil, I can confirm this: it was reported in Ubuntu 
https://bugs.launchpad.net/ubuntu/+source/singularity/+bug/931037 and the user 
attached a saved game that triggers the bug even in git master, which I'm 
attaching here too.

It happens in the line "return complete[self.total_cost > 0].min()" when 
self.total_cost is [0 0 0] and complete is [inf inf inf], both ndarrays. The 
item itself is an MK3 with count = 0 (a batch of 0 CPUs) and done = False 
(don't ask me how this happened)

Looks like a low-hanging fruit: can easily trace its roots to learn how this 
scenario of a 0-cpu item was added to the base, or simply hammer in an "if" 
somewhere to deal with such arrays before passing it to .min()

Original comment by singular...@rodrigosilva.com on 20 Dec 2012 at 1:22

Attachments: