Jump to content
Sign in to follow this  
cianpars

Memory cannot be referenced

Recommended Posts

After 3 or 4 hours of flying, I am still finding msfs crashing with the above warning.  After 2 years and countless fixes and updates why has this issue, which I am assuming is a memory leak not been fixed?

It's not as if it hasn't been mentioned hundreds of times now.  Has the sim update beta addressed it?


Ryzen 5800X3D, Nvidia 3080 - 32 Gig DDR4 RAM, 1TB & 2 TB NVME drives - Windows 11 64 bit MSFS 2020 Premium Deluxe Edition Resolution 2560 x 1440 (32 inch curved monitor)

Share this post


Link to post
Share on other sites
6 minutes ago, cianpars said:

After 3 or 4 hours of flying, I am still finding msfs crashing with the above warning.  After 2 years and countless fixes and updates why has this issue, which I am assuming is a memory leak not been fixed?

It's not as if it hasn't been mentioned hundreds of times now.  Has the sim update beta addressed it?

I had CTDs related to memory problems with MSFS. I ran MemTest overnight and MemTest showed failures in the test.  In the end, the fault was a combination of my memory and my CPU - my CPU, the  i5-12400, could not support the frequency stated on the box of my memory (3600 Mhz), with the motherboard that I had purchased.  I had to turn down my memory's frequency and since then, MSFS has been stable for me.  You can read my full report with all the details here: 

If you read my report in the link above, you will see that MSFS magnified the CTDs for me (probably because it stresses out your entire system more so than other games).

Suggest you run MemTest overnight to check your system, if you haven't yet (if you have run MemTest and your system didn't show any memory errors in the overnight test, then it's probably another issue).

Edited by abrams_tank
  • Like 1

i5-12400, RTX 3060 Ti, 32 GB RAM

Share this post


Link to post
Share on other sites

Thanks Abrams_tank, that's both interesting and helpful.  My CPU, CPU and RAM are all running at stock speeds, but I will run memtest for a few hours and see if anything crops up.

Apart from a memory leak, I suppose my system might not like the LOD at 400 for longer periods, though since I was flying over the Atlantic Ocean, I don't suppose too much graphics rendering was going on.

For info, I'm running a 5600X, RTX3080 and 32 GB RAM at a rez of 1440 (2k).

  • Like 1

Ryzen 5800X3D, Nvidia 3080 - 32 Gig DDR4 RAM, 1TB & 2 TB NVME drives - Windows 11 64 bit MSFS 2020 Premium Deluxe Edition Resolution 2560 x 1440 (32 inch curved monitor)

Share this post


Link to post
Share on other sites
9 minutes ago, cianpars said:

Thanks Abrams_tank, that's both interesting and helpful.  My CPU, CPU and RAM are all running at stock speeds, but I will run memtest for a few hours and see if anything crops up.

Apart from a memory leak, I suppose my system might not like the LOD at 400 for longer periods, though since I was flying over the Atlantic Ocean, I don't suppose too much graphics rendering was going on.

For info, I'm running a 5600X, RTX3080 and 32 GB RAM at a rez of 1440 (2k).

Yeah, the MemTest should help.  All I can say about MSFS is, it will take the smallest instability with your system, and then pry it open with a wrecking ball.  My system was perfectly stable if I wasn't playing games.  And even for the games I played, the only other game that gave me a memory error was Age of Empires 4 and that was like 1 game out of 10 games, it didn't even happen often for Age of Empires 4.  But I suppose MSFS stresses your system much more, so the slightest instability will cause a CTD.

BTW, even when I did the MemTest, it took about 10 to 15 minutes before the MemTest failed. I think the first 5 to 6 tests run by MemTest all passed. It was something like the 7th or 8th test that finally failed.

  • Like 1

i5-12400, RTX 3060 Ti, 32 GB RAM

Share this post


Link to post
Share on other sites
3 hours ago, cianpars said:

After 2 years and countless fixes and updates why has this issue, which I am assuming is a memory leak not been fixed?

I think folks commonly have a misconception about what this bug is, and assume that it can be fixed atomically by finding a single root cause.

The reality is, the "memory cannot be referenced" error means that the program tried to access some variable in its code and found the variable was missing or overwritten. This can literally be _any_ variable in _any_ part of the code. Amongst literal millions of lines of code, you could be chasing down thousands of these that may happen almost never, or almost all the time, and they all depend on the conditions of the surrounding code and data. They may also be entirely out of your code, when something downstream in some driver brings bad wrong or bad data into a variable, and then your code tries to access it.

It's a super common and often crazy complex issue to diagnose and debug in modern size codebases, the proverbial needle in a haystack, except the needle moves when you start searching through the haystack, and may remove or add other needles as you go, some or all or none of which may be the needle you're actually looking for.

-Matt

  • Like 6

Share this post


Link to post
Share on other sites

In my case, this error was due to a bad overlock on my GPU.  The overclock was perfectly stable in a few other games I play, but not MSFS.  Turning off the overclock immediately solved my problem.  I've since dialled it back and seem to be running stable again with a bit of an OC.

If you've been around awhile, you may recall back in the 80s, there were a lot of clone PCs flooding the market and it was a common test then to determine if any given clone was truly PC compatible... Could it run Microsoft Flight Simulator? LOL.

To this day, it still seems like MSFS stresses hardware in many ways other games and applications don't.

  • Like 2

Share this post


Link to post
Share on other sites
4 hours ago, cianpars said:

After 3 or 4 hours of flying, I am still finding msfs crashing with the above warning.  After 2 years and countless fixes and updates why has this issue, which I am assuming is a memory leak not been fixed?

It's not as if it hasn't been mentioned hundreds of times now.  Has the sim update beta addressed it?

I literally just had this this morning.  I hope it was random.  Maybe it is a server issue?

Or maybe it's my vram or ram dying already.

  • Like 1

| FAA ZMP |
| PPL ASEL |
| Windows 11 | MSI Z690 Tomahawk | 12700K 4.7GHz | MSI RTX 4080 | 32GB 5600 MHz DDR5 | 500GB Samsung 860 Evo SSD | 2x 2TB Samsung 970 Evo M.2 | EVGA 850W Gold | Corsair 5000X | HP G2 (VR) / LG 27" 1440p |

 

 

Share this post


Link to post
Share on other sites

I got it occasionally before SU10 Beta, but have not seen it since.And in my case it only started after SU9. I had never seen it before.

  • Like 1

AMD Ryzen 7 5800x3d, MSI X570 Pro, 32 gb DDR4 3600 ram, Gigabyte 6800 16gb GPU, 1x 2tb Samsung  NvMe , 2x 1tb Sabrent NvME, 1x Crucial SSD,

Share this post


Link to post
Share on other sites
5 minutes ago, ryanbatc said:

I literally just had this this morning.  I hope it was random.  Maybe it is a server issue?

Or maybe it's my vram or ram dying already.

If this is your first time and it doesn't happen again, maybe not worth worrying about. It could be a waste of time trying to track it down.  If it pops up again or consistently, and you've got latest drivers, re-installed the sim lately, etc. then you could start looking at hardware.  Your GPU IS getting a bit long in the tooth. 

  • Like 2

Share this post


Link to post
Share on other sites
8 minutes ago, Virtual-Chris said:

If this is your first time and it doesn't happen again, maybe not worth worrying about. It could be a waste of time trying to track it down.

Some good advice there

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...