Crash at end of game (game statistics window)

Bug #1209283 reported by Nasenbaer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Fix Released
Critical
cghislai

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/libc.so.6
#2 0xb79f2063 in abort () from /lib/i686/libc.so.6
#3 0xb7c2462d in __gnu_cxx::__verbose_terminate_handler() () from /lib/libstdc++.so.6
#4 0xb7c22293 in __cxxabiv1::__terminate(void (*)()) () from /lib/libstdc++.so.6
#5 0xb7c222cf in std::terminate() () from /lib/libstdc++.so.6
#6 0xb7c222e3 in __cxxabiv1::__unexpected(void (*)()) () from /lib/libstdc++.so.6
#7 0xb7c21ddd in __cxa_call_unexpected () from /lib/libstdc++.so.6
#8 0x088aa410 in Widelands::Players_Manager::add_player_end_status (this=0x9849c40, status=...) at /home/drehatlas/widelands/widelands/src/logic/playersmanager.cc:100
#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/gamecontroller.cc:178
#10 0x08767605 in LuaGame::L_report_result (L=0xa4e3e18) at /home/drehatlas/widelands/widelands/src/scripting/lua_game.cc:1328
#11 0xb7e1ed1f in luaD_precall () from /lib/liblua.so.5.1
#12 0xb7e29b6d in luaV_execute () from /lib/liblua.so.5.1
#13 0xb7e1e3c0 in luaD_rawrunprotected () from /lib/liblua.so.5.1
#14 0xb7e1f256 in lua_resume () from /lib/liblua.so.5.1
#15 0x0876272e in LuaCoroutine_Impl::resume (this=0xa4efad8, sleeptime=0xbfffc0cc) at /home/drehatlas/widelands/widelands/src/scripting/coroutine_impl.cc:46
#16 0x08918f0f in Widelands::Cmd_LuaCoroutine::execute (this=0xa42bb68, game=...) at /home/drehatlas/widelands/widelands/src/logic/cmd_luacoroutine.cc:35
#17 0x08933d87 in Widelands::Cmd_Queue::run_queue (this=0xbfffc65c, interval=41, game_time_var=@0xbfffc51c: 5100)
    at /home/drehatlas/widelands/widelands/src/logic/cmd_queue.cc:132
#18 0x0892e623 in Widelands::Game::think (this=0xbfffc4ec) at /home/drehatlas/widelands/widelands/src/logic/game.cc:624
#19 0x0880168b in Interactive_Base::think (this=0x9860f78) at /home/drehatlas/widelands/widelands/src/wui/interactive_base.cc:379
#20 0x087f4ccc in Interactive_Player::think (this=0x9860f78) at /home/drehatlas/widelands/widelands/src/wui/interactive_player.cc:261
---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/panel.cc:585
#22 0x089f50b6 in UI::Panel::run (this=0x9860f78) at /home/drehatlas/widelands/widelands/src/ui_basic/panel.cc:205
#23 0x0892e2c4 in Widelands::Game::run (this=0xbfffc4ec, loader_ui=0xbfffc464, start_game_type=Widelands::Game::NewNonScenario)
    at /home/drehatlas/widelands/widelands/src/logic/game.cc:577
#24 0x086e6ca3 in WLApplication::new_game (this=0x9209838) at /home/drehatlas/widelands/widelands/src/wlapplication.cc:2033
#25 0x086e6298 in WLApplication::mainmenu_singleplayer (this=0x9209838) at /home/drehatlas/widelands/widelands/src/wlapplication.cc:1646
#26 0x086e5e64 in WLApplication::mainmenu (this=0x9209838) at /home/drehatlas/widelands/widelands/src/wlapplication.cc:1567
#27 0x086e1482 in WLApplication::run (this=0x9209838) at /home/drehatlas/widelands/widelands/src/wlapplication.cc:469
#28 0x086df965 in main (argc=1, argv=0xbfffed64) at /home/drehatlas/widelands/widelands/src/main.cc:103

Changed in widelands:
assignee: nobody → cghislai (charlyghislain)
Revision history for this message
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
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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