URL:
<http://gna.org/bugs/?21765>
Summary: segfault in animation code
Project: Battle for Wesnoth
Submitted by: elvish_pillager
Submitted on: Thu 06 Mar 2014 11:03:49 PM UTC
Category: Bug
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: WML
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.11.11+dev
Operating System: Debian Linux
_______________________________________________________
Details:
Load the attached save and end turn; it should segfault. If it doesn't, end
turn a few more times. I've tested this in both 1.10.7 and 1.11.11+dev.
This may be related to an absurd hack I use (using wesnoth.put_unit() to
change animations during a lua_function= filter in a unit ability), but my
understanding is that a segfault is always a Wesnoth bug even with bad input.
(gdb) bt
#0 0x0000000001511370 in std::vector<animated<unit_frame,
void_value<unit_frame> >::frame, std::allocator<animated<unit_frame,
void_value<unit_frame> >::frame> >::end() const ()
#1 0x000000000150f76c in std::vector<animated<unit_frame,
void_value<unit_frame> >::frame, std::allocator<animated<unit_frame,
void_value<unit_frame> >::frame> >::empty() const ()
#2 0x000000000150de73 in animated<unit_frame, void_value<unit_frame>
>::animation_finished_potential() const ()
#3 0x000000000199faeb in unit_animation::animation_finished_potential() const
()
#4 0x00000000019a40f9 in unit_animator::wait_for_end() const ()
#5 0x00000000019b3a46 in unit_display::unit_healing(unit&, std::vector<unit*,
std::allocator<unit*> > const&, int, std::string const&) ()
#6 0x00000000012f9bdd in (anonymous
namespace)::animate_heals(std::list<(anonymous namespace)::heal_unit,
std::allocator<(anonymous namespace)::heal_unit> >&)
()
#7 0x00000000012fa3d7 in calculate_healing(int, bool) ()
#8 0x00000000018a6349 in play_controller::do_init_side(unsigned int, bool)
()
#9 0x00000000018a5d48 in play_controller::maybe_do_init_side(unsigned int,
bool) ()
#10 0x00000000018a5c63 in play_controller::init_side(unsigned int, bool) ()
#11 0x00000000018c12da in playsingle_controller::play_turn(bool) ()
#12 0x00000000018bfd13 in
playsingle_controller::play_scenario(std::pair<config::const_child_iterator,
config::const_child_iterator> const&, bool) ()
#13 0x00000000018b4be2 in playsingle_scenario(config const&, config const*,
display&, game_state&, std::pair<config::const_child_iterator,
config::const_child_iterator> const&, bool, end_level_data&) ()
---Type <return> to continue, or q <return> to quit---
#14 0x00000000018b6bab in play_game(game_display&, game_state&, config const&,
io_type_t, bool, bool, bool) ()
#15 0x000000000161789f in
game_controller::launch_game(game_controller::RELOAD_GAME_DATA) ()
#16 0x000000000110c41d in do_gameloop(int, char**) ()
#17 0x000000000110c916 in main ()
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Thu 06 Mar 2014 11:03:49 PM UTC Name:
3p_—_Island_of_the_Horatii_Turn_7-2.gz Size: 694kB By: elvish_pillager
<http://gna.org/bugs/download.php?file_id=20273>
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?21765>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs