Crash at end of game (game statistics window)

Bug #1209283 reported by Nasenbaer on 2013-08-07
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

I wanted to test the new game statistics window after the end of a game. Unfortunally all tries lead to the same error:
E.g. I started the game as singleplayer/multiplayer (does not matter) without enemys and with win condition "Autocrat" / or started a game with one computer player and "Autocrat" win condition, switched to the second player (debug console) and destroyed it's warehouse. In every way the bug was triggered (see attached gdb output)

terminate called after throwing an instance of 'std::out_of_range'
  what(): vector::_M_range_check

Program received signal SIGABRT, Aborted.
0xb7fdf424 in __kernel_vsyscall ()
(gdb) bt
#0 0xb7fdf424 in __kernel_vsyscall ()
#1 0xb79f064f in raise () from /lib/i686/
#2 0xb79f2063 in abort () from /lib/i686/
#3 0xb7c2462d in __gnu_cxx::__verbose_terminate_handler() () from /lib/
#4 0xb7c22293 in __cxxabiv1::__terminate(void (*)()) () from /lib/
#5 0xb7c222cf in std::terminate() () from /lib/
#6 0xb7c222e3 in __cxxabiv1::__unexpected(void (*)()) () from /lib/
#7 0xb7c21ddd in __cxa_call_unexpected () from /lib/
#8 0x088aa410 in Widelands::Players_Manager::add_player_end_status (this=0x9849c40, status=...) at /home/drehatlas/widelands/widelands/src/logic/
#9 0x087f0ccb in SinglePlayerGameController::report_result (this=0x985e978, p_nr=1 '\001', result=Widelands::PLAYER_WON, info=
    "win_condition=Alleinherrscher;win_condition_version=2;tribe=barbarians") at /home/drehatlas/widelands/widelands/src/
#10 0x08767605 in LuaGame::L_report_result (L=0xa4e3e18) at /home/drehatlas/widelands/widelands/src/scripting/
#11 0xb7e1ed1f in luaD_precall () from /lib/
#12 0xb7e29b6d in luaV_execute () from /lib/
#13 0xb7e1e3c0 in luaD_rawrunprotected () from /lib/
#14 0xb7e1f256 in lua_resume () from /lib/
#15 0x0876272e in LuaCoroutine_Impl::resume (this=0xa4efad8, sleeptime=0xbfffc0cc) at /home/drehatlas/widelands/widelands/src/scripting/
#16 0x08918f0f in Widelands::Cmd_LuaCoroutine::execute (this=0xa42bb68, game=...) at /home/drehatlas/widelands/widelands/src/logic/
#17 0x08933d87 in Widelands::Cmd_Queue::run_queue (this=0xbfffc65c, interval=41, game_time_var=@0xbfffc51c: 5100)
    at /home/drehatlas/widelands/widelands/src/logic/
#18 0x0892e623 in Widelands::Game::think (this=0xbfffc4ec) at /home/drehatlas/widelands/widelands/src/logic/
#19 0x0880168b in Interactive_Base::think (this=0x9860f78) at /home/drehatlas/widelands/widelands/src/wui/
#20 0x087f4ccc in Interactive_Player::think (this=0x9860f78) at /home/drehatlas/widelands/widelands/src/wui/
---Type <return> to continue, or q <return> to quit---
#21 0x089f5a2f in UI::Panel::do_think (this=0x9860f78) at /home/drehatlas/widelands/widelands/src/ui_basic/
#22 0x089f50b6 in UI::Panel::run (this=0x9860f78) at /home/drehatlas/widelands/widelands/src/ui_basic/
#23 0x0892e2c4 in Widelands::Game::run (this=0xbfffc4ec, loader_ui=0xbfffc464, start_game_type=Widelands::Game::NewNonScenario)
    at /home/drehatlas/widelands/widelands/src/logic/
#24 0x086e6ca3 in WLApplication::new_game (this=0x9209838) at /home/drehatlas/widelands/widelands/src/
#25 0x086e6298 in WLApplication::mainmenu_singleplayer (this=0x9209838) at /home/drehatlas/widelands/widelands/src/
#26 0x086e5e64 in WLApplication::mainmenu (this=0x9209838) at /home/drehatlas/widelands/widelands/src/
#27 0x086e1482 in WLApplication::run (this=0x9209838) at /home/drehatlas/widelands/widelands/src/
#28 0x086df965 in main (argc=1, argv=0xbfffed64) at /home/drehatlas/widelands/widelands/src/

Changed in widelands:
assignee: nobody → cghislai (charlyghislain)
cghislai (charlyghislain) wrote :

Fixed in 6708.
The script I used to test this stuff prevented me to run into this obvious bug, sorry for that.

Changed in widelands:
status: Confirmed → Fix Committed
SirVer (sirver) wrote :

Released in build-18 rc1.

Changed in widelands:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers