The International Simutrans Forum

 

Author Topic: Bridgewater-Brunel game no. 3  (Read 10055 times)

0 Members and 1 Guest are viewing this topic.

Offline Ranran

  • Devotee
  • *
  • Posts: 1412
  • Languages: ja
Re: Bridgewater-Brunel game no. 3
« Reply #140 on: December 18, 2020, 11:16:18 PM »
https://github.com/Ranran-the-JuicyPork/simutrans-extended/commit/54290198039d2ce8f2011bcad4a74b44804acf9a
I found what seems to be a merge error in network_file_transfer.cc. Near the 160th line. I hope you can see if this has any effect.

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Administrator
  • *
  • Posts: 20648
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Bridgewater-Brunel game no. 3
« Reply #141 on: December 19, 2020, 12:12:45 AM »
https://github.com/Ranran-the-JuicyPork/simutrans-extended/commit/54290198039d2ce8f2011bcad4a74b44804acf9a
I found what seems to be a merge error in network_file_transfer.cc. Near the 160th line. I hope you can see if this has any effect.

Thank you for this - now incorporated.

I have been spending some time trying to deal with this problem - it is still unclear what the cause is; latest investigations seem to suggest that what was happening at least at one point was that, when the server was restarting automatically, without the "-load [savegame]" in the command line, it was failing with a segfault, whereas, when I gave the "-load server13353-network.sve" command explicitly, it would work. I have therefore managed to get the server running again by adding "-load ../server13353-network.sve" to the script - I am not sure whether this will work over the long term, but I should be grateful if people could report the result.


Offline freddyhayward

  • Devotee
  • *
  • Posts: 594
  • Languages: EN
Re: Bridgewater-Brunel game no. 3
« Reply #142 on: December 19, 2020, 12:33:23 AM »
I have been spending some time trying to deal with this problem - it is still unclear what the cause is; latest investigations seem to suggest that what was happening at least at one point was that, when the server was restarting automatically, without the "-load [savegame]" in the command line, it was failing with a segfault, whereas, when I gave the "-load server13353-network.sve" command explicitly, it would work. I have therefore managed to get the server running again by adding "-load ../server13353-network.sve" to the script - I am not sure whether this will work over the long term, but I should be grateful if people could report the result.
Though I can't recall any specific cases, I vaguely remember having segfaults in the past when trying to start servers without specifying -load [savegame], and that adding -load [savegame] fixed them.

Offline freddyhayward

  • Devotee
  • *
  • Posts: 594
  • Languages: EN
Re: Bridgewater-Brunel game no. 3
« Reply #143 on: December 20, 2020, 11:32:01 AM »
After a fairly good run for several hours after today's reset, an improvement on previous days, the server has now been down for nearly 2.5 hours.

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Administrator
  • *
  • Posts: 20648
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Bridgewater-Brunel game no. 3
« Reply #144 on: December 20, 2020, 11:43:51 AM »
The Simutrans-Extended instance was running on the server, but was unresponsive for reasons unknown. Now restarted.

Offline Matthew

  • *
  • Posts: 511
    • Japan Railway Journal
  • Languages: EN, some ZH, DE & SQ
Re: Bridgewater-Brunel game no. 3
« Reply #145 on: December 28, 2020, 11:09:13 AM »
Bridgewater-Brunel has not run since the nightly restart

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Administrator
  • *
  • Posts: 20648
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Bridgewater-Brunel game no. 3
« Reply #146 on: December 28, 2020, 11:21:27 AM »
Bridgewater-Brunel has not run since the nightly restart

It seems to have entered a frozen state - I have now restarted it.

Offline Matthew

  • *
  • Posts: 511
    • Japan Railway Journal
  • Languages: EN, some ZH, DE & SQ
Re: Bridgewater-Brunel game no. 3
« Reply #147 on: December 28, 2020, 02:34:17 PM »
It seems to have entered a frozen state - I have now restarted it.

Thank you for fixing this, James!  :thumbsup:

Offline Matthew

  • *
  • Posts: 511
    • Japan Railway Journal
  • Languages: EN, some ZH, DE & SQ
Re: Bridgewater-Brunel game no. 3
« Reply #148 on: December 28, 2020, 07:39:42 PM »
Sorry to sound like a stuck record, but the server has frozen again for the last 3 hours.

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Administrator
  • *
  • Posts: 20648
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Bridgewater-Brunel game no. 3
« Reply #149 on: December 28, 2020, 09:36:34 PM »
I have restarted it again.

There seems to be a persistent problem causing the server to get stuck in an infinite loop on occasions. It is not a thread deadlock, as there is high CPU usage. The trouble is that it is very difficult to think of any way of reproducing this. If anyone can find a reproduction case for an infinite loop/freeze, please post it in the bug reports forum. Thank you.

Offline freddyhayward

  • Devotee
  • *
  • Posts: 594
  • Languages: EN
Re: Bridgewater-Brunel game no. 3
« Reply #150 on: January 01, 2021, 03:07:09 AM »
The server has now been down for over 8 hours. I wonder if you could add a script that automatically restarts the server if the log file has not updated for 2 hours, for instance?

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Administrator
  • *
  • Posts: 20648
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Bridgewater-Brunel game no. 3
« Reply #151 on: January 01, 2021, 11:23:18 AM »
The server has now been down for over 8 hours. I wonder if you could add a script that automatically restarts the server if the log file has not updated for 2 hours, for instance?

I have now restarted the server. The freezes do need to be identified and fixed: the suggested script is not a permanent solution. The process can only be terminated with the kill -9 command in this state. In any event, terminating the server if the log has not been updated in 2 hours will not be sensible, since this stat will occur if nobody has played on the server for the last 2 hours.

Offline Vladki

  • Devotee
  • *
  • Posts: 3625
    • My addons, mostly roadsigns, pak128.cs
  • Languages: EN, CS
Re: Bridgewater-Brunel game no. 3
« Reply #152 on: Yesterday at 03:53:36 PM »
I have tried to connect to B-B, but after (long) loading the game it said that the save is incompatible, and dropped me to demo.sve. And probably crashed the server...

I run self compiled binary because the nightlies have too fresh libraries for debian. But I have no problem connecting to S-S which is on ubuntu 20.04. I suspect the libzstd to be the culprit?
Debian: libzstd1:amd64 1.3.8+dfsg-3 Ubuntu: libzstd1:amd64 1.4.4+dfsg-3

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Administrator
  • *
  • Posts: 20648
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Bridgewater-Brunel game no. 3
« Reply #153 on: Yesterday at 03:57:18 PM »
If you are self compiling, make sure that you enable zstd otherwise you will not be able to connect.