Crash on rendering roads
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Medium
|
Unassigned |
Bug Description
I am not completely sure what causes it, but my theory is:
- Discover/See an area but do not conquer it.
- Lose sight of the area.
- Let the AI conquer and build on the land without observing it. Building is important here, we need some roads.
- At some later time, rediscover the ares. Roads leading into the non-visible areas crash the game. (Most likely these roads must lead into darkness above or left of the visible area).
Happened in r8163. The problem seems to be that the road is told to be rendered by a neighboring tile but the start of the road is not visible yet. Since it is not visible, the player(!=game) does not know the owner of the land, leading to a failed assert(
A backtrace and a branch with a fix are attached. I can also offer savegames if required.
Related branches
- GunChleoc: Approve
-
Diff: 26 lines (+10/-5)1 file modifiedsrc/graphic/gl/road_program.cc (+10/-5)
Changed in widelands: | |
importance: | Undecided → Medium |
assignee: | nobody → Janosch Peters (janosch-peters) |
Fix LGTM. Candidate for Build 19?