Ticket #662 (closed defect: fixed)
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
Note: See
TracTickets for help on using
tickets.

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