Crash in the branch bug-1658489-epedition-tab when aborting an expedition widelands: /usr/include/boost/signals2/detail/lwm_pthreads.hpp:55: boost::signals2::mutex::~mutex(): Assertion `pthread_mutex_destroy(&m_) == 0' failed. Thread 1 "widelands" received signal SIGABRT, Aborted. 0x00007ffff5420428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54 54 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory. (gdb) bt #0 0x00007ffff5420428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54 #1 0x00007ffff542202a in __GI_abort () at abort.c:89 #2 0x00007ffff5418bd7 in __assert_fail_base (fmt=, assertion=assertion@entry=0x132c098 "pthread_mutex_destroy(&m_) == 0", file=file@entry=0x132c040 "/usr/include/boost/signals2/detail/lwm_pthreads.hpp", line=line@entry=55, function=function@entry=0x132ea20 "boost::signals2::mutex::~mutex()") at assert.c:92 #3 0x00007ffff5418c82 in __GI___assert_fail (assertion=0x132c098 "pthread_mutex_destroy(&m_) == 0", file=0x132c040 "/usr/include/boost/signals2/detail/lwm_pthreads.hpp", line=55, function=0x132ea20 "boost::signals2::mutex::~mutex()") at assert.c:101 #4 0x0000000000d0a869 in boost::signals2::mutex::~mutex (this=0xa102f28, __in_chrg=) at /usr/include/boost/signals2/detail/lwm_pthreads.hpp:55 #5 0x0000000000d19848 in boost::signals2::detail::connection_body >, boost::signals2::slot >, boost::signals2::mutex>::~connection_body() ( this=0xa102ed0, __in_chrg=) at /usr/include/boost/signals2/connection.hpp:90 #6 0x0000000000d19894 in boost::signals2::detail::connection_body >, boost::signals2::slot >, boost::signals2::mutex>::~connection_body() ( this=0xa102ed0, __in_chrg=) at /usr/include/boost/signals2/connection.hpp:90 #7 0x0000000000d180e1 in boost::checked_delete >, boost::signals2::slot >, boost::signals2::mutex> >(boost::signals2::detail::connection_body >, boost::signals2::slot >, boost::signals2::mutex>*) (x=0xa102ed0) at /usr/include/boost/core/checked_delete.hpp:34 #8 0x0000000000d1e3d4 in boost::detail::sp_counted_impl_p >, boost::signals2::slot >, boost::signals2::mutex> >::dispose() (this=0xa102f70) at /usr/include/boost/smart_ptr/detail/sp_counted_impl.hpp:78 #9 0x0000000000ce8c42 in boost::detail::sp_counted_base::release (this=0xa102f70) at /usr/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:146 #10 0x0000000000ce8cd5 in boost::detail::shared_count::~shared_count (this=0xbba3928, __in_chrg=) at /usr/include/boost/smart_ptr/detail/shared_count.hpp:443 #11 0x0000000000d0f962 in boost::shared_ptr >, boost::signals2::slot >, boost::signals2::mutex> >::~shared_ptr() (this=0xbba3920, __in_chrg=) at /usr/include/boost/smart_ptr/shared_ptr.hpp:323 #12 0x0000000000d1a4c6 in std::_List_node >, boost::signals2::slot >, boost::signals2::mutex> > >::~_List_node() (this=0xbba3910, __in_chrg=) at /usr/include/c++/5/bits/stl_list.h:106 #13 0x0000000000d1a4e6 in __gnu_cxx::new_allocator >, boost::signals2::slot >, boost::signals2::mutex> > > >::destroy >, boost::signals2::slot >, boost::signals2::mutex> > > >(std::_List_node >, boost::signals2::slot >, boost::signals2::mutex> > >*) (this=0x9b623f0, __p=0xbba3910) at /usr/include/c++/5/ext/new_allocator.h:124 #14 0x0000000000d191bc in std::__cxx11::_List_base >, boost::signals2::slot >, boost::signals2::mutex> >, std::allocator >, boost::signals2::slot >, boost::signals2::mutex> > > >::_M_clear() (this=0x9b623f0) at /usr/include/c++/5/bits/list.tcc:75 #15 0x0000000000d17864 in std::__cxx11::_List_base >, boost::signals2::slot >, boost::signals2::mutex> >, std::allocator >, boost::signals2::slot >, boost::signals2::mutex> > > >::~_List_base() (this=0x9b623f0, __in_chrg=) at /usr/include/c++/5/bits/stl_list.h:446 #16 0x0000000000d15910 in std::__cxx11::list >, boost::signals2::slot >, boost::signals2::mutex> >, std::allocator >, boost::signals2::slot >, boost::signals2::mutex> > > >::~list() (this=0x9b623f0, __in_chrg=) at /usr/include/c++/5/bits/stl_list.h:507 #17 0x0000000000d1a746 in boost::signals2::detail::grouped_list, boost::shared_ptr >, boost::signals2::slot >, boost::signals2::mutex> > >::~grouped_list() (this=0x9b623f0, __in_chrg=) at /usr/include/boost/signals2/detail/slot_groups.hpp:47 #18 0x0000000000d1a767 in boost::checked_delete, boost::shared_ptr >, boost::signals2::slot >, boost::signals2::mutex> > > >(boost::signals2::detail::grouped_list, boost::shared_ptr >, boost::signals2::slot >, boost::signals2::mutex> > >*) (x=0x9b623f0) at /usr/include/boost/core/checked_delete.hpp:34 #19 0x0000000000d1e390 in boost::detail::sp_counted_impl_p, boost::shared_ptr >, boost::signals2::slot >, boost::signals2::mutex> > > >::dispose() (this=0x9b637f0) at /usr/include/boost/smart_ptr/detail/sp_counted_impl.hpp:78 #20 0x0000000000ce8c42 in boost::detail::sp_counted_base::release (this=0x9b637f0) at /usr/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:146 #21 0x0000000000ce8cd5 in boost::detail::shared_count::~shared_count (this=0x9185868, __in_chrg=) at /usr/include/boost/smart_ptr/detail/shared_count.hpp:443 #22 0x0000000000d141a4 in boost::shared_ptr, boost::shared_ptr >, boost::signals2::slot >, boost::signals2::mutex> > > >::~shared_ptr() (this=0x9185860, __in_chrg=) at /usr/include/boost/smart_ptr/shared_ptr.hpp:323 #23 0x0000000000d1a7d8 in boost::signals2::detail::signal_impl, int, std::less, boost::function, boost::function, boost::signals2::mutex>::invocation_state::~invocation_state() (this=0x9185860, __in_chrg=) at /usr/include/boost/signals2/detail/signal_template.hpp:377 #24 0x0000000000d1a7f9 in boost::checked_delete, int, std::less, boost::function, boost::function, boost::signals2::mutex>::invocation_state>(boost::signals2::detail::signal_impl, int, std::less, boost::function, boost::function, boost::signals2::mutex>::invocation_state*) (x=0x9185860) at /usr/include/boost/core/checked_delete.hpp:34 #25 0x0000000000d1e34c in boost::detail::sp_counted_impl_p, int, std::less, boost::function, boost::function, boost::signals2::mutex>::invocation_state>::dispose() (this=0x9b63130) at /usr/include/boost/smart_ptr/detail/sp_counted_impl.hpp:78 #26 0x0000000000ce8c42 in boost::detail::sp_counted_base::release (this=0x9b63130) at /usr/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:146 #27 0x0000000000ce8cd5 in boost::detail::shared_count::~shared_count (this=0x9b62168, __in_chrg=) at /usr/include/boost/smart_ptr/detail/shared_count.hpp:443 #28 0x0000000000d14262 in boost::shared_ptr, int, std::less, boost::function, boost::function, boost::signals2::mutex>::invocation_state>::~shared_ptr() (this=0x9b62160, __in_chrg=) at /usr/include/boost/smart_ptr/shared_ptr.hpp:323 #29 0x0000000000e9782a in boost::signals2::detail::signal_impl, int, std::less, boost::function, boost::function, boost::signals2::mutex>::~signal_impl() (this=0x9b62160, __in_chrg=) at /usr/include/boost/signals2/detail/signal_template.hpp:122 #30 0x0000000000e9784b in boost::checked_delete, int, std::less, boost::function, boost::function, boost::signals2::mutex> >(boost::signals2::detail::signal_impl, int, std::less, boost::function, boost::function, boost::signals2::mutex>*) ( x=0x9b62160) at /usr/include/boost/core/checked_delete.hpp:34 #31 0x0000000000e98dba in boost::detail::sp_counted_impl_p, int, std::less, boost::function, boost::function, boost::signals2::mutex> >::dispose() (this=0x9b63150) at /usr/include/boost/smart_ptr/detail/sp_counted_impl.hpp:78 #32 0x0000000000ce8c42 in boost::detail::sp_counted_base::release (this=0x9b63150) at /usr/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:146 #33 0x0000000000ce8cd5 in boost::detail::shared_count::~shared_count (this=0xbba3a18, __in_chrg=) at /usr/include/boost/smart_ptr/detail/shared_count.hpp:443 #34 0x0000000000cea386 in boost::shared_ptr, int, std::less, boost::function, boost::function, boost::signals2::mutex> >::~shared_ptr() (this=0xbba3a10, __in_chrg=) at /usr/include/boost/smart_ptr/shared_ptr.hpp:323 #35 0x0000000000cea3b2 in boost::signals2::signal, int, std::less, boost::function, boost::function, boost::signals2::mutex>::~signal() ( this=0xbba3a08, __in_chrg=) at /usr/include/boost/signals2/detail/signal_template.hpp:660 #36 0x0000000000fa2606 in UI::Button::~Button (this=0xbba3940, __in_chrg=) at ../src/ui_basic/button.cc:98 #37 0x0000000000fa2642 in UI::Button::~Button (this=0xbba3940, __in_chrg=) at ../src/ui_basic/button.cc:99 ---Type to continue, or q to quit--- #38 0x0000000000fba80d in UI::Panel::free_children (this=0xbba4290) at ../src/ui_basic/panel.cc:129 #39 0x0000000000fba6a6 in UI::Panel::~Panel (this=0xbba4290, __in_chrg=) at ../src/ui_basic/panel.cc:101 #40 0x0000000000cee5a4 in UI::Box::~Box (this=0xbba4290, __in_chrg=) at ../src/ui_basic/box.h:37 #41 0x0000000000cee5d4 in UI::Box::~Box (this=0xbba4290, __in_chrg=) at ../src/ui_basic/box.h:37 #42 0x0000000000fba80d in UI::Panel::free_children (this=0xbba4b50) at ../src/ui_basic/panel.cc:129 #43 0x0000000000fba6a6 in UI::Panel::~Panel (this=0xbba4b50, __in_chrg=) at ../src/ui_basic/panel.cc:101 #44 0x0000000000cee5a4 in UI::Box::~Box (this=0xbba4b50, __in_chrg=) at ../src/ui_basic/box.h:37 #45 0x0000000000cee5d4 in UI::Box::~Box (this=0xbba4b50, __in_chrg=) at ../src/ui_basic/box.h:37 #46 0x0000000000d01080 in std::default_delete::operator() (this=0xb0b6ba0, __ptr=0xbba4b50) at /usr/include/c++/5/bits/unique_ptr.h:76 #47 0x00000000010ab743 in std::unique_ptr >::reset (this=0xb0b6ba0, __p=0xbba4b50) at /usr/include/c++/5/bits/unique_ptr.h:344 #48 0x00000000010a7cd1 in ShipWindow::init (this=0xb0b6a50, avoid_fastclick=true) at ../src/wui/shipwindow.cc:80 #49 0x00000000010a79ee in ShipWindow::ShipWindow(InteractiveGameBase&, Widelands::Ship&)::{lambda(Widelands::NoteShipWindow const&)#1}::operator()(Widelands::NoteShipWindow const&) const () at ../src/wui/shipwindow.cc:62 #50 0x00000000010aadd7 in std::_Function_handler >::_M_invoke(const std::_Any_data &, const Widelands::NoteShipWindow &) (__functor=..., __args#0=...) at /usr/include/c++/5/functional:1871 #51 0x0000000000ec55cf in std::function::operator()(Widelands::NoteShipWindow const&) const (this=0x4f90ed8, __args#0=...) at /usr/include/c++/5/functional:2267 #52 0x0000000000ec3b92 in Notifications::NotificationsManager::publish (this=0x19e2480 , message=...) at ../src/notifications/notifications_impl.h:76 #53 0x0000000000ec1e9d in Notifications::publish (message=...) at ../src/notifications/notifications.h:51 #54 0x0000000000ebf12f in Widelands::Ship::exp_cancel (this=0xa217a50, game=...) at ../src/logic/map_objects/tribes/ship.cc:929 #55 0x0000000000e4f221 in Widelands::CmdShipCancelExpedition::execute (this=0xb5f90a0, game=...) at ../src/logic/playercommand.cc:969 #56 0x0000000000f33433 in Widelands::CmdQueue::run_queue (this=0x7fffffff9790, interval=2046, game_time_var=@0x7fffffff95c8: 2143391) at ../src/logic/cmd_queue.cc:123 #57 0x0000000000e107a9 in Widelands::Game::think (this=0x7fffffff95c0) at ../src/logic/game.cc:556 #58 0x000000000107111c in InteractiveBase::think (this=0x31e1270) at ../src/wui/interactive_base.cc:327 #59 0x000000000108204d in InteractivePlayer::think (this=0x31e1270) at ../src/wui/interactive_player.cc:128 #60 0x0000000000fbb249 in UI::Panel::do_think (this=0x31e1270) at ../src/ui_basic/panel.cc:441 #61 0x0000000000fbaa93 in UI::Panel::do_run (this=0x31e1270) at ../src/ui_basic/panel.cc:183 #62 0x0000000000ceb5b4 in UI::Panel::run (this=0x31e1270) at ../src/ui_basic/panel.h:96 #63 0x0000000000e1046a in Widelands::Game::run (this=0x7fffffff95c0, loader_ui=0x7fffffff9450, start_game_type=Widelands::Game::NewNonScenario, script_to_run="", replay=false, prefix_for_replays="single_player") at ../src/logic/game.cc:526 #64 0x0000000000ce55af in WLApplication::new_game (this=0x1a0c290) at ../src/wlapplication.cc:1238 #65 0x0000000000ce4ae3 in WLApplication::mainmenu_singleplayer (this=0x1a0c290) at ../src/wlapplication.cc:1098 #66 0x0000000000ce4415 in WLApplication::mainmenu (this=0x1a0c290) at ../src/wlapplication.cc:1003 #67 0x0000000000ce0f38 in WLApplication::run (this=0x1a0c290) at ../src/wlapplication.cc:444 #68 0x0000000000cdf3b1 in main (argc=1, argv=0x7fffffffd548) at ../src/main.cc:49 Crash in branch bug-1658489-epedition-tab when loading wares of an expedition onto the ship widelands: ../src/ui_basic/panel.cc:283: void UI::Panel::set_desired_size(int, int): Assertion `w < 3000' failed. Thread 1 "widelands" received signal SIGABRT, Aborted. 0x00007ffff5420428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54 54 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory. (gdb) bt #0 0x00007ffff5420428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54 #1 0x00007ffff542202a in __GI_abort () at abort.c:89 #2 0x00007ffff5418bd7 in __assert_fail_base (fmt=, assertion=assertion@entry=0x13f9af7 "w < 3000", file=file@entry=0x13f9a84 "../src/ui_basic/panel.cc", line=line@entry=283, function=function@entry=0x13f9ba0 "void UI::Panel::set_desired_size(int, int)") at assert.c:92 #3 0x00007ffff5418c82 in __GI___assert_fail (assertion=0x13f9af7 "w < 3000", file=0x13f9a84 "../src/ui_basic/panel.cc", line=283, function=0x13f9ba0 "void UI::Panel::set_desired_size(int, int)") at assert.c:101 #4 0x0000000000fbae44 in UI::Panel::set_desired_size (this=0xa599a80, w=16427560, h=40) at ../src/ui_basic/panel.cc:283 #5 0x0000000000fdb7c1 in UI::Window::update_desired_size (this=0xa599a80) at ../src/ui_basic/window.cc:134 #6 0x0000000000fbaecb in UI::Panel::set_desired_size (this=0xa8eda80, w=146, h=260) at ../src/ui_basic/panel.cc:289 #7 0x0000000000f99f08 in UI::Box::update_desired_size (this=0xa8eda80) at ../src/ui_basic/box.cc:123 #8 0x0000000000fbaecb in UI::Panel::set_desired_size (this=0xac03810, w=34, h=34) at ../src/ui_basic/panel.cc:289 #9 0x0000000000f99e52 in UI::Box::update_desired_size (this=0xac03810) at ../src/ui_basic/box.cc:117 #10 0x0000000000f9a8ae in UI::Box::add (this=0xac03810, panel=0xac9ec30, align=UI::Align::kLeft, fullsize=false, fillspace=false) at ../src/ui_basic/box.cc:267 #11 0x00000000010a9285 in ShipWindow::init (this=0xa599a80, avoid_fastclick=true) at ../src/wui/shipwindow.cc:148 #12 0x00000000010a79ee in ShipWindow::ShipWindow(InteractiveGameBase&, Widelands::Ship&)::{lambda(Widelands::NoteShipWindow const&)#1}::operator()(Widelands::NoteShipWindow const&) const () at ../src/wui/shipwindow.cc:62 #13 0x00000000010aadd7 in std::_Function_handler >::_M_invoke(const std::_Any_data &, const Widelands::NoteShipWindow &) (__functor=..., __args#0=...) at /usr/include/c++/5/functional:1871 #14 0x0000000000ec55cf in std::function::operator()(Widelands::NoteShipWindow const&) const (this=0xa59bb98, __args#0=...) at /usr/include/c++/5/functional:2267 #15 0x0000000000ec3b92 in Notifications::NotificationsManager::publish (this=0x19e2480 , message=...) at ../src/notifications/notifications_impl.h:76 #16 0x0000000000ec1e9d in Notifications::publish (message=...) at ../src/notifications/notifications.h:51 #17 0x00000000011ec0d5 in Widelands::PortDock::ship_arrived (this=0x3bb2460, game=..., ship=...) at ../src/economy/portdock.cc:340 #18 0x0000000000ebb6e0 in Widelands::Ship::ship_update_transport (this=0x977ada0, game=..., state=...) at ../src/logic/map_objects/tribes/ship.cc:305 #19 0x0000000000ebb3ec in Widelands::Ship::ship_update (this=0x977ada0, game=..., state=...) at ../src/logic/map_objects/tribes/ship.cc:260 #20 0x0000000000e5b507 in Widelands::Bob::do_act (this=0x977ada0, game=...) at ../src/logic/map_objects/bob.cc:193 #21 0x0000000000e5b3d7 in Widelands::Bob::act (this=0x977ada0, game=..., data=2022) at ../src/logic/map_objects/bob.cc:179 #22 0x0000000000e7c582 in Widelands::CmdAct::execute (this=0xa700a70, game=...) at ../src/logic/map_objects/map_object.cc:98 #23 0x0000000000f33433 in Widelands::CmdQueue::run_queue (this=0x7fffffff9990, interval=3696, game_time_var=@0x7fffffff97c8: 3848264) at ../src/logic/cmd_queue.cc:123 #24 0x0000000000e107a9 in Widelands::Game::think (this=0x7fffffff97c0) at ../src/logic/game.cc:556 #25 0x000000000107111c in InteractiveBase::think (this=0x42a0a20) at ../src/wui/interactive_base.cc:327 #26 0x000000000108204d in InteractivePlayer::think (this=0x42a0a20) at ../src/wui/interactive_player.cc:128 #27 0x0000000000fbb249 in UI::Panel::do_think (this=0x42a0a20) at ../src/ui_basic/panel.cc:441 #28 0x0000000000fbaa93 in UI::Panel::do_run (this=0x42a0a20) at ../src/ui_basic/panel.cc:183 #29 0x0000000000ceb5b4 in UI::Panel::run (this=0x42a0a20) at ../src/ui_basic/panel.h:96 #30 0x0000000000e1046a in Widelands::Game::run (this=0x7fffffff97c0, loader_ui=0x7fffffff94e0, start_game_type=Widelands::Game::Loaded, script_to_run="", replay=false, prefix_for_replays="single_player") at ../src/logic/game.cc:526 #31 0x0000000000e0f802 in Widelands::Game::run_load_game (this=0x7fffffff97c0, filename="save/tmp_ship.wgf", script_to_run="") at ../src/logic/game.cc:383 #32 0x0000000000ce5abf in WLApplication::load_game (this=0x1a0c290) at ../src/wlapplication.cc:1268 #33 0x0000000000ce4afd in WLApplication::mainmenu_singleplayer (this=0x1a0c290) at ../src/wlapplication.cc:1102 #34 0x0000000000ce4415 in WLApplication::mainmenu (this=0x1a0c290) at ../src/wlapplication.cc:1003 #35 0x0000000000ce0f38 in WLApplication::run (this=0x1a0c290) at ../src/wlapplication.cc:444 #36 0x0000000000cdf3b1 in main (argc=1, argv=0x7fffffffd548) at ../src/main.cc:49