corrupted saved game: "string ended unexpectedly"
Bug #1654897 reported by
king of nowhere
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
High
|
Unassigned |
Bug Description
I got an error message when trying to open a saved game:
"economies: player 7: Stream ended unexpectedly (0 bytes read, 4 expected)"
and the save cannot be opened. the closer autosave is fine, luckily.
file attached.
Related branches
lp:~widelands-dev/widelands/economy_save_load_debug
- GunChleoc: Approve
-
Diff: 157 lines (+52/-44)1 file modifiedsrc/game_io/game_player_economies_packet.cc (+52/-44)
lp:~widelands-dev/widelands/bug-1732765-economy-refactoring
- Klaus Halfmann: Approve
-
Diff: 1502 lines (+314/-260)26 files modifiedsrc/ai/defaultai.cc (+1/-1)
src/ai/defaultai.h (+1/-1)
src/ai/defaultai_warfare.cc (+2/-2)
src/economy/economy.cc (+19/-18)
src/economy/economy.h (+13/-3)
src/economy/economy_data_packet.cc (+11/-1)
src/economy/economy_data_packet.h (+3/-0)
src/economy/flag.cc (+14/-8)
src/economy/flag.h (+6/-2)
src/game_io/game_player_economies_packet.cc (+30/-36)
src/io/filesystem/filesystem.cc (+6/-7)
src/logic/game.cc (+3/-4)
src/logic/map_objects/tribes/ship.cc (+30/-23)
src/logic/map_objects/tribes/ship.h (+4/-1)
src/logic/player.cc (+45/-35)
src/logic/player.h (+8/-14)
src/logic/playercommand.cc (+8/-8)
src/logic/playercommand.h (+2/-2)
src/logic/widelands.h (+1/-0)
src/map_io/map_flag_packet.cc (+14/-3)
src/scripting/lua_bases.cc (+4/-4)
src/scripting/lua_game.cc (+7/-9)
src/scripting/lua_map.cc (+4/-4)
src/wui/economy_options_window.cc (+57/-50)
src/wui/economy_options_window.h (+14/-9)
src/wui/stock_menu.cc (+7/-15)
Changed in widelands: | |
importance: | Undecided → Medium |
Changed in widelands: | |
status: | Expired → Incomplete |
Changed in widelands: | |
status: | Incomplete → Expired |
Changed in widelands: | |
status: | Confirmed → Fix Committed |
To post a comment you must log in.
I can confirm that the game does not load on my system either.
I unzipped the save and looked at the data sizes in the save file and they seem to be reasonable. I did not analyze the contents of the economy file yet, but I do not understand how the file could become faulty.
Could you attach the savegame that is close by too? I'd like to compare the file size and maybe I can trigger an invalid save with it somehow.
stdout: https:/ /gist.github. com/SirVer/ 30b1cf558e489f3 d539359da79c676 ad /gist.github. com/SirVer/ 6c6bf7bf7a81e39 a7c05fd86d48d74 fe
sizes: https:/