The International Simutrans Forum

 

Author Topic: [Closed] New Simutrans-Experimental server (bridgewater-brunel.me.uk)  (Read 67112 times)

0 Members and 1 Guest are viewing this topic.

Offline wlindley

  • Devotee
  • *
  • Posts: 1028
    • Hacking for fun and profit since 1977
  • Languages: EN, DE
Re: New Simutrans-Experimental server (bridgewater-brunel.me.uk)
« Reply #280 on: February 28, 2012, 05:15:57 PM »
Yes, I am -- the announcement post still does not have 64-bit Linux binaries.  Or can I find that somewhere?

Offline ӔO

  • Devotees (Inactive)
  • *
  • Posts: 2345
  • Hopefully helpful
  • Languages: en, jp
Re: New Simutrans-Experimental server (bridgewater-brunel.me.uk)
« Reply #281 on: February 28, 2012, 05:33:48 PM »
there seems to be more crashes in 1959. The only thing different, that I've noticed, is the new power plant.

Offline dustNbone

  • *
  • Posts: 100
Re: New Simutrans-Experimental server (bridgewater-brunel.me.uk)
« Reply #282 on: February 28, 2012, 05:58:26 PM »
Yes, I am -- the announcement post still does not have 64-bit Linux binaries.  Or can I find that somewhere?

Here's a link to the one I built (and use)
http://dl.dropbox.com/u/38204997/simutrans/stexp1010

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 20274
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: New Simutrans-Experimental server (bridgewater-brunel.me.uk)
« Reply #283 on: February 28, 2012, 10:56:20 PM »
I am very sorry about the Linux problems - for some reason, the automatic Linux builds refuse to compile for version 10.10, although I can compile the server build without difficulty on my server. If anyone has any idea what the problem might be, I should be most grateful. I can post the error messages if that would help.

DustNbone - would you mind if I linked to your version on the official release thread?

AEO - can you elaborate on the nature of these crashes - are they preceded by the odd behaviour suggestive of memory corruption discussed above?

Offline ӔO

  • Devotees (Inactive)
  • *
  • Posts: 2345
  • Hopefully helpful
  • Languages: en, jp
Re: New Simutrans-Experimental server (bridgewater-brunel.me.uk)
« Reply #284 on: February 28, 2012, 11:49:58 PM »
the crashes seem to come most at the beginning of the month.
that particular one in 1959 caused a lot of convoys to get stuck.

I've also noticed that one ship, when replaced, was sitting in the depot with something like 20 copies of its line in the schedule list right before the crash. It was like "stop A, stop B, stop A, Stop A...".

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 20274
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: New Simutrans-Experimental server (bridgewater-brunel.me.uk)
« Reply #285 on: February 29, 2012, 12:03:33 AM »
Hmm. Looks like memory corruption in collection classes again.

Offline dustNbone

  • *
  • Posts: 100
Re: New Simutrans-Experimental server (bridgewater-brunel.me.uk)
« Reply #286 on: February 29, 2012, 02:52:06 AM »
Yeah I don't mind, should I keep it on dropbox or will you put a copy somewhere else and link to that?

Offline ӔO

  • Devotees (Inactive)
  • *
  • Posts: 2345
  • Hopefully helpful
  • Languages: en, jp
Re: New Simutrans-Experimental server (bridgewater-brunel.me.uk)
« Reply #287 on: February 29, 2012, 07:26:33 AM »
server seems to lag or even crash when replacing electrification en masse
same deal with removing tram tracks en masse.

Offline Milko

  • Devotee
  • *
  • Posts: 868
Re: New Simutrans-Experimental server (bridgewater-brunel.me.uk)
« Reply #288 on: February 29, 2012, 09:13:50 AM »


Yes, I am -- the announcement post still does not have 64-bit Linux binaries.  Or can I find that somewhere?


