#524 freeoriond crashes on Win32 client and Linux 64 server

Latest Subversion
closed-fixed
nobody
Server (27)
5
2015-02-22
2012-10-07
Jens Mühlenhoff
No

We are trying to get FreeOrion running with a Win32 client and a Linux 64 client (Debian Testing).

As soon as the second (not native) client connects the server crashes. It doesn't matter which user is hosting the game.

./freeoriond --resource-dir "/mnt/data/progz/freeorion/FreeOrion/default/" --log-level DEBUG
FreeOrion server waiting for network events
main() caught exception(std::exception): std::exception

Discussion

  • Geoff Topping
    Geoff Topping
    2012-10-07

    Is there anything more in freeoriond.log after trying this, beyond what I assume is the command-line output you've included? I'm not going to be able to do anything with "it crashes", and I don't have a test environment to try this out myself.

    It might help to make sure both versions were built against the same boost version.

     
  •  
    Attachments
  • Ok, so the network communication requires the same boost version on all sides? I build the Linux binaries myself, but we were using the prebuild binary for Windows.

    I've attached the log file.

     
  • Geoff Topping
    Geoff Topping
    2012-10-08

    I can't say that the exact same version of Boost is required, but it's more likely to work if the versions are the same.

    It may also just not be possible to reliably use binary serialization between different operating systems as you're trying to do. You might need to rebuild using text archives in order for Linux and Windows builds to talk to eachother. There's a define in Serialize.h that should be changed to 0: FREEORION_BINARY_SERIALIZATION at the top of the file.

     
  • Geoff Topping
    Geoff Topping
    2012-10-08

    FREEORION_BINARY_SERIALIZATION 0 will make save files much larger, and might make it take a bit longer for turn updates to process on single player games, but might also make multiplayer cross-platform functional.

     
  • Dilvish
    Dilvish
    2013-10-26

    we have confirmed that FREEORION_BINARY_SERIALIZATION 0 does fix the platform compatibility problem for saved games, and I believe that it should likewise fix cross-platform multiplayer game compatibility.

     
  • Geoff Topping
    Geoff Topping
    2015-02-22

    • status: open --> closed-fixed