Assertion fails on expedition from before the dawn of time
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Medium
|
Unassigned |
Bug Description
I've letting the AI take over my (blue) tribe again (like in cfr. #1627767). This time an assertion failed, which seems to indicate some kind of prehistoric expedition. Blue has an expedition going on with a ship that was loaded a rather long time ago.
ComputerPlayer(1): initializing as type 2
ComputerPlayer(2): initializing as type 2
widelands: ../src/
Thread 1 "widelands" received signal SIGABRT, Aborted.
[Switching to Thread 0xb47c4a40 (LWP 7179)]
0xb7fd9dad in __kernel_vsyscall ()
(gdb) bt
#0 0xb7fd9dad in __kernel_vsyscall ()
#1 0xb75bac19 in __GI_raise (sig=6) at ../sysdeps/
#2 0xb75bc117 in __GI_abort () at abort.c:89
#3 0xb75b3bd7 in __assert_fail_base (fmt=0xb46143d3 "%s%s%s:%u: %s%sControletest '%s' faalt.\n%n",
assertion=
function=
#4 0xb75b3c5b in __GI___assert_fail (assertion=
function=
#5 0x08b8cffa in DefaultAI:
#6 0x08b8c87e in DefaultAI:
#7 0x08b7ed3d in DefaultAI::think (this=0xdecac68) at ../src/
#8 0x089d8dcc in NetHost::think (this=0xbfffe0a0) at ../src/
#9 0x088b487e in Widelands:
#10 0x08a97c7e in InteractiveBase
#11 0x08a0fc48 in UI::Panel::do_think (this=0xbadf1c8) at ../src/
#12 0x08a0f631 in UI::Panel::do_run (this=0xbadf1c8) at ../src/
#13 0x087d2007 in UI::Panel:
#14 0x088b45c6 in Widelands:
prefix_
#15 0x089d85d5 in NetHost::run (this=0xbfffe0a0) at ../src/
#16 0x087cc81b in WLApplication:
#17 0x087cbe55 in WLApplication:
#18 0x087c894b in WLApplication::run (this=0x91b6570) at ../src/
#19 0x087c710b in main (argc=1, argv=0xbffff324) at ../src/main.cc:49
(gdb)
Related branches
- GunChleoc: Approve
-
Diff: 17 lines (+7/-0)1 file modifiedsrc/ai/defaultai.cc (+7/-0)
Changed in widelands: | |
status: | Confirmed → In Progress |
Changed in widelands: | |
status: | In Progress → Fix Committed |
assignee: | TiborB (tiborb95) → nobody |
Changed in widelands: | |
status: | Fix Committed → Fix Released |
Indeed - it is a corner case, AI finds a ship in expedition in initialization, but expedition start time is not set in persistent data.
Fix prepared...
I must say that switching AI<->Human on one slot is bit fragile due to persistent data....