The server and the client versions must be the same. Using different versions increases the disconnection because the code that runs on the server is different from the code that runs on the client and the results of the calculations are so different. I think you have to build the repository "master" from github to use online games...

Could this be the reason?

Giuseppe

Offline wlindley

  • Devotee
  • *
  • Posts: 1028
    • Hacking for fun and profit since 1977
  • Languages: EN, DE
Re: New Simutrans-Experimental server (bridgewater-brunel.me.uk)
« Reply #289 on: February 29, 2012, 02:43:58 PM »
I did a 'git checkout master' 'git pull' and 'make -j3' ... with that binary I can now connect, wait about two minutes for initialization, and play for a couple seconds before everything freezes.  No errors, just a freeze.   At least I have been able to replace some of my circa 1870s  horse-and-carriage with a bus, but at this pace I will never be able to upgrade the rail lines.

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 20274
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: New Simutrans-Experimental server (bridgewater-brunel.me.uk)
« Reply #290 on: February 29, 2012, 09:29:41 PM »
dustNbone - that is very kind. I will take a copy, if you don't mind.

AEO - noted: I'm not sure what might be causing that.

Wlindley - may I ask what the significance of "-j3" is? The server version is built without this switch.

Offline wlindley

  • Devotee
  • *
  • Posts: 1028
    • Hacking for fun and profit since 1977
  • Languages: EN, DE
Re: New Simutrans-Experimental server (bridgewater-brunel.me.uk)
« Reply #291 on: February 29, 2012, 10:15:02 PM »
j3 just means to compile up to three modules at once.  Dependencies are still respected.  The same thing happens without that switch.

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 20274
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: New Simutrans-Experimental server (bridgewater-brunel.me.uk)
« Reply #292 on: February 29, 2012, 10:20:33 PM »
Interesting. What version of GCC are you using, and from which branch are you pulling?

Offline Junna

  • Devotee
  • *
  • Posts: 1089
Re: New Simutrans-Experimental server (bridgewater-brunel.me.uk)
« Reply #293 on: March 01, 2012, 10:23:59 AM »
Desyncs and crashes are near constant making it frustratingly unplayable. I bet it's the city cars.

Changing electrification also seems to contribute.

Offline dustNbone

  • *
  • Posts: 100
Re: New Simutrans-Experimental server (bridgewater-brunel.me.uk)
« Reply #294 on: March 01, 2012, 10:43:01 AM »
Yeah I've noticed even in single player the city cars seem to just brutalize the CPU starting around the mid 60s.  Is it simulating their trips or just animating them?

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 20274
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: New Simutrans-Experimental server (bridgewater-brunel.me.uk)
« Reply #295 on: March 01, 2012, 10:47:38 AM »
Hmm, I have also noticed issues with desyncs (at the beginning of the month mostly, but also at other times) and some crashes. Not entirely sure why at present, as have not had time to investigate. A problem is that there are known memory corruption issues which should be fixed when I am able to merge all the latest changes from Standard 111.2.1, on which I have been working. Until I do that, it will be hard to tell which issues are and which issues are not related to this problem.

As to the private cars, their trips are simulated, but in a rather abstract way, and the private car graphics are not themselves simulating car trips, but just wandering around more or less aimlessly in numbers directly proportionate to the number of actual private car trips.

Edit: Incidentally, if anyone would like to help to track down this issue, I should be very grateful if anyone could run the current server game with profiling enabled to see which parts of the code are currently the most CPU intensive.
« Last Edit: March 01, 2012, 10:57:48 AM by jamespetts »

Offline ӔO

  • Devotees (Inactive)
  • *
  • Posts: 2345
  • Hopefully helpful
  • Languages: en, jp
