Out of memory .Exception oxc0000005

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

Moderator: Moderators

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 »

JohnM1945 wrote:Let's hope that TS2021 (or, even, 'TS2020 Enhanced') reverses some of the not-so-smart changes introduced with TS2020 Beta.
I have to take a little exception to that John: just because you seem to be having bother doesn't mean it's a problem inherent to TS2020. Any update to any program will prove problematic for somebody-- I doubt you can expand on/justify why you see TS2020 as a Beta release,
The configuration of, and how we use, the game probably has more relevance than the standard of the hardware we're using--a singly corrupt .bin file will bring the most powerful PCs to their knees--and as the majority of folk seem to be having no huge issues the place to look is much closer to hoe,

This thread seems to demonstrate that it's how the Steam system works (Workshop scenario download/install) that's cause the problem experienced by Chris, and whilst I'd agree that DTG should be pressing Steam to investigate it ain't a TS2020 problem.
JohnM1945 wrote:Using Task Manager to see what's running in the background, there seem to be lots of STEAM (tm) and other tasks there.
So what have you authorised to run? Are you running with Steam on-line?, and if so do you really need Steam to be on-line? What other, seemingly unrelated to Steam, processes are running?
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 »

Sorry it was not my intention to single any one person out, Without members input I would have packed TS in some time ago, this last problem I do not think I would have ever solved .
So thanks again to all members for the help and advice.

Chris H
riggs386
Getting the hang of things now
Posts: 41
Joined: Wed May 08, 2013 10:38 am

Re: Out of memory .Exception oxc0000005

Post by riggs386 »

I never had this problem until last October. I'd been running TS on an old Fujitsu Siemens with integrated graphics card, Windows 7 OS - not ideal, but all I could afford until last year, when I splashed out on a gaming laptop: Asus FX504, Intel 8th Gen i7, 16Gb ram 1TB + 256Gb solid drives, Nvidia 1060 6GB graphics card. Not top of the range, but far better than the Fujitsu, for gaming. I'd had it a week, when I started getting the 'out of memory' error. No matter what I tried, the problem persisited - but usually when I'd been in and out of the game a few times, editing route/scenario. I returned the laptop and the store gave me a full refund (thanks laptop outlet.) As support was ending for Windows 7 and I use the Fujitsu for general work, I updated it to Windows 10. ...And immediately started getting exactly the same problem.

To say I was miffed hardly covers it: I'd returned a perfectly good, decent spec gaming machine, and can't find anything like that spec for the money I paid then (£900.) Not only that - I know I'm going to get exactly the same problem, whatever machine I get. I've looked elsewhere and have been reliably informed that it's a Windows glitch - something to do with memory not being reallocated after a program/ function has stopped using it or something. Then again - no matter what other prog I use - Autocad/ Excel/Word/Paintshop/ Video editing software, or how many I'm using at once - I never get any problems. So maybe some incompatibility issue between Windows 10 and TS 2020?

Now, if I'm using TS 2020, I make it the first program I run. If I've edited a scenario or route more than once, before I run the scenario, I have to restart the machine, to be certain it won't crash - which is a pain. On Windows 7, there was a short program you could run to clear the memory. It doesn't do a thing on Windows 10. I contacted DTG for support - they won't even guarantee support for top spec gaming machines, let alone anything else. I don't run TS 2020 much now - it's too frustrating - and the chances of me spending over £1000 on another laptop, knowing I'm going to get the same problem, are zero.

Microsoft have commented on another site that the game developer (DTG) is "keeping very quiet. " I suppose DTG - if they ever acknowledge there's a problem, which seems unlikely - will doubtless say the same about Microsoft.
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 »

riggs386 wrote:I know I'm going to get exactly the same problem, whatever machine I get
Do you still have the game in C:\Program Files(x86)\Steam\SteamApps\common\Railworks?
riggs386 wrote:So maybe some incompatibility issue between Windows 10 and TS 2020?
Possibly, but that incompatibility may be due (in part at least) to how you've configured things/use things. If it was a core level issue within TS2020 then we'd all have the problem. I'll agree that the game doesn't seem to be as stable in the editor than it was, but not to the level you're describing--I do plenty of editing/messing about with things and have never needed to re-boot my PC to ensure TS runs OK.
What are the full specs of the PC you're using?---running Win 10 on a machine that isn't up to the job can't be DTG's fault.
JohnM1945
Very Active Forum Member
Posts: 1167
Joined: Fri Feb 10, 2012 12:27 pm

