Open Rails crashes when loading

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • curley
    Member
    • Sep 2006
    • 65
    • San Diego

    #1

    Open Rails crashes when loading

    I recently booted back up Open Rails after almost a month without playing it and suddenly it began to crash when trying to start an activity or to start explore mode. This happens on every single route including the default ones. I recently installed 3DTS's Donner Pass but I'm not sure if that's causing the crashes. I attached a log file while trying to load a default route with default stock. Thanks for any help.
    Attached Files
    Ryan
  • geepster775
    2500 Post Veteran


    • Sep 2006
    • 2846
    • .
    • General

    #2
    What sticks out to me is a system disk that is 94% full. That 9.5 GB of ram is something to look at. Pagefile turned off?

    https://superuser.com/questions/1220...programs-crash

    My rig has 16GB of RAM, Superfetch is disabled and the page file is disabled because I'm a power user and I do production work every day. For some reason every time my RAM usage hits 9.5GB something crashes. A tab in Fixed Firefox, my SQL query logs, etc. It's as if I've hit the 16GB limit...
    My Open Rails videos https://www.youtube.com/@lakecities3663/videos

    Comment

    • mikeebb
      Senior Member

      • May 2010
      • 989
      • Pacific Time
      • ORTS

      #3
      That full system disk (and the nearly-full data disk farther down the list) are concerns. But that 9.5 out of 16 RAM number is a dead giveaway of having the pagefile turned off. Not good. And unless you're doing something diabolical with the Monogame version of Open Rails, there's no way OR can use enough memory to even get close to 9 GB anyway (normal OR is a 32-bit program so it's limited to 4GB regardless). So ... turn the swapfile on and let Windows manage it. You'll get all 16GB (and then some for emergencies). Also get a SSD for the (boot, apps, and) swap disk: minimizes the hit when swap does happen.

      FWIW, in normal use in my computer with 8GB and Win10 Pro, when running ORTS with the normal background stuff going on, my commit is around 3 GB out of 16 (Windows normally runs as much swap as it has for RAM, though that drops off when the numbers get ridiculous) with "in use" around 2.5. I have to load up a stupid amount of stuff other than OR to push the "in use" up into the 5-6 GB range (around 3/4 of the total RAM) before the commit starts to grow substantially beyond the actual RAM in use. So Windows really isn't swapping much under that kind of load. Also, when you look at RAMMap, note that most of the memory is full of "standby" stuff - stuff that's been loaded at one time or another and hasn't been unloaded so if you need it again it's immediately available; Superfetch helps with loading that, too. If for some reason you run short of RAM, that standby space is cleared for you.

      Again, running without a swap file doesn't help you any, and in cases like this can hurt. You might also want to look for what application(s) account for that huge RAM usage, because ORTS is highly unlikely to be one of them. Are you running a MySQL server in the background?

      Comment

      • derekmorton
        5500 Post Veteran



        • Nov 1999
        • 5699
        • Eltham, Victoria, Australia.
        • ORTS

        #4
        What about this?

        Error: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

        Have you tried rebooting and trying again?
        Its memory corruption or bad memory.

        Comment

        • dedwa15237
          2000 Post Veteran

          • Nov 1999
          • 2183
          • Somewhere south...

          #5
          9GB of RAM is obviously ways off... Normally all RAM will work on each like 4, 8, 16 32 and 64GB with proper sticks. I think your RAM is possibly defective or a bad memory stick.. It is very common on all computers..
          Dave Edwards

          [SIGPIC][/SIGPIC]

          Comment

          • curley
            Member
            • Sep 2006
            • 65
            • San Diego

            #6
            I tried rebooting my system and it still didn't work. I did change the paging file from auto to system managed, but switched it back to auto before I noticed I was having this problem. As for the 9.5gb, I currently have only 10gb of RAM installed using one 8gb stick I bought and another 2gb stick I already had at the time. I've been using that setup for at least 2 years now with no problems, and continue to not have any problems with it besides what's going on with OR. I don't have MySQL installed on my computer and I cleared out some disk space, but to no avail.
            Ryan

            Comment

            • derekmorton
              5500 Post Veteran



              • Nov 1999
              • 5699
              • Eltham, Victoria, Australia.
              • ORTS

              #7
              Try the non LAA executable and see what happens.

              Comment

              • curley
                Member
                • Sep 2006
                • 65
                • San Diego

                #8
                Nope, it's still crashing.
                Ryan

                Comment

                • derekmorton
                  5500 Post Veteran



                  • Nov 1999
                  • 5699
                  • Eltham, Victoria, Australia.
                  • ORTS

                  #9
                  You need to post the log file from that crash

                  Comment

                  • curley
                    Member
                    • Sep 2006
                    • 65
                    • San Diego

                    #10
                    My bad, here it is.
                    Attached Files
                    Ryan

                    Comment

                    • derekmorton
                      5500 Post Veteran



                      • Nov 1999
                      • 5699
                      • Eltham, Victoria, Australia.
                      • ORTS

                      #11
                      There is no crash in that file?

                      Comment

                      • curley
                        Member
                        • Sep 2006
                        • 65
                        • San Diego

                        #12
                        I was still getting a crash. I resorted to uninstalling MSTS and reinstalling it on a different partition on my computer with no addons and tried to run it through Open Rails, and it's still crashing.
                        Attached Files
                        Ryan

                        Comment

                        • geepster775
                          2500 Post Veteran


                          • Sep 2006
                          • 2846
                          • .
                          • General

                          #13
                          My rig has 16 GB and discreet graphics (GTX 970) and when I run open rails, my OR log shows the full 16 GB. There is some issue with your rig that is only showing 9.5 GB out of the 10 you have installed, especially when you have discreet graphics also, which should not be consuming any of your 10 GB memory for that. If you had onboard Intel graphics in use, then yes, some of that 10 would be consumed by graphics.

                          You moved your files, to no avail. You set back OR versions to stable, to no avail, so that rules out any recent changes in the OR code.

                          Have you started pulling ram blocks to see if the problem goes away? I'm a little leery of "throwing old hardware in that I already had".

                          It is a distraction to keep proclaiming the problem doesn't surface with other apps. Clearly there is an issue but the other apps might have never triggered it.

                          What are your motherboard model and specs? Is this a store-bought or home-built PC?
                          My Open Rails videos https://www.youtube.com/@lakecities3663/videos

                          Comment

                          • qballbandit
                            6500 Post Veteran

                            • Jan 2006
                            • 6522
                            • Elgin Il., USA.
                            • MSOR

                            #14
                            I am out of touch with newer PC's and components, but the OP mentioned having an 8g and 2g stick in the board.
                            Is it not a big deal anymore to have matched memory sticks?
                            Neil

                            Chicago Railroading Fan

                            Comment

                            • slipperman
                              3500 Post Veteran



                              • May 2010
                              • 3787
                              • Worksop, UK
                              • MSOR

                              #15
                              Hi Neil,
                              I'm not certain, but I think having matched RAM modules is only important when using the memory in dual channel mode (probably a BIOS setting?). However, problems might be caused if there is a big difference between the "speed" of the two modules.

                              Cheers,
                              Ged

                              Comment

                              Working...