Re: New Simutrans-Experimental server (bridgewater-brunel.me.uk)
« Reply #296 on: March 04, 2012, 12:52:12 AM »
server seems to have crashed from
Code: [Select]
minivec_tpl<T>::resize()
new size 256 too large
(>255).

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 20274
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: New Simutrans-Experimental server (bridgewater-brunel.me.uk)
« Reply #297 on: March 10, 2012, 02:01:20 AM »
Apologies for not having got to this before - I had been preoccupied with trying to deal with the pesky iterator issues in the merge version. I have now found and fixed the cause of this crash in the 10.x branch - would anyone care to test whether this fix causes unintended anomalies?

Thank you everyone for your patience!

Offline dustNbone

  • *
  • Posts: 100
Re: New Simutrans-Experimental server (bridgewater-brunel.me.uk)
« Reply #298 on: March 10, 2012, 04:55:57 AM »
I built and ran the latest save I had locally from the server game, October 1977 game time and ran it for about 2 years and it seems fine.  Saved and reloaded a few times, it still won't let us have more than 10.7 billion or so but that's enough money I guess.  It would be nice if it would at least rollover to 0 maybe at that point (maybe as an option).  Maybe not realistic but at least you can keep progressing.

Oh and here http://dl.dropbox.com/u/38204997/simutrans/stexp10xmar9x64 is a link to my x64 Linux build if anyone needs it.

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 20274
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: New Simutrans-Experimental server (bridgewater-brunel.me.uk)
« Reply #299 on: March 10, 2012, 01:34:05 PM »
The 10.7 billion issue, I suspect, is indirectly caused by the negative interest bug, which I have now fixed in 10.x. It's rather difficult to test, as it requires the game to run for a rather long time in the right conditions, however.

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 20274
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: New Simutrans-Experimental server (bridgewater-brunel.me.uk)
« Reply #300 on: March 25, 2012, 04:46:03 PM »
Apologies for the recent downtime - this is now running again with the latest 10.11 release. In view of the problems discussed here, I have enabled assume_everywhere_connected_by_road, so there will be much more private car competition to and from all cities than there was hitherto (when the road connexion databases were, due to a bug, no updated after they were first created).

Thank you all for your patience, and happy playing!

Offline rsdworker

  • *
  • Posts: 281
Re: New Simutrans-Experimental server (bridgewater-brunel.me.uk)
« Reply #301 on: March 25, 2012, 05:41:47 PM »
i tried to get on but problem is simtrans hangs up when loading the server - its seems something wrong?

i updated the simtrans exp to 10.11

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 20274
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: New Simutrans-Experimental server (bridgewater-brunel.me.uk)
« Reply #302 on: March 25, 2012, 07:04:58 PM »
Hmm - I can't reproduce this. It does take a fair while to download the game, but it is rather large.

Offline rsdworker

  • *
  • Posts: 281
Re: New Simutrans-Experimental server (bridgewater-brunel.me.uk)
« Reply #303 on: March 25, 2012, 07:32:01 PM »
Hmm - I can't reproduce this. It does take a fair while to download the game, but it is rather large.
before that update - its didn't take long time to load world

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 20274
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: New Simutrans-Experimental server (bridgewater-brunel.me.uk)
« Reply #304 on: March 25, 2012, 07:32:53 PM »
Hmm. It does seem to take a little longer, although it's not clear why at present. However, it does eventually load.

Offline rsdworker

  • *
  • Posts: 281
Re: New Simutrans-Experimental server (bridgewater-brunel.me.uk)
« Reply #305 on: March 25, 2012, 08:08:10 PM »
great - took around 5 minutes to log in the server

Offline ӔO

  • Devotees (Inactive)
  • *
  • Posts: 2345
  • Hopefully helpful
  • Languages: en, jp
Re: New Simutrans-Experimental server (bridgewater-brunel.me.uk)
« Reply #306 on: March 25, 2012, 09:28:31 PM »
I was dropped the first time I connected, but it seems to work now.
I think the general slowness is caused by the lack of processor power on the server side, because if I load the game as a local copy on my computer, it becomes very unresponsive as well.

Offline rsdworker

  • *
  • Posts: 281