Re: Out of memory .Exception oxc0000005

Post by JohnM1945 »

Hi, Gary!

I've just seen your post: gptech on Tue Dec 31, 2019 11:46 pm. (See above...)

You ask some good questions about the optimisation of my particular setup - which I'll mull over and explore.

However...

It is the case that I did not have problems of this nature operating under TS2019.

It is the case that - like most PC users - I expect my PC to handle a wide variety of tasks.

It is not the case that DTG have warned me that their TS2020 software now requires a dedicated PC or particular cosseting.

It is not the case that DTG have issued any advice on steps that need to be taken or conditions that need to be provided if TS2020 is to function acceptably.

And so...

One can reasonably argue that DTG have a duty of care to their paying customers. That's not just a moral issue. In law, any product offered for sale MUST demonstrate FITNESS FOR PURPOSE.

We - all of us - can expect, at the very least, not only a frank apology for the manifest fragility of the TS2020 product in the hands of the non-technical user but also a continuously-evolving 'fixes for glitches' document suited to the capabilities of the non-technical user, to be maintained by DTG, to be issued to all customers and to be backed by a user-friendly support service.

And, yes, I know that much software is held together by prayer and baler twine. And I know that the maxim 'Caveat Emptor' - let the buyer beware - applies. Nevertheless, I think we all have the right to expect candour, contrition and co-operation from DTG. We've stuck with them for years; we deserve better from a reputable supplier.

Kind regards, and a happy and prosperous New Year, to all.

John M
clarke
Been on the forums for a while
Posts: 110
Joined: Wed Mar 16, 2005 7:18 pm

Re: Out of memory .Exception oxc0000005

Post by clarke »

In relation to Gary's post re: Steam services & steam web helpers, I found an old post when searching the internet re: adding to the steam short cut properties "-no browser". This stops web helpers loading, including "discussions", "workshop" etc

I also run this offline. This cuts out all the steam extra services & still allows Railworks to run.

However I still crash on closing after running several 3rd party routes. I have 16GB Ram & a new (2nd hand} Nvidia 960 GTX graphics card

Kelvin
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 »

