PANIC: unprotected error in call to Lua API (table index is NaN)

Bug #920319 reported by Angelo Locritani
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Invalid
Low
Unassigned

Bug Description

I'm playing with a modified revision 6195: it's r6195 of trunk + one of the latest version of translation branch, but I think that what happened is not related to translations.

I'm playing 3rd barbarian tutorial. The game was started with build16 and continued with trunk version.

During autosave, game crashed.

I'm attaching savegame and replay

Here what was on console:

Autosave: interval elapsed (900 s), saving
Game: Writing Preload Data ... done
Game: Writing Game Class Data ... done
Game: Writing Player Info ... done
Game: Writing Map Data!
Writing Elemental Data ... done!
 Writing Player Names And Tribe Data ... done!
 Writing Port Spaces Data ... done!
 Writing Heights Data ... done!
 Writing Terrain Data ... done!
 Writing Player Start Position Data ... done!
 Writing Player Message Data ... done!
 Writing Resources Data ... done!
 Writing Map Extra Data ... done!
 Writing Allowed Worker Types Data ... done!
 Writing Allowed Building Types Data ... done!
 Writing Flag Data ... done!
 Writing Road Data ... done!
 Writing Building Data ... done!
 Writing Area Watchers Data ... done!
 Writing Map Objects ... done!
 Writing Flagdata Data ... done!
 Writing Roaddata Data ... done!
 Writing Buildingdata Data ... done!
 Writing Node Ownership Data ... done!
 Writing Exploration Data ... done!
 Writing Players Unseen Data ... done!
 Writing Scripting Data ... PANIC: unprotected error in call to Lua API (table index is NaN)

Tags: crash savegame
Revision history for this message
Angelo Locritani (alocritani) wrote :
Revision history for this message
SirVer (sirver) wrote : Re: [Bug 920319] Re: PANIC: unprotected error in call to Lua API (table index is NaN)

Does the savegame load/play in b16?

  status incomplete

Changed in widelands:
status: New → Incomplete
Revision history for this message
Angelo Locritani (alocritani) wrote :

The savegame doesn't even appear in the list of loadable games.
An autosavegame_2 appears; I think it's the backup savegame, renamed "_2" while the new savegame is created.

Revision history for this message
SirVer (sirver) wrote :

On Tue, Jan 24, 2012 at 07:25:26AM -0000, Angelo Locritani wrote:
>The savegame doesn't even appear in the list of loadable games.
>An autosavegame_2 appears; I think it's the backup savegame, renamed "_2" while the new savegame is created.
I mean the savegame you've originally loaded. Does it play okay in build
16?

Revision history for this message
Angelo Locritani (alocritani) wrote :

I'll check.
Anyway, I want to signal that the problem doesn't happen on every savegame, but only sometimes.

Indeed, I was able to continue playing with several revision of trunk version (the HEAD revision at different times).
Maybe this screwed up something...

Anyway, I will check and let you know about the savegame I loaded in the beginning of last "game-session".

Revision history for this message
Angelo Locritani (alocritani) wrote :

Loading the game in build16 produces the following error:

player info: unknown/unhandled version 14

Revision history for this message
SirVer (sirver) wrote :

Okay, something is really messed up. Thanks for the additional
information.

  status confirmed
  importance low

Changed in widelands:
importance: Undecided → Low
status: Incomplete → Confirmed
Revision history for this message
Angelo Locritani (alocritani) wrote :

I've further details:
I found that the problem arises only after I start conquering the red player's buildings
I then played with the --nozip option. I'm now attaching the savegame's folder (zipped by myself), so maybe you can understand which data is wrong.
Loading that file causes a crash with the following error:

[...]
Registering script: (map,texts)
done!
 Game: Reading Map Data Complete done!
Game: Reading Player Economies Info ... terminate called after throwing an instance of 'File_error'
  what(): RealFSImpl::Load: problem with file/directory: /home/angelo/.widelands/save/TestCrashingGame.wgf/binary/player_economies

Indeed, the binary/player_economies file is missing...

Revision history for this message
SirVer (sirver) wrote :

Setting to incomplete for bug sweeping.

Changed in widelands:
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for widelands because there has been no activity for 60 days.]

Changed in widelands:
status: Incomplete → Expired
Revision history for this message
SirVer (sirver) wrote :

The lua persistence layer has been changed since this bug has been reported. This is likely fixed, but I cannot check nor reproprudce, so i am setting this to invalid.

Changed in widelands:
status: Expired → Invalid
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.