Ticket #662 (closed defect: fixed)

Opened 6 weeks ago

Last modified 6 weeks ago

Trader save fail (-,

Reported by: eoc Owned by:
Priority: minor Milestone: 2010.1
Component: Code:Game Keywords:
Cc: Version + GIT hash:
Blocked By: Python Version:
Hardware Architecture: All Operating System: All
Blocking:

Description

Had several UHs running and when I got back, one was crashed with the following error: (removed confusing paths)

Save Exception
Traceback (most recent call last):
  File "horizons/spsession.py", line 129, in save
    self.world.save(db)
  File "horizons/world/__init__.py", line 436, in save
    self.trader.save(db)
  File "horizons/ai/trader.py", line 94, in save
    assert len(calls) == 1, "got %s calls for saving %s: %s" %(len(calls), current_callback, calls)
AssertionError: got 0 calls for saving Callback(<bound method Trader.ship_idle of <horizons.ai.trader.Trader object at 0xea601cc>>, (<horizons.world.units.Unit[1000006] object at 0xedfc54c>,), {}): {}

Guess it happened because of some autosave. The actual save seems to have been overwritten by the still running instances...

Change History

comment:1 Changed 6 weeks ago by totycro

  • Status changed from new to closed
  • Resolution set to fixed

(In [3625]) Fixed possible cause of trader save crash (#662) fixes #662

Note: See TracTickets for help on using tickets.