Well said John. I too would like DTG to be more open about program problems. But, , I expect they don't want to admit liability, after all when did you ever hear M$ admit to a problem, they just some out with a new fix :(
I am a relatively “new” user of Railworks / Trainsim xxxx (since 2009) and like everyone I also have the odd hiccup with it from time to time.
I rarely offer any technical explanations to what might be going wrong with the game because I’m not as experienced as some here but, one thing I do do is run two versions of the game, my version, with all the third party add-ons and a virgin version, with Steam only downloads and NO third party at all.
If there is a problem, like this subject, the first thing I do is try to replicate it on my virgin version of TS. If I have a problem with my own full version I go to the virgin route (if it has that scenery) and see what happens there.
If you have the space, I do urge you to have a virgin version as well, one tip though, don’t put it on the same drive, or, if you have to, while installing it make sure your Steam directory has another name while you’re running it, then rename the folder to steam depending on which one you want to use. In other words on the same HD you can only have one folder named Steam.
Cheers 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: If you have the space, I do urge you to have a virgin version as well, one tip though, don’t put it on the same drive, or, if you have to, while installing it make sure your Steam directory has another name while you’re running it, then rename the folder to steam depending on which one you want to use. In other words on the same HD you can only have one folder named Steam.
Cheers John
Not strictly true, John. I have my working versions (1 for building and 1 for driving) just in master folders "Railworks32" and "Railworks64" (ie outside any "Steam" folder tree) on the same drive, each with a shortcut on my desktop. My "vanilla" version could be on the same drive (but isn't) and that resides in the "Steam" folder tree, with the Internet shortcut on my desktop. So yes, only one folder named Steam, but several versions of Railworks. Any updates/new DLC that has download to my virgin version is easily copied to my other versions.

Nick

PS I am still using 32bit for building, as in 64bit the game freezes when I try to save track changes on large routes. Simple enough to copy amendments from the "building" to "driving" versions. The building version only contains routes that I am working on, and the Assets do not contain any rolling stock. Very fast loading times!
User avatar
Easilyconfused
Worried about Silent Chickens
Posts: 13205
Joined: Tue Dec 31, 2002 9:06 am
Location: Portsmouth & Bristol
Contact:

Re: Out of memory .Exception oxc0000005

Post by Easilyconfused »

Well Happy New Year to all our members. Sadly, it hasn't taken long for some issues to arise. It does appear several issues have become conflated in this thread although it appears to me that the original issue has been resolved.

The TS2020 shop page lists the minimum and recommended specifications. I am pretty sure it used to have a comment on there that mobile versions of the chipsets may or may not work correctly. In order words the software may not function 100% satisfactorily on laptops. Well we all know that it can and does work on laptops but their store page had that caveat on it for a long time I believe.

Windows 10 is an interesting conundrum itself for home users since it seems to be all but impossible to avoid updates. With Windows 7 you could just turn them off but Microsoft has turned the corner and now Windows is a service. Corporate IT departments have the tools to global stop updates (whether security or the larger feature updates) until they have tested all their software - I will be returning to that battleground when I go back to work.

DTG's obligations are I believe laid out in the EULA accepted on installation. If you believe that they are failing regarding fitness for purpose then feel free to go and engage a lawyer and task them to task. I am sure the lawyer won't mind since they get paid win or lose (you won't find a no-win, no-fee on this one). However, note that the legal question would centre around does the software as supplied work. It's a whole different question when 3rd party add-ons get into the mix and workshop items.

As for a apology - that is never going to happen. Companies generally only make apologies when they really drop the ball like bundling malware into a product etc.

What I would suggest people having specific issues do is log a detailed ticket with DTG explaining step by step what they have done and what the result was. Then wait for a reply. The initial response will likely come from a support script but you got to get past that first.

A quick perusal through the Steam forums shows many links to the articles about moving the entire Steam installation our of C:\Program Files etc. where Windows UAC will keep interfering with what you are trying to do. Does that count as "cossetting"? Maybe so but many game discussion groups keep recommending it since although UAC has been around a long time many are still suspicious that sometimes it gets a little over the top
Kindest regards

John Lewis

Member of the forum moderation team
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 »

Thanks for the info Nick,, as I said, I'm no expert :o
Very relevent thoughts John, but wouldn't it be nice, if once, a company, any company, said sorry :(
Happy 2020 everyone.
John
P.S. I would love a list of just scenery folders !! :lol:
User avatar
Crosstie
Established Forum Member
Posts: 457
Joined: Sun Jul 11, 2004 5:07 pm
Location: The Great Midwest

Re: Out of memory .Exception oxc0000005

Post by Crosstie »

While I have every sympathy for those who are unable to enjoy our favorite game whenever they wish to, it has to be said, from reading all the major forums for over 10 years, that the vast
majority of us play the sim day after day without major issues.
Problems are not caused by the software which, if not perfect, holds up very well for most of us. Individual issues are likely caused by configurations which may be subject to 3rd party
software interference or which do not match recommended specs. (16 GB memory on a desktop, for instance).
I may sound like a "fanboy", probably because I've played the game on an almost daily basis for 10 years+ on a succession of computers
and it has never "fallen over".
Asking a company to "apologize" for software which works well for just about everyone doesn't make any sense.
Again my sympathies. Post on the forums, contact Support, but expect the problem and the solution to be close to home.
Stu
---------------------------------------------
Now, if I could just remember how I did that......
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 am also having this issue at the moment, I'm getting it on the North, South, West London route by Danny (from the Workshop), now even when trying to load it in the route editor with no rolling stock I get the error after about 30 seconds to one minute (even whilst on the 2d map).

What I find my shocking about this is I have just upgraded to 32gb memory so there is no way it could be topping out, I have a TS installed with Windows on a 240gb SSD (separate from everything else on the other HDD) I have also just upgraded my GPU to a 970 and my CPU is an I5 6500 @3.2ghz. It has only been happening (this particular error) as recently as it has been discussed on here, so I do believe something has been modified in the games core that is affecting some people.
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 »

Let's move away from the "it's DTG's fault/no, it's your configuration" *discussion* for a moment and return to the (seemingly) successful part of this thread...
chris higgin wrote:found four scenarios in the otherwise empty route folder, deleted these and downloaded Welsh Marches from Steam started up train sim and the route no problems.
So, if that's the problem fully alleviated, it's nothing to do with anything DTG have/haven't done; strongly suggests that TS2020 isn't merely a Beta release; is something the rest of you with problems should start investigating---are all, not just Workshop, scenarios you've added immediately prior to the problem appearing written *properly*? I've installed scenarios that tip the game over, and upon investigating a bit found that they've not had *proper* "Final Destinations" set, just a last instruction in a list. Putting the dedicated, "Final Destination" instructions in those scenarios has fixed every one. It's a bit of a tricky one this, as I've scenarios without that dedicated instruction which have always run perfectly, and still do, so it's not as black & white as it may seem.
You all need to start looking "closer to home" as Stu put it, and be prepared to find that things that may work for you don't work for the next guy--remember what the 'P' in PC stands for.
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?
johnrossetti wrote: I would love a list of just scenery folders
Do you mean scenario folders John?....if so, RW Tools and NameMyRoute.exe (in your RailWorks folder) will tell you the titles, the route and scenario folder GUIDs for every scenario who's ScenarioProperties.xml file isn't in a .ap archive.
brysonman46 wrote:in 64bit the game freezes when I try to save track changes on large routes
Just out of interest Nick, what's the size (approximately) of the Tracks.bin file in those routes?


OK, so what is error 0xc0000005?
https://answers.microsoft.com/en-us/windows/forum/windows_10-performance/application-error-0xc0000005/6224ae45-a251-4f21-b076-74524618d00a wrote: Aileen Alf
Replied on July 4, 2017

Microsoft Agent
Moderator

Hi,

Application Error 0xc0000005 (Access Violation) error is usually caused by your computer not being able to correctly process the files and settings required to run a particular program or installation. Despite the error showing when youtry and use particular pieces of software, it has many different causes including faulty RAM problems, errors with the files of your PC and issues with the settings of your PC.
Far too vague for anybody to say "oh.. definitely a change DTG have made to the game", though of course we can't rule it out totally but it's not the first, and only, thing to suspect. Consider: if a change has been made to the core of the game which improves one area, but the knock on effect of that is that another area of the game becomes that wee little bit less *forgiving* of improperly constructed (user) content, the answer is for those making what may seem an inconsequential mistake to change their method, not to undo a beneficial change. Software improves, we've all seen that with TS, but we've had to evolve ourselves along the way.
riggs386 wrote:Microsoft have commented on another site that the game developer (DTG) is "keeping very quiet.
Got a link for that?
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 »

Let's get this straight an OOM in TS20XX has NOTHING to do with the amount of RAM installed, or used. It is due to an illegal call to an address in the memory or an address that is not available, already occupied, or restricted, or outside the working set. It can also be caused by a DEP violation and a "corrupt" paging file.
DTG would be better giving us back the "Access Violation" Error, because that is what it is!
A page in the RAM can occupy 4Kb or 2Mb (and up to 1GB) so an extremely small error in coding can result in an OOM (Access Violation) error
If I used the editor regularly:
I would move TS20XX install from C:\Program Files (x86) to another location or drive.
I would turn off UAC whilst editing
Disable DEP whilst editing
Rebuild my Paging File on a regular basis

pH
Last edited by peterfhayes on Thu Jan 02, 2020 11:30 pm, edited 1 time in total.
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 »

gptech wrote:
brysonman46 wrote:in 64bit the game freezes when I try to save track changes on large routes
Just out of interest Nick, what's the size (approximately) of the Tracks.bin file in those routes?
Around 15MB

In 32bit it takes about 60-80s to save when there has been a Tracks.bin amendment. In 64bit it freezes, and I have to close the sim
Locked

Return to “[TS] General Discussion”