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

                 Summary: With -d set,  PickYourRecruits_Era fails assertion
after recruit
                 Project: Battle for Wesnoth
            Submitted by: crab
            Submitted on: Wednesday 08/12/2009 at 19:01
                Category: Bug
                Severity: 3 - Normal
                Priority: 4
              Item Group: Replays
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: r37698
        Operating System: Debian

    _______________________________________________________

Details:

How to reproduce: Start a game with PickYourRecruits_Era, do a 1st-turn
recruitment (to select a recruit).

Only happens with -d set.

------
feather:/wesnoth%gdb --args ./wesnoth-debug -d
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) run
Starting program: /home/crab/workspace/wesnoth/wesnoth-git/wesnoth-debug -d
[Thread debugging using libthread_db enabled]
warning: Lowest section in /usr/lib/libicudata.so.38 is .hash at 000000b4
[New Thread 0xb653a8e0 (LWP 8055)]
[New Thread 0xb6539b90 (LWP 8058)]
Battle for Wesnoth v1.7.2+svn (37697M)
Started on Wed Aug 12 18:35:32 2009

Automatically found a possible data directory at
/home/crab/workspace/wesnoth/wesnoth-git

Data directory: /home/crab/workspace/wesnoth/wesnoth-git
User configuration directory: /home/crab/.wesnoth

Checking video mode: 1112x927x16...
setting mode to 1112x927x16
20090812 18:35:35 error general: no location found for
'data/add-ons/PickYourRecruits_Era/translations', skipping textdomain
[New Thread 0xb48fab90 (LWP 8079)]
[New Thread 0xb40f9b90 (LWP 8080)]
[Thread 0xb40f9b90 (LWP 8080) exited]
wesnoth-debug: src/replay.cpp:173: void replay::add_unit_checksum(const
map_location&, config*): Assertion `u.valid()' failed.

Program received signal SIGABRT, Aborted.
[Switching to Thread 0xb653a8e0 (LWP 8055)]
0xb7fa3424 in __kernel_vsyscall ()
(gdb) bt
#0  0xb7fa3424 in __kernel_vsyscall ()
#1  0xb77a2640 in raise () from /lib/i686/cmov/libc.so.6
#2  0xb77a4008 in abort () from /lib/i686/cmov/libc.so.6
#3  0xb779b5ce in __assert_fail () from /lib/i686/cmov/libc.so.6
#4  0x0825f2a9 in replay::add_unit_checksum (this=0x8babfc0, l...@0xbf9ba660,

    cfg=0xa725268) at src/replay.cpp:173
#5  0x0825f417 in replay::add_checksum_check (this=0x8babfc0,
l...@0xbf9ba660)
    at src/replay.cpp:386
#6  0x085b40d3 in events::menu_handler::do_recruit (this=0xbf9bbf34, 
    na...@0xa89d064, side_num=1, last_h...@0xbf9bbea8)
    at src/menu_events.cpp:819
#7  0x085b4fb0 in events::menu_handler::recruit (this=0xbf9bbf34, 
    browse=false, side_num=1, last_h...@0xbf9bbea8) at
src/menu_events.cpp:744
#8  0x08252caa in playsingle_controller::recruit (this=0xbf9bbe48)
    at src/playsingle_controller.cpp:104
#9  0x08805db6 in hotkey::command_executor::execute_command (this=0xbf9bbe48,

    command=hotkey::HOTKEY_RECRUIT) at src/hotkeys.cpp:741
#10 0x085e0ebd in play_controller::execute_command (this=0xbf9bbe48, 
    command=hotkey::HOTKEY_RECRUIT, index=5) at src/play_controller.cpp:659
#11 0x08806cd2 in hotkey::execute_command (di...@0x989c6a8, 
    command=hotkey::HOTKEY_RECRUIT, executor=0xbf9bbe48, index=5)
    at src/hotkeys.cpp:878
#12 0x0880969d in hotkey::command_executor::show_menu (this=0xbf9bbe48, 
    items_a...@0xbf9bb35c, xloc=423, yloc=623, context_menu=true, 
    g...@0x989c6a8) at src/hotkeys.cpp:981
#13 0x085e0180 in play_controller::show_menu (this=0xbf9bbe48, 
    items_a...@0x989c77c, xloc=423, yloc=623, context_menu=true)
    at src/play_controller.cpp:1028
#14 0x08553e9a in controller_base::handle_event (this=0xbf9bbe48, 
    eve...@0xc401cf0) at src/controller_base.cpp:82
#15 0x087fed33 in events::pump () at src/events.cpp:381
#16 0x08553a43 in controller_base::play_slice (this=0xbf9bbe48, 
    is_delay_enabled=true) at src/controller_base.cpp:185
#17 0x08246860 in playmp_controller::play_human_turn (this=0xbf9bbe48)
    at src/playmp_controller.cpp:250
#18 0x08247e11 in playmp_controller::play_side (this=0xbf9bbe48,
team_index=1, 
    save=true) at src/playmp_controller.cpp:104
#19 0x0824d3db in playsingle_controller::play_turn (this=0xbf9bbe48,
save=true)
    at src/playsingle_controller.cpp:561
#20 0x08250f4f in playsingle_controller::play_scenario (this=0xbf9bbe48, 
    sto...@0xbf9bc5d4, l...@0xbf9be1a4, skip_replay=false, 
    end_level_result=0xbf9bc5c0) at src/playsingle_controller.cpp:370
#21 0x0823b9bb in playmp_scenario (game_conf...@0xbf9c0670, level=0xbf9bc538,

    di...@0x8d45e98, state_of_ga...@0xbf9bdff0, sto...@0xbf9bc5d4, 
    l...@0xbf9be1a4, skip_replay=false, io_ty...@0xbf9bcea0, 
    end_level=0xbf9bc5c0) at src/playcampaign.cpp:153
#22 0x0823f804 in play_game (di...@0x8d45e98, gamesta...@0xbf9bdff0, 
    game_conf...@0xbf9c0670, l...@0xbf9be1a4, io_type=IO_SERVER, 
    skip_replay=false) at src/playcampaign.cpp:361
#23 0x081bf413 in enter_connect_mode (di...@0x8d45e98, 
    game_conf...@0xbf9c0670, ch...@0xbf9c0160, gameli...@0xbf9c0124, 
    para...@0xbf9bffd4, default_controller=mp::CNTR_LOCAL, 
    local_players_only=true) at src/multiplayer.cpp:447
#24 0x081bf03f in enter_create_mode (di...@0x8d45e98,
game_conf...@0xbf9c0670, 
    ch...@0xbf9c0160, gameli...@0xbf9c0124,
default_controller=mp::CNTR_LOCAL, 
    local_players_only=true) at src/multiplayer.cpp:484
#25 0x081bf7da in mp::start_local_game (di...@0x8d45e98, 
    game_conf...@0xbf9c0670, default_controller=mp::CNTR_LOCAL)
    at src/multiplayer.cpp:592
#26 0x0805fc61 in play_multiplayer (this=0xbf9c061c) at src/game.cpp:1328
#27 0x0806b26e in do_gameloop (argc=2, argv=0xbf9c0ae4) at src/game.cpp:2097
#28 0x0806ba56 in main (argc=2, argv=0xbf9c0ae4) at src/game.cpp:2184
(gdb) 





    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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