Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#525 rev5307 Connection to server lost after deleting ship design

Recent Test Release
closed-fixed
nobody
Server (27)
5
2013-10-27
2012-10-26
Marlon Rodriguez
No

Enclosing saved game. Load, delete some of the older asteroid ship designs from production, start some new ones, jump to design, delete Corvette V design, save game to something else or press turn and it should crash. Follows gdb dump:
Continuing.
freeoriond": /usr/include/boost/archive/basic_binary_iprimitive.hpp:98: void boost::archive::basic_binary_iprimitive<Archive, Elem, Tr>::load(bool&) [with Archive = boost::archive::binary_iarchive, Elem = char, Tr = std::char_traits<char>]: Assertion `0 == i || 1 == i' failed.
[Switching to Thread 0x7fffd900c700 (LWP 4881)]
Catchpoint 2 (exception caught), 0x00007ffff4db68f0 in __cxa_begin_catch ()
from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) list
110 try {
111 // add entries in options DB that have no other obvious place
112 GetOptionsDB().AddFlag('h', "help", "OPTIONS_DB_HELP", false);
113 GetOptionsDB().AddFlag('g', "generate-config-xml", "OPTIONS_DB_GENERATE_CONFIG_XML", false);
114 GetOptionsDB().AddFlag('f', "fullscreen", "OPTIONS_DB_FULLSCREEN", STORE_FULLSCREEN_FLAG);
115 GetOptionsDB().Add("reset-fullscreen-size", "OPTIONS_DB_RESET_FSSIZE", true);
116 GetOptionsDB().AddFlag('q', "quickstart", "OPTIONS_DB_QUICKSTART", false);
117 GetOptionsDB().AddFlag("auto-advance-first-turn", "OPTIONS_DB_AUTO_FIRST_TURN", false);
118 GetOptionsDB().Add<std::string>("load", "OPTIONS_DB_LOAD", "", Validator<std::string>(),false);
119 GetOptionsDB().Add("UI.sound.music-enabled", "OPTIONS_DB_MUSIC_ON", true);
(gdb) print
The history is empty.
(gdb) bt full
#0 0x00007ffff4db68f0 in __cxa_begin_catch () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
No symbol table info available.
#1 0x000000000169fce8 in ClientNetworking::NetworkingThread (this=0x7fffffffdb50)
at /home/marlon/Projects/freeorion/FreeOrion/network/ClientNetworking.cpp:315
error = @0x0: <error reading variable>
lock = {m = 0x7fffd900bcc0, is_locked = 228}
#2 0x00000000016bc9b4 in boost::_mfi::mf0<void, ClientNetworking>::operator() (this=0xc9a7db8, p=0x7fffffffdb50)
at /usr/include/boost/bind/mem_fn_template.hpp:49
No locals.
#3 0x00000000016bbe84 in boost::_bi::list1<boost::_bi::value<ClientNetworking*> >::operator()<boost::_mfi::mf0<void, ClientNetworking>, boost::_bi::list0> (this=0xc9a7dc8, f=..., a=...) at /usr/include/boost/bind/bind.hpp:253
No locals.
#4 0x00000000016bad9b in boost::_bi::bind_t<void, boost::_mfi::mf0<void, ClientNetworking>, boost::_bi::list1<boost::_bi::value<ClientNetworking*> > >::operator() (this=0xc9a7db8) at /usr/include/boost/bind/bind_template.hpp:20
a = {<No data fields>}
#5 0x00000000016be07a in boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf0<void, ClientNetworking>, boost::_bi::list1<boost::_bi::value<ClientNetworking*> > > >::run (this=0xc9a7c30)
at /usr/include/boost/thread/detail/thread.hpp:61
No locals.
#6 0x00007ffff5486da9 in ?? () from /usr/lib/libboost_thread.so.1.48.0
No symbol table info available.
#7 0x00007ffff6647e9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#8 0x00007ffff4524cbd in clone () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#9 0x0000000000000000 in ?? ()
No symbol table info available.
(gdb) where
#0 0x00007ffff4db68f0 in __cxa_begin_catch () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#1 0x000000000169fce8 in ClientNetworking::NetworkingThread (this=0x7fffffffdb50)
at /home/marlon/Projects/freeorion/FreeOrion/network/ClientNetworking.cpp:315
#2 0x00000000016bc9b4 in boost::_mfi::mf0<void, ClientNetworking>::operator() (this=0xc9a7db8, p=0x7fffffffdb50)
at /usr/include/boost/bind/mem_fn_template.hpp:49
#3 0x00000000016bbe84 in boost::_bi::list1<boost::_bi::value<ClientNetworking*> >::operator()<boost::_mfi::mf0<void, ClientNetworking>, boost::_bi::list0> (this=0xc9a7dc8, f=..., a=...) at /usr/include/boost/bind/bind.hpp:253
#4 0x00000000016bad9b in boost::_bi::bind_t<void, boost::_mfi::mf0<void, ClientNetworking>, boost::_bi::list1<boost::_bi::value<ClientNetworking*> > >::operator() (this=0xc9a7db8) at /usr/include/boost/bind/bind_template.hpp:20
#5 0x00000000016be07a in boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf0<void, ClientNetworking>, boost::_bi::list1<boost::_bi::value<ClientNetworking*> > > >::run (this=0xc9a7c30)
at /usr/include/boost/thread/detail/thread.hpp:61
#6 0x00007ffff5486da9 in ?? () from /usr/lib/libboost_thread.so.1.48.0
#7 0x00007ffff6647e9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#8 0x00007ffff4524cbd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#9 0x0000000000000000 in ?? ()

Discussion

  • saved game

     
    Attachments
  • Geoff Topping
    Geoff Topping
    2012-11-16

    I built 5307, but can't load your save. There are no test builds labelled 5307 on sourceforge, so my guess is you weren't actually playing on build 5307. Regardless, if you could find a simple way to reproduce this crash from a new game on a more recent build, after starting with a small galaxy and no AIs, that would be a lot more useful for tracking it down.

     
  • Dilvish
    Dilvish
    2013-10-26

    there had been a bug with an unitialized bool in ship designs which had on rare occasions caused problems like this; it's now been fixed.

     
  • Geoff Topping
    Geoff Topping
    2013-10-27

    • status: open --> closed-fixed
     
  • Geoff Topping
    Geoff Topping
    2013-10-27

    This has probably been fixed. Comment again if not.