Cannot run - Connection to the server has been lost [Win 10][0.4.7.1]

Problems and solutions for installing or running FreeOrion, including discussion of bugs if needed before posting a bug report on GitHub. For problems building from source, post in Compile.

Moderator: Oberlus

Post Reply
Message
Author
PrVonTuckIII
Space Krill
Posts: 6
Joined: Thu Jan 24, 2019 6:06 pm

Cannot run - Connection to the server has been lost [Win 10][0.4.7.1]

#1 Post by PrVonTuckIII »

So I'm, uh... new here, so I apologize, as I have absolutely no clue as to where to find the logs and whatnot for everything.

Just recently (as in, within the last day), FreeOrion, out of the blue, started giving me the "connection to the server has been lost" when loading my SP game. System specs are below, and if someone could direct me to find my logs, I can get those too. System specs are below:

System Model HP Laptop 15-da0xxx
Processor Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz, 1801 Mhz, 4 Core(s), 8 Logical Processor(s)
Installed Physical Memory (RAM) 8.00 GB

I have absolutely no clue why this came up, as it only occurs right after loading into the game (680 turns in, and a few seconds after the loading completes and everything appears, I get the error). Like I said, this just came up recently; the game was running just fine a day ago, and I haven't done anything different AFAIK.

Thanks, in any case.

User avatar
Oberlus
Cosmic Dragon
Posts: 5715
Joined: Mon Apr 10, 2017 4:25 pm

Re: Cannot run - Connection to the server has been lost [Win 10][0.4.7.1]

#2 Post by Oberlus »

The logs will be in:
C:\Users\Username\AppData\Roaming\FreeOrion
For starters, post freeorion.log and freeoriond.log, and maybe also the AI_*.log files that correspond to your current game (check dates).

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Cannot run - Connection to the server has been lost [Win 10][0.4.7.1]

#3 Post by Geoff the Medio »

Without the logs, it's difficult to be sure, but it sounds like an issue with the AI players or autosaves, as it happens shortly after apparently successfully loading. Try disabling autosaves before loading the game. If that fixes it, probably saving manually also won't work, however.

o01eg
Programmer
Posts: 2004
Joined: Sat Dec 10, 2011 5:46 am

Re: Cannot run - Connection to the server has been lost [Win 10][0.4.7.1]

#4 Post by o01eg »

Could you try 0.4.8 version?
Gentoo Linux x64, gcc-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-03-15.b3de094.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm

PrVonTuckIII
Space Krill
Posts: 6
Joined: Thu Jan 24, 2019 6:06 pm

Re: Cannot run - Connection to the server has been lost [Win 10][0.4.7.1]

#5 Post by PrVonTuckIII »

The problem seems to have fixed itself, though now I have new problems. Thank you for your assistance, in any case.

yorev
Space Floater
Posts: 32
Joined: Sat Apr 20, 2013 11:42 am
Location: narbonne/france

Re: Cannot run - Connection to the server has been lost [Win 10][0.4.7.1]

#6 Post by yorev »

hi all

(sorry for my bad english)

win10 x64
8go memory
v0.4.8

i have this trouble often and most of the time all the save game give the same result so i have to abandon and begin a new game.
when i try to load a save game, that begin to show the map then it's crashing and i have the message "lost the connexion to the server"

i join the logs but can't join the sav game it's too large even with 7zip

if asked i can send it by mail
Attachments
ai.7z
(107.47 KiB) Downloaded 268 times
freeoriond.log
(159.66 KiB) Downloaded 309 times
freeorion.log
(92.24 KiB) Downloaded 300 times

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Cannot run - Connection to the server has been lost [Win 10][0.4.7.1]

#7 Post by Geoff the Medio »

The times in the server and client logs don't match. It appears you've attached logs from two different runs of the game. It's thus difficult to tell if the client did something that caused the server crash.

Code: Select all

08:54:59.735139 [debug] timer : ScopedTimer.cpp:34 : parse_file "SP_TRENCHERS.focs.txt" time:      344 ms
08:55:00.088081 [debug] timer : ScopedTimer.cpp:34 : parse_file "SP_TRITH.focs.txt" time:      353 ms
08:55:00.436618 [debug] timer : ScopedTimer.cpp:34 : parse_file "SP_UGMORS.focs.txt" time:      347 ms
08:55:00.787615 [debug] timer : ScopedTimer.cpp:34 : parse_file "SP_VOLP.focs.txt" time:      351 ms
08:55:00.790615 [debug] timer : ScopedTimer.cpp:34 : parse_file "SpeciesCensusOrdering.focs.txt" time:     2609 µs
08:55:34.047801 [debug] client : HumanClientApp.cpp:1119 : HumanClientApp::HandleAppQuitting()
08:55:34.047801 [debug] client : HumanClientApp.cpp:1428 : HumanClientApp::ExitApp
08:55:34.047801 [debug] client : HumanClientApp.cpp:379 : HumanClientApp exited cleanly.
08:55:34.131797 [debug] client : Universe.cpp:161 : Reset id allocators with highest object id = -1 and highest design id = -1
08:55:34.131797 [debug] client : chmain.cpp:325 : Human client main exited cleanly.