Re: New Simutrans-Experimental server (bridgewater-brunel.me.uk)
« Reply #307 on: March 25, 2012, 09:46:00 PM »
I was dropped the first time I connected, but it seems to work now.
I think the general slowness is caused by the lack of processor power on the server side, because if I load the game as a local copy on my computer, it becomes very unresponsive as well.
- that's what i thought when i tried to login to server - its was very slow well

Offline ӔO

  • Devotees (Inactive)
  • *
  • Posts: 2345
  • Hopefully helpful
  • Languages: en, jp
Re: New Simutrans-Experimental server (bridgewater-brunel.me.uk)
« Reply #308 on: March 25, 2012, 09:48:34 PM »
private cars are spawning where they shouldn't.

for instance: PEX Catingfield station

Offline rsdworker

  • *
  • Posts: 281
Re: New Simutrans-Experimental server (bridgewater-brunel.me.uk)
« Reply #309 on: March 25, 2012, 09:50:43 PM »
private cars are spawning where they shouldn't.

for instance: PEX Catingfield station
that's true - i saw alot of traffic and its was very slow

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 20274
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: New Simutrans-Experimental server (bridgewater-brunel.me.uk)
« Reply #310 on: March 25, 2012, 09:54:53 PM »
AEO - can you repost that as a bug report? It's not really specific to the server. Thank you for reporting it, though.

Offline ӔO

  • Devotees (Inactive)
  • *
  • Posts: 2345
  • Hopefully helpful
  • Languages: en, jp
Re: New Simutrans-Experimental server (bridgewater-brunel.me.uk)
« Reply #311 on: March 26, 2012, 10:21:03 AM »
There seems to be some instability upon quitting the game. Sometimes it reverts to an older save and other times it works fine.

public cars are piling up in the diagonals and this sometimes causes grade crossings to jam. some designs are worse than others. Addham seems to be particularly bad.

The input delay on the client end might be caused by the client lagging behind the server. For me, this is a gradual build up. I've noticed that when logging on with a second computer, both underpowered, there was always a delay for the computer that's been logged on. The computer that just logged on will be paused with the server, waiting for the other client to catch up.



Electricity works great now.It just needs to be connected to cities :D
« Last Edit: March 26, 2012, 10:34:17 AM by ӔO »

Offline Vonjo

  • *
  • Posts: 273
Re: New Simutrans-Experimental server (bridgewater-brunel.me.uk)
« Reply #312 on: March 27, 2012, 05:54:31 PM »
I think 18 MB to download this network game is really too big.
« Last Edit: March 27, 2012, 07:38:03 PM by Vonjo »

Offline ӔO

  • Devotees (Inactive)
  • *
  • Posts: 2345
  • Hopefully helpful
  • Languages: en, jp
Re: New Simutrans-Experimental server (bridgewater-brunel.me.uk)
« Reply #313 on: March 27, 2012, 07:22:04 PM »
once the game loads, you have to wait for your computer to catchup to the server. How fast that happens seems to be related to how fast your computer is.

You can give a lot of command inputs while the game is paused and they'll either all go through, or you'll be desynced.

Waiting times for sync are quite long.
Unloading the map or quitting the game after the server game is loaded also takes a ton of time.

For my computer, which is Core 2 duo 1.86ghz and 2GB ram, the waiting time is anywhere between 20 and 40mins.

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 20274
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: New Simutrans-Experimental server (bridgewater-brunel.me.uk)
« Reply #314 on: March 27, 2012, 10:52:17 PM »
Hmm, that's rather a long time. The difference in performance seems to have occurred after the update to 10.11. The only thing that I can think of is that it is the number of private cars, which would have increased as a result of setting assume_everywhere_connected_by_road=1. I shall have to perform some tests if I have time to see whether this is indeed the problem, and shall have to consider, if it is, what to do about it, and, potentially, how to reduce the amount of memory taken by each private car.