Out of memory .Exception oxc0000005

General discussion about Train Simulator, your thoughts, questions, news and views!

Moderator: Moderators

johnrossetti
Very Active Forum Member
Posts: 2542
Joined: Wed Mar 14, 2007 9:47 pm
Location: Same place as last time

Re: Out of memory .Exception oxc0000005

Post by johnrossetti »

Hi Gary
Do you mean scenario folders John?
No
Just the folders with scenery in them NO STOCK.. it was mentioned a few posts back, ideal for editing scenery, very quick loads with only the one scenery being editied in routes. Love it.

I have never had the error of this thread until NOW :-? TODAY :( TONIGHT :x
railworks 2 1 2020 Port Road.jpg
It's on my VIRGIN installation
I'm investigating its the old Port Road Original Route, it comes from steam and has 3 standard scenarios one is [56xx] Stock check.
BUT on my other installation it runs fine, on comparing the routes folder 00000010-0000-0000-0000-00000000000 they are both identical so the problem may be in the assets but the track is incorrect NO FROGS on the points.
I'll have some fun tracking it down, by elimination.
Cheers John
gptech
Very Active Forum Member
Posts: 19585
Joined: Fri Oct 10, 2008 5:48 pm
Location: Wakefield, West Yorkshire

Re: Out of memory .Exception oxc0000005

Post by gptech »

johnrossetti wrote:Just the folders with scenery in them NO STOCK.. it was mentioned a few posts back, ideal for editing scenery, very quick loads with only the one scenery being editied in routes. Love it.
You mean this one?...
brysonman46 wrote:The building version only contains routes that I am working on, and the Assets do not contain any rolling stock. Very fast loading times!
Nick's running with no folders in his Assets tree that contain rolling stock---so, no ..\Assets\AP\Class50Pack01 folder, no ..\Assets\DT\DT_MK1_coaches folder, no ..\Assets\Kuju\RailSimulator\RailVehicles folder etc.
The folders in ..\Content\Routes don't contain any assets, merely files that tell the game where in the Assets folder tree to find the assets it needs to display. The only thing you'd do in any ..\Contents\Routes route GUID folder is delete the Scenarios sub-folder it will contain--editing a route will immediately create a new Scenarios folder containing just the free roam scenario with no stock that you'd do the editing in.
johnrossetti wrote: the problem may be in the assets but the track is incorrect NO FROGS on the points.
First thing to check is whether you have the Track Rule installed, which I think is ..\Assets\keithmross\Port Road\RailNetwork\Track rules blueprint_PortRoad_orig.bin. You'd be able to check the exact name and pathing using your other installation.
User avatar
tango4262
Very Active Forum Member
Posts: 3262
Joined: Mon Feb 07, 2005 9:37 am
Location: Driving buses!

Re: Out of memory .Exception oxc0000005

Post by tango4262 »

gptech wrote:
tango4262 wrote:I'm getting it on the North, South, West London route
Just that one route?
If so, that's not enough to base claims of a change to the core software on.
Are you editing the route or just a scenario? If a scenario did it come with the route? What stock is used--is it full of heavily scripted locos/MUs?
So far yes....... admittedly it is a resource hungry route and i'm using a lot of heavily scripted MU's..... :P :oops: :P :oops: :P :oops:

Not having a dig or anything, I was just suggesting maybe it is not a memory issue after all. :wink:


*edit* I've just had the error whilst deleting scenario's in the sim menu.
johnrossetti
Very Active Forum Member
Posts: 2542
Joined: Wed Mar 14, 2007 9:47 pm
Location: Same place as last time

Re: Out of memory .Exception oxc0000005

Post by johnrossetti »

Spot on Gary. Thank you. amazing how with out that bin file it loaded at all .
All working fine now.
It will be a barrel when I see you by now :(
I looked through the assets folder, hmm looks like a lot of work, unless I run RWTools and look for rolling stock .bin ? .xml ? files, or . . . . that nice fellow I quoted gives me a list !! :o

John
brysonman46
Very Active Forum Member
Posts: 2047
Joined: Sun Jul 21, 2013 10:30 am
Location: Larbert Central Scotland

Re: Out of memory .Exception oxc0000005

Post by brysonman46 »

johnrossetti wrote: I looked through the assets folder, hmm looks like a lot of work, unless I run RWTools and look for rolling stock .bin ? .xml ? files, or . . . . that nice fellow I quoted gives me a list !! :o

John
Rolling stock assets are either in their own folders (such as DTG\Class20Pack02), or in a subfolder of a Routes Assets (such as DTG\CardiffSwansea\RailVehicles). There are other assets that link to rolling stock (such as Audio files), but they are relatively small so I keep them.

Nick
chris higgin
Been on the forums for a while
Posts: 288
Joined: Mon Jun 21, 2004 11:40 pm

Re: Out of memory .Exception oxc0000005

Post by chris higgin »

Good grief, my cry for help certainly created a lot of discussion all good stuff though. I am certain without the forum and the people on it I would have given up a long time ago, every time I have asked question, 99% of the time I have been able to put things right, the1% didn't matter. I still don't understand how a possibly faulty scenario can stop all of the rest of the routes loading up, I also thought that ticking the box to unload a route took it away completely not realising the route folder with four workshop scenarios was left behind , live and learn.
Thanks again folks learnt from all of this, only download one workshop scenario at a time and test it before downloading anymore.

Chris H
johnrossetti
Very Active Forum Member
Posts: 2542
Joined: Wed Mar 14, 2007 9:47 pm
Location: Same place as last time

Re: Out of memory .Exception oxc0000005

Post by johnrossetti »

chris higgin wrote: with four workshop scenarios was left behind
Likewise if you install new rolling stock that wants to add scenarios to routes you have and don’t have, it will create route-less folders with only scenarios in them, whether this matters I know not but it seems to be ok on my system.

If you want to know if you have any scenario routes only , run the utility in the Railworks folder called “name my route” it's results are similar to RWTools “Print list of all Routes and Scenarios” except that the Railworks version reads the contents of .ap files even if they have not been expanded.

What you end up with is a list (or report if you export) that contains one or more lines like this
[00000030-0000-0000-0000-000000000000 missing RouteProperties.xml
This result can be from installed stock or scenarios for a route that does not exist.
Cheers John
User avatar
tango4262
Very Active Forum Member
Posts: 3262
Joined: Mon Feb 07, 2005 9:37 am
Location: Driving buses!

Re: Out of memory .Exception oxc0000005

Post by tango4262 »

I have just got a second SSD from another PC, I'm going to separate Windows 10 and TS to see if that will help running TS. It's a long shot I know but I'm hoping it will free TS as much as possible from any background activity. I'll let you know how i get on.
chris higgin
Been on the forums for a while
Posts: 288
Joined: Mon Jun 21, 2004 11:40 pm

Re: Out of memory .Exception oxc0000005

Post by chris higgin »

Thanks John will give that a try.
Regards Chris H
User avatar
alanch
Very Active Forum Member
Posts: 4907
Joined: Mon Feb 27, 2006 6:07 pm
Location: Leeds, England
Contact:

Re: Out of memory .Exception oxc0000005

Post by alanch »

tango4262 wrote:I have just got a second SSD from another PC, I'm going to separate Windows 10 and TS to see if that will help running TS. It's a long shot I know but I'm hoping it will free TS as much as possible from any background activity. I'll let you know how i get on.
That's how my computer is set up now, and it works pretty well for me - good luck.
Alan

My railway photos are now on Google + - links to the albums are in this thread http://forums.uktrainsim.com/viewtopic. ... 9&t=149558

Lots of steam and early diesels from 1959 to 1963.
gptech
Very Active Forum Member
Posts: 19585
Joined: Fri Oct 10, 2008 5:48 pm
Location: Wakefield, West Yorkshire

Re: Out of memory .Exception oxc0000005

Post by gptech »

johnrossetti wrote:the Railworks version reads the contents of .ap files even if they have not been expanded.
It doesn't John; just like RW Tools, NameMyRoute needs to be able to directly access the RouteProperties.xml file to report a route's name, and a scenario's ScenarioProperties.xml file in a mirror copy of the path used in the .ap archive to do the same with scenarios. These are the only files that need to be duplicated outside of the archive, but if you've edited a route (to change any of the default values--default time of day files, the title, adding any new Provider/Product pairings to allow the placing of different scenery items) or scenario in the game, these would be automatically created as part of the editing process. Just drop into your Contents folder and rename a mirrored copy of a route's RouteProperties.xml to RouteProperties.xml.test and see if NameMyRoute can still see it.
tango4262 wrote:I'm going to separate Windows 10 and TS to see if that will help running TS
It'll do absolutely nothing for it if the cause of any problem is a corrupt file---you'd still be trying to access the same *broken* file. You would/should however see an improvement in the loading times of a clean copy of the game, and a certain sense of "more snappiness" during game play. Instability/pauses caused by having to wait for disc access because Windows is doing something would practically disappear, I dare say you'd see an improvement even if you had TS on a spinning drive, the important part is separating OS and game.
johnrossetti wrote:unless I run RWTools and look for rolling stock .bin ? .xml ? files, or . . . . that nice fellow I quoted gives me a list
Nobody can give you a list, as nobody other than yourself knows what you have installed---pointless somebody compiling a list of all the 25KV AC electric locos available if you ain't got any of 'em!!
Instead of looking for what you can/should remove, look at things from the other direction...

What do I need to add to an empty Routes folder and an empty Assets folder to make route XYZ available?

Create a fresh instance of TS, delete everything in the ..\Content\Routes folder. In the Assets folder, leave ..Kuju\RailSimulator and ..\Kuju\RailSimulatorCore in place but delete everything else.
In that Kuju\RailSimulator folder, delete the RailVehicles folder.
Now decide which route you want to edit: let's pretend you want to work on ECML-S, London-Peterbrough. Copy the ..\Content\Routes\00000029-0000-0000-0000-000000002014 folder from one of your full installations and paste it into the minimalist ..\Content\Routes folder, Drop into that ported over folder and delete everything except the MainContent.ap archive.
Next, you'd copy over the assets the route needs-- ..\Assets\RSC\ECMLS and just as with the route itself, get rid of everything in there except the ECMLSAssets.ap archive. I wouldn't worry about the few rolling stock items that are in there just yet, they're unlikely to have a huge impact.
(replace the above with the route of your choice---if you don't know the GUID or the location of the Assets just ask. Try to pick a pretty self contained RSC/DTG route to start with, no need to complicate things by starting with a freeware route that uses a dozen other routes for the assets. Using something simple (? :o ) is the better way of getting the procedure the "right way up" in your head before tackling something a bit more convouluted)

Before you do anything else, let's do some data collection....fire up Steam, and accurately time how long it takes to load your full version of the game, and then how long it takes to load up ECML-S/whatever you chose in the World Editor from the Build menu. Then do the same for the minimal installation and post both sets of results in here, along with the answers to:

How often do you spend time editing routes---approximately is ample; is it daily, every couple of days etc...
How long does each editing session last?...do you mainly do quick edits, such as raising/lowering vegetation or is it a more involved process involving replacing bigger areas of existing assets with (better) alternatives?

In short, just a rough idea of how long you spend in the editor per week/month, spread over how many loadings of the editor.
gptech
Very Active Forum Member
Posts: 19585
Joined: Fri Oct 10, 2008 5:48 pm
Location: Wakefield, West Yorkshire

Re: Out of memory .Exception oxc0000005

Post by gptech »

chris higgin wrote: I still don't understand how a possibly faulty scenario can stop all of the rest of the routes loading up
Because TS checks the Scenario Database when it starts...you'll see the small print on screen...(your image won't look like that, but the writing will be the same)

Image

If it can't properly check a scenario because it's borked, then it has a hissy fit.
User avatar
peterfhayes
Very Active Forum Member
Posts: 2155
Joined: Mon Sep 26, 2011 5:07 am

Re: Out of memory .Exception oxc0000005

Post by peterfhayes »

So why do we get a OOM when TS2020 is checking, loading, saving the scenario database.

Warning GEEK TECH warning.

When you start railways – Windows loads it into the Virtual address space (VAS) - (to protect Windows if TS crashes). In the case of 64-bit TS20XX the VAS is 8 TERABYTES ((TS20XX – 32-bit under windows 64 gets a MAX of 4GB). 8 terabyes = 8,000,000,000 Kb or 8,000,000,000,000 bytes – big eh!

This stored code is then passed by the OS to the cpu and the working set in the RAM.

The scenario db check starts but as soon as the TS20XX code tries to verify the RAM address of say a corrupt scenario – the address can't be found.

The cpu via the OS then queries if the address is still in the VAS, but it can't be found because the address is "corrupt".

So we get a to and fro from the OS/VAS – cpu – RAM and eventually an Invalid Page Fault is generated – TS20XX crashes with an OOM (Access Violation) and a 0xC0000005 code.

If you have a smaller amount of RAM installed, then the Paging File (Virtual Memory) may be involved and if the RAM had offloaded the "corrupt" address to the PF – it may not be retrievable and an OOM results.

A simple version of what happens in a scenario db corrupt scenario.

pH
gptech
Very Active Forum Member
Posts: 19585
Joined: Fri Oct 10, 2008 5:48 pm
Location: Wakefield, West Yorkshire

Re: Out of memory .Exception oxc0000005

Post by gptech »

….got to love the use of the word "simple" there Peter :o :wink:
johnrossetti
Very Active Forum Member
Posts: 2542
Joined: Wed Mar 14, 2007 9:47 pm
Location: Same place as last time

Re: Out of memory .Exception oxc0000005

Post by johnrossetti »

Apologies everyone, its RW Info that does what I described.
Old age (75) is, I think taking it's toll on my memory. **** :(
Cheers John
Locked

Return to “[TS] General Discussion”