Crash when expedition port is destroyed while wares are unloaded
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
High
|
Unassigned |
Bug Description
This issue was found by dax831 in our forum [1] in build 18, but it still happens in r7237 (both on Win7).
To reproduce either use the savegame from the forum (build 18), it crashes after some seconds. The reason is that the port space north-west to the starting viewpoint is conquered by the red player and the construction site is destroyed.
You can also use the attached savegame (r7237) and start building a port. While there are still wares on the ship, destroy the construction site. The game crashes. This does not happen when all wares and the builder have been unloaded (and the ship drives away) before the construction site is destroyed.
In both cases, I am back on my desktop. There is no error message (or anything useful in stdout/stderr).
Changed in widelands: | |
milestone: | none → build19-rc1 |
importance: | Medium → High |
Changed in widelands: | |
status: | Fix Committed → Fix Released |
Thanks for reporting this.
I was able to reproduce this issue based on the attached save game and your instructions in r7240. I got the attached backtrace on Ubuntu.
I guess the problem is that the ship is still trying to unload its cargo, but the wares have no where to go anymore. (I wonder whether this can potentially also be triggered if you destroy the target port while the ship is unloading when doing normal ware transportation.)