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

                 Summary: crash on [kill] canrecruit=yes during last_breath
when caused by debug mode
                 Project: Battle for Wesnoth
            Submitted by: arcdeseel
            Submitted on: Wed 08 Mar 2017 09:02:29 PM UTC
                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.13.6
        Operating System: Linux Mint 17

    _______________________________________________________

Details:

Attached is a tiny add-on which should reproduce the error.

[modification]
    id=bug
    name="Bug"
    description="Bug: shift-king and."
    [event]
        name=last_breath
        [filter]
                canrecruit=yes
        [/filter]
        [kill]
                canrecruit=yes
                side=$unit.side
        [/kill]
    [/event]
[/modification]

Starting debug mode and shift-k-ing a leader gives the following crash. Once
any leader has been killed by regular combat, this error will cease to
happen.

Battle for Wesnoth v1.13.6
Started on Wed Mar  8 13:46:16 2017


Data directory:               /usr/local/share/wesnoth
User configuration directory: /home/sharedgames/.config/wesnoth
User data directory:          /home/sharedgames/.local/share/wesnoth/1.13
Cache directory:              /home/sharedgames/.cache/wesnoth

Setting mode to 1920x1030
20170308 13:46:17 warning config: add-on 'Bug' has no _info.cfg; cannot read
version info
Checking lua scripts... ok
20170308 13:46:20 error gui/layout: ttext::set_markup_helper text 'A very
small 2 vs. 2 map. Close quarters fighting means the successful rotation of
units and planning of moves is important. Teams set for players 1&4 vs. 2&3
(northeast vs. southwest). Designed for 75 starting gold, 20 villages.' has
unescaped ampersands '&', escaped them.
20170308 13:46:20 error gui/layout: ttext::set_markup_helper text 'A very
small 2 vs. 2 map. Close quarters fighting means the successful rotation of
units and planning of moves is important. Teams set for players 1&4 vs. 2&3
(northeast vs. southwest). Designed for 75 starting gold, 20 villages.' has
unescaped ampersands '&', escaped them.
wesnoth: /home/sharedgames/Downloads/wesnoth-1.13.6/src/units/map.hpp:177:
unit_map::iterator_base<iter_types>::pointer
unit_map::iterator_base<iter_types>::operator->() const [with iter_types =
unit_map::standard_iter_types; unit_map::iterator_base<iter_types>::pointer =
boost::intrusive_ptr<unit>; typename iter_types::value_type = unit]: Assertion
`valid()' failed.
Aborted



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 08 Mar 2017 09:02:29 PM UTC  Name: Bug.tar.gz  Size: 332B   By:
arcdeseel

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

    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
Wesnoth-bugs mailing list
Wesnoth-bugs@gna.org
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to