URL: <http://gna.org/bugs/?19283>
Summary: assertion failed in :inspect: src/gui/widgets/grid.cpp:542 Project: Battle for Wesnoth Submitted by: anonymissimus Submitted on: Sat 14 Jan 2012 01:16:57 AM GMT Category: Bug Severity: 3 - Normal Priority: 5 - Normal Item Group: None of the others Status: None Privacy: Public Assigned to: mordante Originator Email: Open/Closed: Open Discussion Lock: Any Release: r52578, 1.9.14+svn Operating System: win xp _______________________________________________________ Details: Reproduced deterministically for me with an easy how-to: The container created by this ++ [event] name=inspect first_time_only=no [set_variables] name=factions [value] {multiplayer/factions/knalgans-default.cfg} [/value] [/set_variables] {VARIABLE i 0} [while] [variable] name=i less_than=20 [/variable] [do] {VARIABLE fill_inspect[$i].x $i} {VARIABLE_OP i add 1} [/do] [/while] [inspect] [/inspect] [/event] -- cannot be inspected. (the factions one) Note that the other factions work. Put that code into the test scenario and try to view the resulting variable in :inspect. It is necessary to fill up the list of variables (with this fill_inspect array). ++ Program received signal SIGTRAP, Trace/breakpoint trap. 0x77c05b62 in msvcrt!_assert () from E:\WINDOWS\system32\msvcrt.dll (gdb) bt #0 0x77c05b62 in msvcrt!_assert () from E:\WINDOWS\system32\msvcrt.dll #1 0x00701971 in gui2::tgrid::place (this=0x15b642b8, origin=..., size=...) at C:\wesnoth\src\gui\widgets\grid.cpp:542 #2 0x006ef1a2 in gui2::tcontainer_::place (this=0x15b64230, origin=..., size=...) at C:\wesnoth\src\gui\widgets\container.cpp:73 #3 0x0071dc9f in gui2::tscrollbar_container::place (this=0x15b64230, origin=..., size=...) at C:\wesnoth\src\gui\widgets\scrollbar_container.cpp:356 #4 0x0070ccf3 in gui2::tlistbox::place (this=0x15b64230, origin=..., size=...) at C:\wesnoth\src\gui\widgets\listbox.cpp:259 #5 0x0070420e in gui2::tgrid::tchild::place (this=0x13aa8ab4, origin=..., size=...) at C:\wesnoth\src\gui\widgets\grid.cpp:761 #6 0x00707282 in gui2::tgrid::layout (this=0x13aa8940, origin=...) at C:\wesnoth\src\gui\widgets\grid.cpp:913 #7 0x00700bf0 in gui2::tgrid::place (this=0x13aa8940, origin=..., size=...) at C:\wesnoth\src\gui\widgets\grid.cpp:467 #8 0x0070420e in gui2::tgrid::tchild::place (this=0x13f20748, origin=..., size=...) at C:\wesnoth\src\gui\widgets\grid.cpp:761 #9 0x00707282 in gui2::tgrid::layout (this=0x13f205b0, origin=...) at C:\wesnoth\src\gui\widgets\grid.cpp:913 #10 0x00700bf0 in gui2::tgrid::place (this=0x13f205b0, origin=..., size=...) at C:\wesnoth\src\gui\widgets\grid.cpp:467 #11 0x0070420e in gui2::tgrid::tchild::place (this=0x1431e700, origin=..., size=...) at C:\wesnoth\src\gui\widgets\grid.cpp:761 #12 0x00707282 in gui2::tgrid::layout (this=0x13df9dd0, origin=...) at C:\wesnoth\src\gui\widgets\grid.cpp:913 #13 0x00700bf0 in gui2::tgrid::place (this=0x13df9dd0, origin=..., size=...) at C:\wesnoth\src\gui\widgets\grid.cpp:467 #14 0x00722d24 in gui2::tscrollbar_container::set_content_size (this=0x134b9838, origin=..., size=...) at C:\wesnoth\src\gui\widgets\scrollbar_container.cpp:784 #15 0x0071ddf1 in gui2::tscrollbar_container::place (this=0x134b9838, origin=..., size=...) at C:\wesnoth\src\gui\widgets\scrollbar_container.cpp:370 #16 0x0070420e in gui2::tgrid::tchild::place (this=0x134b9808, origin=..., size=...) at C:\wesnoth\src\gui\widgets\grid.cpp:761 #17 0x00707282 in gui2::tgrid::layout (this=0x15bc0bc8, origin=...) at C:\wesnoth\src\gui\widgets\grid.cpp:913 #18 0x00700bf0 in gui2::tgrid::place (this=0x15bc0bc8, origin=..., size=...) at C:\wesnoth\src\gui\widgets\grid.cpp:467 #19 0x006ef1a2 in gui2::tcontainer_::place (this=0x15bc0b40, origin=..., size=...) at C:\wesnoth\src\gui\widgets\container.cpp:73 #20 0x0074c08c in gui2::twindow::layout (this=0x15bc0b40) at C:\wesnoth\src\gui\widgets\window.cpp:1038 #21 0x0074a574 in gui2::twindow::draw (this=0x15bc0b40) at C:\wesnoth\src\gui\widgets\window.cpp:678 #22 0x00d10121 in boost::_mfi::mf0<void, gui2::twindow>::operator() (this=0x22bfd0, p=0x15bc0b40) at E:/Programme/CodeBlocks/include_tdm_gcc/boost/bind/mem_fn_template.hpp:49 #23 0x00bf46be in boost::_bi::list1<boost::_bi::value<gui2::twindow*> >::operator()<boost::_mfi::mf0<void, gui2::twindow>, boost::_bi::list4<gui2::event::tdispatcher&, gui2::event::tevent&, bool&, bool&> > (this=0x22bfd8, f=..., a=...) at E:/Programme/CodeBlocks/include_tdm_gcc/boost/bind/bind.hpp:253 #24 0x00bfa79e in boost::_bi::bind_t<void, boost::_mfi::mf0<void, gui2::twindow>, boost::_bi::list1<boost::_bi::value<gui2::twindow*> > >::operator()<gui2::event::tdispatcher, gui2::event::tevent, bool, bool> (this=0x22bfd0, a1=..., a2=@0x22be58, a3=@0x22bfaf, a4=@0x22bfae) at E:/Programme/CodeBlocks/include_tdm_gcc/boost/bind/bind_template.hpp:145 #25 0x00c46ecb in boost::detail::function::void_function_obj_invoker4<boost::_bi::bind_t<void, boost::_mfi::mf0<void, gui2::twindow>, boost::_bi::list1<boost::_bi::value<gui2::twindow*> > >, void, gui2::event::tdispatcher&, gui2::event::tevent, bool&, bool&>::invoke (function_obj_ptr=..., a0=..., a1=gui2::event::DRAW, a2=@0x22bfaf, a3=@0x22bfae) at E:/Programme/CodeBlocks/include_tdm_gcc/boost/function/function_template.hpp:153 #26 0x00d17700 in boost::function4<void, gui2::event::tdispatcher&, gui2::event::tevent, bool&, bool&>::operator() (this=0x22bfcc, a0=..., a1=gui2::event::DRAW, a2=@0x22bfaf, a3=@0x22bfae) at E:/Programme/CodeBlocks/include_tdm_gcc/boost/function/function_template.hpp:1013 #27 0x00b95c45 in gui2::event::ttrigger::operator() (this=0x22c030, functor=..., dispatcher=..., event=gui2::event::DRAW, handled=@0x22bfaf, halt=@0x22bfae) at C:\wesnoth\src\gui\auxiliary\event\dispatcher.cpp:137 #28 0x00b8af42 in gui2::event::implementation::fire_event<boost::function<void(gui2::event::tdispatcher&, gui2::event::tevent, bool&, bool&)>, gui2::event::ttrigger>(const gui2::event::tevent, std::vector<std::pair<gui2::twidget*, gui2::event::tevent>, std::allocator<std::pair<gui2::twidget*, gui2::event::tevent> > > &, gui2::twidget *, gui2::twidget *, gui2::event::ttrigger) (event=gui2::event::DRAW, event_chain=..., dispatcher=0x15bc0dbc, widget=0x15bc0dbc, functor=...) at ../../src/gui/auxiliary/event/dispatcher_private.hpp:478 #29 0x00b837a2 in gui2::event::fire_event<boost::function<void(gui2::event::tdispatcher&, gui2::event::tevent, bool&, bool&)>, gui2::event::ttrigger>(const gui2::event::tevent, gui2::twidget *, gui2::twidget *, gui2::event::ttrigger) (event=gui2::event::DRAW, dispatcher=0x15bc0dbc, widget=0x15bc0dbc, functor=...) at ../../src/gui/auxiliary/event/dispatcher_private.hpp:562 #30 0x00672c3d in gui2::event::tdispatcher::fire (this=0x15bc0e0c, event=gui2::event::DRAW, target=...) at C:\wesnoth\src\gui\auxiliary\event\dispatcher.cpp:182 #31 0x00677a7c in gui2::event::thandler::draw (this=0xfce88a0, force=false) at C:\wesnoth\src\gui\auxiliary\event\handler.cpp:488 #32 0x006770b9 in gui2::event::thandler::handle_event (this=0xfce88a0, event=...) at C:\wesnoth\src\gui\auxiliary\event\handler.cpp:331 #33 0x00593bee in events::pump () at C:\wesnoth\src\events.cpp:380 #34 0x00749fac in gui2::twindow::show (this=0x15bc0b40, restore=true, auto_close_timeout=0) at C:\wesnoth\src\gui\widgets\window.cpp:619 #35 0x006a805f in gui2::tdialog::show (this=0x22c4e8, video=..., auto_close_time=0) at C:\wesnoth\src\gui\dialogs\dialog.cpp:51 #36 0x0060de93 in wml_func_inspect (cfg=...) at C:\wesnoth\src\game_events.cpp:938 #37 0x008f0101 in cfun_wml_action (L=0xfa31860) at C:\wesnoth\src\scripting\lua.cpp:3919 #38 0x00a53f5d in luaD_precall (L=0xfa31860, func=0x132b29b8, nresults=0) at C:\wesnoth\src\lua\ldo.c:323 #39 0x00a5a138 in luaV_execute (L=0xfa31860, nexeccalls=1) at C:\wesnoth\src\lua\lvm.c:590 #40 0x00a541bc in luaD_call (L=0xfa31860, func=0x132b2908, nResults=0) at C:\wesnoth\src\lua\ldo.c:381 #41 0x00a477e5 in f_call (L=0xfa31860, ud=0x22c9ec) at C:\wesnoth\src\lua\lapi.c:800 #42 0x00a5335e in luaD_rawrunprotected (L=0xfa31860, f=0xa477bb <f_call(lua_State*, void*)>, ud=0x22c9ec) at C:\wesnoth\src\lua\ldo.c:120 #43 0x00a54518 in luaD_pcall (L=0xfa31860, func=0xa477bb <f_call(lua_State*, void*)>, u=0x22c9ec, old_top=32, ef=16) at C:\wesnoth\src\lua\ldo.c:467 #44 0x00a4786e in lua_pcall (L=0xfa31860, nargs=1, nresults=0, errfunc=-3) at C:\wesnoth\src\lua\lapi.c:821 #45 0x008d9ec7 in luaW_pcall (L=0xfa31860, nArgs=1, nRets=0, allow_wml_error=true) at C:\wesnoth\src\scripting\lua.cpp:456 #46 0x008f02f5 in LuaKernel::run_wml_action (this=0xf924e58, cmd=..., cfg=..., ev=...) at C:\wesnoth\src\scripting\lua.cpp:3957 #47 0x0063197b in game_events::handle_event_commands (event_info=..., cfg=...) at C:\wesnoth\src\game_events.cpp:3139 #48 0x0063184f in game_events::event_handler::handle_event (this=0x11689370, event_info=...) at C:\wesnoth\src\game_events.cpp:3134 #49 0x006309b4 in process_event (handler=..., ev=...) at C:\wesnoth\src\game_events.cpp:3098 #50 0x00635031 in game_events::pump () at C:\wesnoth\src\game_events.cpp:3461 #51 0x00634103 in game_events::fire (event=..., loc1=..., loc2=..., data=...) at C:\wesnoth\src\game_events.cpp:3369 #52 0x007dc4ef in events::console_handler::do_event (this=0x22d68c) at C:\wesnoth\src\menu_events.cpp:3647 #53 0x00ca1c07 in events::map_command_handler<events::console_handler>::dispatch (this=0x22d68c, cmd=...) at C:\wesnoth\src\menu_events.cpp:2033 #54 0x007d4e48 in events::menu_handler::do_command (this=0x22e538, str=...) at C:\wesnoth\src\menu_events.cpp:3123 #55 0x00870f8a in play_controller::enter_textbox (this=0x22e428) at C:\wesnoth\src\play_controller.cpp:896 #56 0x00871fab in play_controller::process_focus_keydown_event (this=0x22e428, event=...) at C:\wesnoth\src\play_controller.cpp:1036 #57 0x0054ab67 in controller_base::handle_event (this=0x22e428, event=...) at C:\wesnoth\src\controller_base.cpp:62 #58 0x00593bee in events::pump () at C:\wesnoth\src\events.cpp:380 #59 0x0054b546 in controller_base::play_slice (this=0x22e428, is_delay_enabled=true) at C:\wesnoth\src\controller_base.cpp:197 #60 0x00889f91 in playsingle_controller::play_human_turn (this=0x22e428) at C:\wesnoth\src\playsingle_controller.cpp:709 #61 0x00889536 in playsingle_controller::play_side (this=0x22e428, side_number=1, save=true) at C:\wesnoth\src\playsingle_controller.cpp:637 #62 0x00889045 in playsingle_controller::play_turn (this=0x22e428, save=true) at C:\wesnoth\src\playsingle_controller.cpp:591 #63 0x00886fbf in playsingle_controller::play_scenario (this=0x22e428, story=..., skip_replay=false) at C:\wesnoth\src\playsingle_controller.cpp:391 #64 0x00876168 in playsingle_scenario (game_config=..., level=0x22ee84, disp=..., state_of_game=..., story=..., skip_replay=false, end_level=...) at C:\wesnoth\src\playcampaign.cpp:130 #65 0x008794be in play_game (disp=..., gamestate=..., game_config=..., io_type=IO_NONE, skip_replay=false) at C:\wesnoth\src\playcampaign.cpp:365 #66 0x005e87f1 in game_controller::play_test (this=0xe79ea78) at C:\wesnoth\src\game_controller.cpp:330 #67 0x005dd6df in do_gameloop (argc=3, argv=0xe796138) at C:\wesnoth\src\game.cpp:467 #68 0x005de76c in SDL_main (argc=3, argv=0xe796138) at C:\wesnoth\src\game.cpp:641 #69 0x00a4572b in console_main (argc=3, argv=0xe796138) at ./src/main/win32/SDL_win32_main.c:315 #70 0x00a457e8 in WinMain (hInst=0x400000, hPrev=0x0, szCmdLine=0x241eff "-t -d", sw=10) at ./src/main/win32/SDL_win32_main.c:398 #71 0x00a44ea6 in main () -- _______________________________________________________ Reply to this item at: <http://gna.org/bugs/?19283> _______________________________________________ Message sent via/by Gna! http://gna.org/ _______________________________________________ Wesnoth-bugs mailing list Wesnoth-bugs@gna.org https://mail.gna.org/listinfo/wesnoth-bugs