URL:
  <http://gna.org/bugs/?18803>

                 Summary: Using :fire under certain conditons causes the game
to abort
                 Project: Battle for Wesnoth
            Submitted by: espreon
            Submitted on: Mon 10 Oct 2011 02:43:25 AM GMT
                Category: Bug
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group:  None of the others
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.9.9
        Operating System: Sabayon Linux

    _______________________________________________________

Details:

When testing my campaign (The Silver Lands), I noticed that using ":fire"
causes the game to abort under certain conditions.

svn: svn co
https://wesnoth-umc-dev.svn.sourceforge.net/svnroot/wesnoth-umc-dev/trunk/The_Silver_Lands

To reproduce, do the following:

1. Start the prologue

2. :fire fire_room_portal

3. Kill Græk Lon. Note that I used ":unit hitpoints=1" and then killed him
with a Create Unit dialog-spawned unit.

4. :fire bf1_open_passage

5. Behold

Error:

wesnoth: /home/espreon/wesnoth-1.9.9/src/actions.cpp:644: void
place_recruit(const unit&, const map_location&, bool, bool, bool, bool, bool):
Assertion `!wml_triggered' failed.

Program received signal SIGABRT, Aborted.
0x00007ffff3959935 in raise () from /lib64/libc.so.6

bt:

#0  0x00007ffff3959935 in raise () from /lib64/libc.so.6
#1  0x00007ffff395adb6 in abort () from /lib64/libc.so.6
#2  0x00007ffff3952555 in __assert_fail () from /lib64/libc.so.6
#3  0x0000000000f40061 in place_recruit (u=..., recruit_location=...,
is_recall=true, show=true, fire_event=false, full_movement=true,
wml_triggered=true)
    at /home/espreon/wesnoth-1.9.9/src/actions.cpp:644
#4  0x0000000001209af5 in wml_func_recall (cfg=...) at
/home/espreon/wesnoth-1.9.9/src/game_events.cpp:1755
#5  0x000000000157f8ad in cfun_wml_action (L=0x7fffde3a4580) at
/home/espreon/wesnoth-1.9.9/src/scripting/lua.cpp:3808
#6  0x00000000017342b7 in luaD_precall (L=0x7fffde3a4580,
func=0x7fffdc7372f0, nresults=0) at
/home/espreon/wesnoth-1.9.9/src/lua/ldo.c:323
#7  0x00000000017422fa in luaV_execute (L=0x7fffde3a4580, nexeccalls=1) at
/home/espreon/wesnoth-1.9.9/src/lua/lvm.c:590
#8  0x0000000001734589 in luaD_call (L=0x7fffde3a4580, func=0x7fffdc737240,
nResults=0) at /home/espreon/wesnoth-1.9.9/src/lua/ldo.c:381
#9  0x0000000001730ad4 in f_call (L=0x7fffde3a4580, ud=0x7fffffff94a0) at
/home/espreon/wesnoth-1.9.9/src/lua/lapi.c:800
#10 0x0000000001733438 in luaD_rawrunprotected (L=0x7fffde3a4580, f=0x1730a9f
<f_call(lua_State*, void*)>, ud=0x7fffffff94a0) at
/home/espreon/wesnoth-1.9.9/src/lua/ldo.c:120
#11 0x0000000001734997 in luaD_pcall (L=0x7fffde3a4580, func=0x1730a9f
<f_call(lua_State*, void*)>, u=0x7fffffff94a0, old_top=32, ef=16) at
/home/espreon/wesnoth-1.9.9/src/lua/ldo.c:467
#12 0x0000000001730b7d in lua_pcall (L=0x7fffde3a4580, nargs=1, nresults=0,
errfunc=-3) at /home/espreon/wesnoth-1.9.9/src/lua/lapi.c:821
#13 0x000000000156eca2 in luaW_pcall (L=0x7fffde3a4580, nArgs=1, nRets=0,
allow_wml_error=true) at
/home/espreon/wesnoth-1.9.9/src/scripting/lua.cpp:443
#14 0x000000000157fa4a in LuaKernel::run_wml_action (this=0x7fffdc0c75d0,
cmd="command", cfg=..., ev=...) at
/home/espreon/wesnoth-1.9.9/src/scripting/lua.cpp:3846
#15 0x00000000012171ef in game_events::handle_event_commands (event_info=...,
cfg=...) at /home/espreon/wesnoth-1.9.9/src/game_events.cpp:3040
#16 0x0000000001217145 in game_events::event_handler::handle_event
(this=0x7fffdcf386a0, event_info=...) at
/home/espreon/wesnoth-1.9.9/src/game_events.cpp:3035
#17 0x0000000001216921 in process_event (handler=..., ev=...) at
/home/espreon/wesnoth-1.9.9/src/game_events.cpp:2999
#18 0x0000000001219885 in game_events::pump () at
/home/espreon/wesnoth-1.9.9/src/game_events.cpp:3341
#19 0x000000000121910a in game_events::fire (event="bf1_open_passage",
loc1=..., loc2=..., data=...) at
/home/espreon/wesnoth-1.9.9/src/game_events.cpp:3270
#20 0x000000000148540d in events::console_handler::do_event
(this=0x7fffffffa280) at /home/espreon/wesnoth-1.9.9/src/menu_events.cpp:3608
#21 0x00000000014961cc in
events::map_command_handler<events::console_handler>::dispatch
(this=0x7fffffffa280, cmd="throw bf1_open_passage")
    at /home/espreon/wesnoth-1.9.9/src/menu_events.cpp:2024
#22 0x00000000014803df in events::menu_handler::do_command
(this=0x7fffffffb5a8, str="fire bf1_open_passage") at
/home/espreon/wesnoth-1.9.9/src/menu_events.cpp:3114
#23 0x000000000152be2e in play_controller::enter_textbox
(this=0x7fffffffb3d0) at
/home/espreon/wesnoth-1.9.9/src/play_controller.cpp:880
#24 0x000000000152cc3d in play_controller::process_focus_keydown_event
(this=0x7fffffffb3d0, event=...) at
/home/espreon/wesnoth-1.9.9/src/play_controller.cpp:1020
#25 0x00000000011443d9 in controller_base::handle_event (this=0x7fffffffb3d0,
event=...) at /home/espreon/wesnoth-1.9.9/src/controller_base.cpp:62
#26 0x0000000001791caa in events::pump () at
/home/espreon/wesnoth-1.9.9/src/events.cpp:380
#27 0x0000000001144dac in controller_base::play_slice (this=0x7fffffffb3d0,
is_delay_enabled=true) at
/home/espreon/wesnoth-1.9.9/src/controller_base.cpp:197
#28 0x00000000015483c5 in playsingle_controller::play_human_turn
(this=0x7fffffffb3d0) at
/home/espreon/wesnoth-1.9.9/src/playsingle_controller.cpp:717
#29 0x0000000001547c64 in playsingle_controller::play_side
(this=0x7fffffffb3d0, team_index=1, save=true) at
/home/espreon/wesnoth-1.9.9/src/playsingle_controller.cpp:642
#30 0x0000000001547894 in playsingle_controller::play_turn
(this=0x7fffffffb3d0, save=true) at
/home/espreon/wesnoth-1.9.9/src/playsingle_controller.cpp:596
#31 0x0000000001546054 in playsingle_controller::play_scenario
(this=0x7fffffffb3d0, story=..., skip_replay=false) at
/home/espreon/wesnoth-1.9.9/src/playsingle_controller.cpp:397
#32 0x0000000001538c8d in playsingle_scenario (game_config=...,
level=0x7fffffffbc80, disp=..., state_of_game=..., story=...,
skip_replay=false, end_level=...)
    at /home/espreon/wesnoth-1.9.9/src/playcampaign.cpp:130
#33 0x000000000153b555 in play_game (disp=..., gamestate=...,
game_config=..., io_type=IO_NONE, skip_replay=false) at
/home/espreon/wesnoth-1.9.9/src/playcampaign.cpp:365
#34 0x00000000011d6152 in game_controller::launch_game (this=0x21295f0,
reload=game_controller_abstract::RELOAD_DATA) at
/home/espreon/wesnoth-1.9.9/src/game_controller.cpp:1264
#35 0x0000000000f1ba31 in do_gameloop (argc=1, argv=0x7fffffffdc38) at
/home/espreon/wesnoth-1.9.9/src/game.cpp:567
#36 0x0000000000f1bf2e in main (argc=1, argv=0x7fffffffdc38) at
/home/espreon/wesnoth-1.9.9/src/game.cpp:621




    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?18803>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to