Crash on starting with trading outpost without first player
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Critical
|
Unassigned |
Bug Description
When starting a game without a player on the first position, the game crashes when a player selects "trading outpost" as start condition.
Steps to reproduce:
- Create a new (single player) game
- Switch to another position for the human player
- Disable the AI at the first position
- Select "Trading Outpost" as starting condition for any active player
- Start the game
Encountered in bzr8141[trunk].
Error message:
Error in Lua Coroutine
[../src/
Send message to all players and pause game
Thread 1 "widelands" received signal SIGSEGV, Segmentation fault.
0x0000000000d3f1f0 in std::_Rb_
921 { return _M_impl.
Related branches
- SirVer: Approve
-
Diff: 142 lines (+19/-22)3 files modifieddata/tribes/scripting/starting_conditions/atlanteans/trading_outpost.lua (+3/-4)
data/tribes/scripting/starting_conditions/barbarians/trading_outpost.lua (+11/-12)
data/tribes/scripting/starting_conditions/empire/trading_outpost.lua (+5/-6)
Changed in widelands: | |
status: | New → Triaged |
importance: | Undecided → Critical |
milestone: | none → build19-rc1 |
assignee: | nobody → GunChleoc (gunchleoc) |
Changed in widelands: | |
status: | Triaged → Fix Committed |
assignee: | GunChleoc (gunchleoc) → nobody |
Changed in widelands: | |
status: | Fix Committed → Fix Released |
Sorry, I have been to quick with my "Steps to reproduce". Seems it crashes in some strange combinations. The first position does not have to be empty in every case.
Anyway, the crash-output and probably the fix should always be the same.
New steps to reproduce:
- Single player game on the map "The Nile"
- Human player on position 4 (green) with starting condition "Trading Outpost"
- Remove all other players from the game.
Very strange. Also crashes:
- Human on position 1, Headquarters
- AI with Trading Outpost on position 4
- AI with Headquarters on position 8
- Rest empty
But when adding another AI on 5-7 the game starts. Fascinating...