Editor crash: Assertion `1 <= p && p <= get_nrplayers()' failed.

Bug #1573968 reported by kaputtnik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Fix Released
High
Unassigned

Bug Description

Steps to reproduce:

1. Start editor
2. Place one or two players
3. Create a new map

Result:
widelands: /home/kaputtnik/widelands-repo/trunk/src/logic/map.h:205: Widelands::Coords Widelands::Map::get_starting_pos(Widelands::PlayerNumber) const: Assertion `1 <= p && p <= get_nrplayers()' failed.

Tags: editor

Related branches

GunChleoc (gunchleoc)
Changed in widelands:
status: New → Confirmed
assignee: nobody → GunChleoc (gunchleoc)
status: Confirmed → In Progress
Revision history for this message
kaputtnik (franku) wrote :

This backtrace was produced through:

1. Start editor
2. Load a one player map
3. Create a new map (usually for testing i choose an unbuildable type of terrain, like water. Didn't know what kind of terrain i have chosen this time and if this is does matter at all)

But those crashes couldn't be reproduced. Earlier i loaded/saved/created new maps several times without any crash. After closing widelands and restart this crash happens.

Revision history for this message
GunChleoc (gunchleoc) wrote :

Did you create the backtrace with the attached branch or with trunk? I got the same point in the code before the attempted fix, so I need to ask.

Revision history for this message
kaputtnik (franku) wrote :

With the attached branch... just tested again and got a crash. But i have to start widelands twice to trigger the crash described in the merge proposal.

Revision history for this message
kaputtnik (franku) wrote :

The attachment is a log of a whole session, starting with gdb ./widelands. I have added some comments of what i have done, f.e.

## FrankU -> Place player and save map

After loading the last map the crash happens.

GunChleoc (gunchleoc)
Changed in widelands:
status: In Progress → Fix Committed
assignee: GunChleoc (gunchleoc) → nobody
GunChleoc (gunchleoc)
Changed in widelands:
status: Fix Committed → Fix Released
Revision history for this message
GunChleoc (gunchleoc) wrote :

Fixed in build19-rc1.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.