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

                 Summary: Crash due to window resizing problems with long
message option
                 Project: Battle for Wesnoth
            Submitted by: pmawhorter
            Submitted on: Tuesday 02/10/2009 at 22:10
                Category: Bug
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: User Interface
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.5.9+svn (32622)
        Operating System: Ubuntu 8.04

    _______________________________________________________

Details:

In the campaign "Invasion from the Unknown", scenario 5a ("Crossfire") when
killing the bandit leader, the game crashes.

Relevant error messages are:

20090210 13:45:55 error gui_layout: Failed to resize window, wanted width 901
available width 881.
wesnoth: src/gui/widgets/window.cpp:497: void gui2::twindow::layout():
Assertion `false' failed.


GDB backtrace:

#0  0xb7fb1410 in __kernel_vsyscall ()
#1  0xb7784085 in raise () from /lib/tls/i686/cmov/libc.so.6
#2  0xb7785a01 in abort () from /lib/tls/i686/cmov/libc.so.6
#3  0xb777d10e in __assert_fail () from /lib/tls/i686/cmov/libc.so.6
#4  0x0830f74a in gui2::twindow::layout ()
#5  0x08310024 in gui2::twindow::draw ()
#6  0x082d6c62 in gui2::tevent_handler::handle_event ()
#7  0x085da097 in events::pump ()
#8  0x0830e955 in gui2::twindow::show ()
#9  0x082b77e1 in gui2::tdialog::show ()
#10 0x082c8255 in gui2::show_wml_message ()
#11 0x080eec02 in (anonymous namespace)::wml_func_message ()
#12 0x080bd455 in game_events::command_handlers::call_handler ()
#13 0x080bd60b in game_events::event_handler::handle_event_command ()
#14 0x080c1f24 in game_events::event_handler::handle_event ()
#15 0x080c2b20 in process_event ()
#16 0x080c43e4 in game_events::pump ()
#17 0x080c4914 in game_events::fire ()
#18 0x083da1dc in attack::attack ()
#19 0x084bef6b in events::mouse_handler::attack_enemy_ ()
#20 0x084bf8cc in events::mouse_handler::attack_enemy ()
#21 0x084bfd35 in events::mouse_handler::left_click ()
#22 0x08163763 in events::mouse_handler_base::mouse_press ()
#23 0x0842ca62 in controller_base::handle_event ()
#24 0x085da097 in events::pump ()
#25 0x0842d12c in controller_base::play_slice ()
#26 0x081c0a1b in playsingle_controller::play_human_turn ()
#27 0x081b9e0e in playsingle_controller::play_side ()
#28 0x081ba9aa in playsingle_controller::play_turn ()
#29 0x081bd467 in playsingle_controller::play_scenario ()
#30 0x081ab456 in play_game ()
#31 0x0805f95a in (anonymous namespace)::game_controller::launch_game ()
#32 0x08069c1e in do_gameloop ()
#33 0x0806aa80 in main ()

WML near the crash:

        [message]
            speaker=second_unit
            message= _ "Leader?"
        [/message]

        {MSG_UNIT (Mal Keshar) ( _ "He does not seem to be lying. What do you
think, master Galas?")}

        [message]
            speaker=Galas
            message= _ "Um... well."
            [option]
                message= _ "We shall listen your offer, just swear you will
never cause us trouble again."

...

            [option]
                message= _ "Your kind cannot be trusted. Any other last
words?"
                [command]
                    # They are dead
                    {VARIABLE fugitives_status 0}

...


I get the "He does not seem to be lying..." line, but the game crashes before
displaying Galas' line. I'm running it at 1024x760, not quite full screen
(although running it fullscreen doesn't fix the problem).

A quick look at the code suggests that it may be a wrapping problem, as the
code near the assert that fails only wrapps if a wrappable variable is set to
true.

I've attached a savegame from which it should be trivial to kill the leader
and reproduce the bug (You'll have to have Invasion from the Unkown to do so,
of course). I'm using Invasion from the Unknown version 1.10.4.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tuesday 02/10/2009 at 22:10  Name: IftU-1-Crossfire-Auto-Save18.gz 
Size: 103kB   By: pmawhorter

<http://gna.org/bugs/download.php?file_id=5287>

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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