Code: Select all

08:49:38.948282 [debug] server : Process.cpp:68 : Process::Kill
08:49:38.948282 [debug] server : Process.cpp:70 : Process::Kill calling m_impl->Kill()
08:49:38.948282 [debug] server : Process.cpp:75 : Process::Kill calling RequestTermination()
08:49:38.948282 [debug] server : Process.cpp:68 : Process::Kill
08:49:38.948282 [debug] server : Process.cpp:70 : Process::Kill calling m_impl->Kill()
08:49:38.948282 [debug] server : Process.cpp:75 : Process::Kill calling RequestTermination()
08:49:38.949282 [debug] server : ServerApp.cpp:171 : Server exited cleanly.
08:49:39.256026 [debug] server : Universe.cpp:161 : Reset id allocators with highest object id = -1 and highest design id = 63129
08:49:40.659519 [error] server : dmain.cpp:97 : main() caught exception(std::exception): output stream error
Have you tried loading the last save the doesn't crash, and switching to binary saves in the options? Options / Other / Create Binary Save Files ? (I don't remember if v0.4.8 will be able to load XML saves after switching to binary save files mode, but it might also work to switch the option first).

yorev
Space Floater
Posts: 32
Joined: Sat Apr 20, 2013 11:42 am
Location: narbonne/france

Re: Cannot run - Connection to the server has been lost [Win 10][0.4.7.1]

#8 Post by yorev »

i have deleted the logs before to start freeorion and after try to load a saved game

there all the new logs

i shall try the option save in binary
Attachments
logs.7z
(143.5 KiB) Downloaded 251 times

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Cannot run - Connection to the server has been lost [Win 10][0.4.7.1]

#9 Post by Geoff the Medio »

I'm not sure what the issue actually is... Perhaps the binary saves option helps, but from the log i'm guessing not.

It's a bit notable that all the AI clients are taking a really long time to parse all the script files... All of them seem to have the last 2 minutes of log files just with parsing log messages.

I doubt it will help diagnose the issue, but you could also switch all the logging levels in the options to trace. This will probably make things run very slow and produce huge log files, but could potentially clarify where the problem happens, better than

Code: Select all

14:06:39.128384 [error] server : dmain.cpp:97 : main() caught exception(std::exception): output stream error
and

Code: Select all

14:06:39.127392 [debug] network : ClientNetworking.cpp:487 : Client connection disconnected by EOF from server.

yorev
Space Floater
Posts: 32
Joined: Sat Apr 20, 2013 11:42 am
Location: narbonne/france

Re: Cannot run - Connection to the server has been lost [Win 10][0.4.7.1]

#10 Post by yorev »

i have set option binary, loaded an old save which is working, run a new turn then quit and try to load this las turn but still "lost connexion with the server

there the new logs

i shall try as asked to switch the options to trace
Attachments
logs2.7z
(133.76 KiB) Downloaded 282 times

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Cannot run - Connection to the server has been lost [Win 10][0.4.7.1]

#11 Post by Geoff the Medio »

Slightly different error on the server in that log...

Code: Select all

16:53:38.786374 [error] server : dmain.cpp:97 : main() caught exception(std::exception): bad allocation

yorev
Space Floater
Posts: 32
Joined: Sat Apr 20, 2013 11:42 am
Location: narbonne/france

Re: Cannot run - Connection to the server has been lost [Win 10][0.4.7.1]

#12 Post by yorev »

try to load with options trace

i can't add the logs the files compressed are too bigs

User avatar
Oberlus
Cosmic Dragon
Posts: 5715
Joined: Mon Apr 10, 2017 4:25 pm

Re: Cannot run - Connection to the server has been lost [Win 10][0.4.7.1]

#13 Post by Oberlus »

yorev wrote: Sun Jun 23, 2019 3:29 pm try to load with options trace

i can't add the logs the files compressed are too bigs
Could you open an issue in github (https://github.com/freeorion/freeorion/issues) and upload there the compressed log with logs trace enabled?

yorev
Space Floater
Posts: 32
Joined: Sat Apr 20, 2013 11:42 am
Location: narbonne/france

Re: Cannot run - Connection to the server has been lost [Win 10][0.4.7.1]

#14 Post by yorev »


Post Reply