Out Of Memory - Object Limit In Simulator?

Discussion in 'Technical Reports' started by Koplopermau, Mar 6, 2024.

  1. Koplopermau

    Koplopermau Member

    Joined:
    Dec 9, 2016
    Messages:
    33
    Likes Received:
    57
    I don't know where to put this, so I'll just put it here.

    In our Dutch community, we have some pretty awesome and big routes. Lately, two route creators managed to merge their two routes, almost doubling its length. It's called the "Achterhoek and Twentelijnen", you can find screenshots on our own forum DutchSims for those who are interested. We also have 't Krammendijks Deltaland v3, 't Hart van Nederland and the in length impressive HSL (High Speed Line south) route running all the way from Amsterdam to Antwerpen.

    All these routes have one thing in common: They are big. VERY big. Maybe not in terms of length, but in size of assets, rails, signals, they make Train Simulator crack under the amount of stuff they include.

    Scenario creators have been suffering weird errors when making scenario's on these routes. Like, after awhile your scenario would just outright stop working. You'd created a scenario, and given the nature of Dutch trains, added a ton of AI traffic. Things work fine, testing goes fine, and the next time you start Train Simulator the scenario just crashes with an out of memory error. Out of the blue. This has happened to myself too. Removing trains sometimes fixes this issue, but not always.

    Lately, this happened again to one of my friends. We went to investigate. We removed trains. Didn't work. We tried lowering quality. Didn't work. Change trains around. Didn't work. Start scenario on different PC. Didn't work.

    Now, one thing that does often work, is move your scenario marker 50km away (to somewhere away from any scenery). This gives you basically a load separation: Trains will be loaded first. The simulator will then start, teleport you to the player train at frame one, and start loading the scenery (if you ever wondered why your scenery started loading once you entered your train, this is why, put your marker next to your player train).

    My friend and I did the same thing in his scenerio and it worked! It loaded without trouble. Teleported to the starting location into the cab of his player train. AI trains were loaded and starting / driving. Scenery was not, so right away the sim started loading all scenery. About 30 seconds in, BOOM, crash. After working fine without trouble for ~25 seconds, of course, loading scenery.

    This made us wonder. Is there a hard limit somewhere, maybe a leftover from 32-bit era? Can you have X number of assets before Train Sim, just like 32-bit, is like 'nope I'm out' and crashes with the famous out of memory error. The reason I'm asking is because of the friend scenario. Everything loaded fine, everything worked, and BAM, out of nowhere, a memory crash. Remember, all trains were loaded, just the scenery was being loaded in. It makes me wonder if anything is there that limits TS under the hood, even though it is 64-bit.

    If there is anyone that knows if any of these limits exist, please let me know. Also, if it can be fixed for the new beta, also let me know, because I'd love to test it!

    - Koplopermau
     
    Last edited: Mar 6, 2024
  2. Koplopermau

    Koplopermau Member

    Joined:
    Dec 9, 2016
    Messages:
    33
    Likes Received:
    57
    We've let the game crash a couple of times more for the crash image, temp dump and the logmate. Maybe it helps.
     

    Attached Files:

  3. Spikee1975

    Spikee1975 Guest

    As far as I'm aware there is no defined limitations. Kuju gave some polycount recommendations in the RS days - but these were only for performance. RAM is the only limit.

    Of course you can overload routes, in that case you need to go into the optimising process. It's not always wise to merge two already complex routes. There'll naturally be some critical point which of course can't be tested by the devs, that's up to the creators to check they're not pushing the game too hard. That's also valid for TSW (I'd say for every game engine.)

    I'll have a look at the logmate report - in most cases it's corrupt assets (and I've come across a lot of them especially in bundled freeware assets).

    Just browsing, first thing that is not good: You have two or more scenarios with the same GUID in your game. This happens when copying and not cloning scenarios. Each scenario GUID must be unique, 128 bit are enough for more scenarios than stars in the universe ;)

    Then there's hundreds of missing repaints / 3rd party locos, probably not an issue though.

    Next one, as suspected, corrupt asset
    Assets\Radiomaster\objekt\scenery\clutter\Clutter RU\clothes_line.bin appears to contain invalid data

    Again a bulk of hundreds of missing assets.

    A missing sound
    Failed to load file 'Assets\RLB\RLB_SWB\DB\RailNetwork\Signals\DBFormsignale\Materials\Sound\Fluegelbewg01.dav

    Bad or tampered with loco models with missing bogie nodes
    Rail vehicle "Railtraction\Lint41\BR648\engine\LintARRIVA Vechtdallijnen 34B.xml" missing node "bo02wh01"
    Rail vehicle "Railtraction\Lint41\BR648 Keolis ZpOdz\engine\lintSection45A.xml" missing node "bo02wh01"

    I'll skip to the bottom of the file
    Unexpected case: 11-Intercity 1628 Schiphol Airport @ node: 858

    Probably an error in the route network / tracks.bin (can't say more without actually having that scenario to check)

    My conclusion is you'll have to do a lot of work clearing your route (and stock) from bad assets, and check on the route / track properties etc.

    Make simple tests. Rename the "Scenery" folder and play the route - if it works you know the cause lies in scenery assets, that's where you need to be looking.

    Or make a clone - strip the RouteProperties.xml from all providers not needed for the pure track. Only use the Terrain and Network folders. You can test the route and scenarios in that "empty" route also.

    That's all I can say from a distance as I can't test the route myself, but I would rule out a limit. It's more looking like a corruption and invalid data.

    Also I'd advise for your projects to not use the Public Beta. Use the stable v75.8a.
     
    Last edited by a moderator: Mar 7, 2024
  4. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,088
    Likes Received:
    3,145
    I have done a number of runs on the Krammendijks Deltaland v3 without any problems - so far.
    I did notice a scenario load from the cab and the various sections coming in to place but without any problems.

    The "as downloaded version" of some scenarios had to be changed as I did not have some repaints.
    So I used Locoswap to change the units to the default version.

    On my trips to Holland there appeared to be more of the normal livery than one off repaints

    Peter
     
  5. Koplopermau

    Koplopermau Member

    Joined:
    Dec 9, 2016
    Messages:
    33
    Likes Received:
    57
    This is probably the result of backups of said scenario (or others). We are aware that same GUID can cause trouble.
    That's the case. Funny that TS crashes on these assets when a scenario gets full of trains, but not in an empty scenario without any trains or with very few. We can drive from A to B with one train no problem. Maybe add one or two AI's, fine. Add plenty and TS suddenly starts crashing.
    Unfortunately I cannot give you the route (it is still being worked on after all!) but I will relay the message back. We'll look into this and let you know any update.

    Thanks for the replies so far.
    Koplopermau
     
    • Like Like x 1
  6. Spikee1975

    Spikee1975 Guest

    Graag gedaan, good luck!
     
    Last edited by a moderator: Mar 9, 2024

Share This Page