editor crashes unexpectedly

Bug #1504366 reported by king of nowhere
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Fix Released
Critical
Unassigned

Bug Description

i've seen the editor crashing in a reproducible way.

- enter the editor
- generate a new map 320x320
- open player options
- set blue player start at 160-160
- increase the number of players to 8

on three times i tried that, game crashed twice before adding the 8th player and once before adding the 7th.

I'm using build 7525 for windows, don't know if other builds have similar issues or they work just fine.

Tags: crash editor

Related branches

Revision history for this message
king of nowhere (lainluigi86) wrote :

actuallly, it seems the editor will crash just by attempting to add an 8th player, regardless of what is done before

Tino (tino79)
Changed in widelands:
status: New → Confirmed
Revision history for this message
Tino (tino79) wrote :

Confirmed with build 7544.
Increase number of players to 8 and the editor will crash.

GunChleoc (gunchleoc)
Changed in widelands:
importance: Undecided → Critical
milestone: none → build19-rc1
Revision history for this message
king of nowhere (lainluigi86) wrote :

in version 7515 the editor still worked properly. i tried, and i was able to add the 8th player with it. then i saved the map, closed, opened version 7525, and the map loaded without problems and with the 8th player just fine.
However, when i clicked on "players", the game crashed again.

Revision history for this message
TiborB (tiborb95) wrote :
Download full text (5.9 KiB)

backtrace:

#0 0xb7adb8bf in std::string::assign(std::string const&) () from /usr/lib/i386-linux-gnu/libstdc++.so.6
#1 0xb7adb93c in std::string::operator=(std::string const&) () from /usr/lib/i386-linux-gnu/libstdc++.so.6
#2 0x08826c6a in EditorPlayerMenu::update (this=0xb32cc80)
    at /var/widelands/ai_persistent_data/src/editor/ui_menus/editor_player_menu.cc:179
#3 0x088275e1 in EditorPlayerMenu::clicked_add_player (this=0xb32cc80)
    at /var/widelands/ai_persistent_data/src/editor/ui_menus/editor_player_menu.cc:226
#4 0x0882bbb9 in boost::_mfi::mf0<void, EditorPlayerMenu>::operator() (this=0xb32d348, t=...)
    at /usr/include/boost/bind/mem_fn_template.hpp:70
#5 0x0882b377 in boost::_bi::list1<boost::reference_wrapper<EditorPlayerMenu> >::operator()<boost::_mfi::mf0<void, EditorPlayerMenu>, boost::_bi::list0> (this=0xb32d350, f=..., a=...) at /usr/include/boost/bind/bind.hpp:253
#6 0x0882afa6 in boost::_bi::bind_t<void, boost::_mfi::mf0<void, EditorPlayerMenu>, boost::_bi::list1<boost::reference_wrapper<EditorPlayerMenu> > >::operator() (this=0xb32d348) at /usr/include/boost/bind/bind_template.hpp:20
#7 0x0882a95f in boost::detail::function::void_function_obj_invoker0<boost::_bi::bind_t<void, boost::_mfi::mf0<void, EditorPlayerMenu>, boost::_bi::list1<boost::reference_wrapper<EditorPlayerMenu> > >, void>::invoke (function_obj_ptr=...)
    at /usr/include/boost/function/function_template.hpp:153
#8 0x08908360 in boost::function0<void>::operator() (this=0xb32d344) at /usr/include/boost/function/function_template.hpp:767
#9 0x08908302 in boost::signals2::detail::call_with_tuple_args<boost::signals2::detail::void_type>::m_invoke<boost::function<void ()>>(void*, boost::function<void ()>&, boost::signals2::detail::unsigned_meta_array<>, std::tuple<>) const (this=0xbfffd6af, func=...,
    args=empty std::tuple) at /usr/include/boost/signals2/detail/variadic_slot_invoker.hpp:92
#10 0x089082e6 in boost::signals2::detail::call_with_tuple_args<boost::signals2::detail::void_type>::operator()<boost::function<void ()>, , 0u>(boost::function<void ()>&, std::tuple<>, mpl_::size_t<0u>) const (this=0xbfffd6af, func=..., args=empty std::tuple)
    at /usr/include/boost/signals2/detail/variadic_slot_invoker.hpp:81
#11 0x08908292 in boost::signals2::detail::variadic_slot_invoker<boost::signals2::detail::void_type>::m_invoke<boost::shared_ptr<boost::signals2::detail::connection_body<std::pair<boost::signals2::detail::slot_meta_group, boost::optional<int> >, boost::signals2::slot<void (), boost::function<void ()> >, boost::signals2::mutex> > >(boost::shared_ptr<boost::signals2::detail::connection_body<std::pair<boost::signals2::detail::slot_meta_group, boost::optional<int> >, boost::signals2::slot<void (), boost::function<void ()> >, boost::signals2::mutex> > const&, boost::signals2::detail::void_type const*) const (this=0xbfffd8a0, connectionBody=...)
    at /usr/include/boost/signals2/detail/variadic_slot_invoker.hpp:117
#12 0x089081a7 in boost::signals2::detail::variadic_slot_invoker<boost::signals2::detail::void_type>::operator()<boost::shared_ptr<boost::signals2::detail::connection_body<std::pair<boost::signals2::detail::slot_meta_group, boos...

Read more...

Revision history for this message
TiborB (tiborb95) wrote :

the proposed fix behaves strangely. It does no allow to place second headquarters flag close to the first one... Do you see similar behaviour?

tags: added: crash editor
Revision history for this message
king of nowhere (lainluigi86) wrote :

"the proposed fix behaves strangely. It does no allow to place second headquarters flag close to the first one... Do you see similar behaviour?"

As far as I know, it has always been like that. there is a minimum distance that you can set headquarters.

Revision history for this message
GunChleoc (gunchleoc) wrote :

Yes, there was always a minimum distance between headquarters.

GunChleoc (gunchleoc)
Changed in widelands:
status: Confirmed → Fix Committed
GunChleoc (gunchleoc)
Changed in widelands:
status: Fix Committed → Fix Released
Revision history for this message
GunChleoc (gunchleoc) wrote :

Fixed in build19-rc1.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.