Unseen port crashes the game when saving
Bug #1199653 reported by
Teppo Mäenpää
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Medium
|
cghislai |
Bug Description
Widelands crashes with assert(false) while saving, if a ship on expedition has passed by a foreign tribe's port.
To reproduce:
1) Load the attached savegame, using current head ( lp:widelands/trunk/6601 )
2) Let the game advance until a ship has passed by port at (128,8) or just wait for half-a-minute
3) Save the game
The attached savegame has been run on number of development versions. This could have contributed to the crash -> might not be a bug.
Related branches
lp:~charlyghislain/widelands/portdock-fix
- SirVer: Approve
-
Diff: 943 lines (+299/-300)5 files modifiedsrc/economy/portdock.cc (+2/-2)
src/io/bitinbuffer.h (+0/-54)
src/io/bitoutbuffer.h (+0/-56)
src/logic/instances.h (+1/-0)
src/map_io/widelands_map_players_view_data_packet.cc (+296/-188)
Changed in widelands: | |
status: | In Progress → Fix Committed |
To post a comment you must log in.
Thanks for reporting this issue.
I got the following assertion error when following the steps you provided:
widelands_ map_players_ view_data_ packet. cc::write_ unseen_ immovable( ): N9Widelands16Ma p_Object_ DescrE portdock (Port Dock) was not expected. widelands/ src/map_ io/widelands_ map_players_ view_data_ packet. cc:772: void Widelands: :write_ unseen_ immovable( const Widelands: :Map_Object_ Data*, BitOutBuffer<2u>&, Widelands: :FileWrite& ): Assertion `false' failed.
widelands: /home/user/
Program received signal SIGABRT, Aborted.
(Oh, and I added a couple of tags to this bug report)