MSFS 2020 Crash To Desktop while loading [SOLVED]

This message is for you if your Flight Simulator crashes during loading. Mine had always worked perfectly until December, when it started crashing during loading. I spent almost a month with Microsoft support and tried everything, even at a hardware level, only to discover on my own that the issue was caused by the EDR antivirus.

This next-generation antivirus, in order to keep up with threats, introduced a new technology called Code Injection, which uses anti-exploit techniques to detect exploit attempts in running processes. Now, EVEN IF YOU DISABLE the antivirus, this process remains active in the background and crashes MSFS 2020 without any signal, logs… Although I don’t know the exact technical details, it seems to be related to add-ons, particularly aircraft like the A320 V.2 by Asobo.

The solutions are:

Remove the agent or create an exception for flightsimulator.exe – I chose the second option, and it works.

I hope this helps and makes up for all the swear words I’ve said over the past month

5 Likes

A possibility is something related to WASM or a addon that runs outside of the sim. Did you try to disable the Community folder also?

1 Like

Great detective work!

2 Likes

Great detective work indeed @FabCro7261! Is this agent related to Microsoft Defender for Endpoint?

2 Likes

I’m curious about this as well. I don’t use any EDR software on my gaming system.

1 Like

yes of course, in one month of debugging I tried everything

1 Like

No it was not and I guess happens the same with other vendors using similar technologies - after exception inserted now works like a chime

1 Like

But you say it is related to Asobo’s A320 V.2 and has to do with code injection. I asked this because this seems to be related to wasm and I wonder why this isn’t happening on the console. What Antivirus is it exactly?

1 Like

I had to read that about three times to make sure that my eyes weren’t playing tricks on me.

Code injection??!!!  That’s scary.

Anti-virus programs are now acting like the viruses we’re trying to eliminate.

:man_facepalming:

I can think of about a half-dozen programs that would fail anti-piracy validation because of this.

(Shakes head in wonder.)

The EDR is WatchGuard, but I don’t think it’s their issue. Their support was fantastic and found the issue in half a day. I can only raise one point against them: there are no logs, no messages, and no alerts indicating what is happening.

I believe the issue comes from how MSFS is designed. I can understand that something could go wrong and you wouldn’t know why. All the mess started after I installed some aircraft, like the Beechcraft and A320 v.2 by Asobo.

If you install content from the marketplace and it causes a problem, there is NO WAY to roll it back and uninstall it if the game does not start. If you go into the official folder and manually remove it, the next time you start the game, it reloads it, and there is no way to block it. This is a weird software design, in my opinion.

1 Like

No, it is an anti “code injection” technology does not mean they inject code but they try to identify if someone did it

1 Like

Many years ago, (in the '90s?), I read a quote (somewhere), by one if the Reigning Gods of computer science that said:

After reading someone’s snarky quip:  “It’s not a bug, it’s a feature!” he said;

1 Like

I’m pretty sure it’s their scanning. They should whitelist the file that causes their app to trigger. But if it doesn’t log what files are causing issues I dont know, seems a bit weird.

1 Like

Great quote

1 Like

because if you “disable” the AV it stops to log even if anti code injector remain active - yes definetively wrong has to be fixed somehow.

1 Like

Hmmm… :thinking: Not sure how you came to this conclusion?

1 Like

You can delete - go to Official > Onestore :wink:

on restart it loads it again

1 Like

Hey, I was just wondering how exactly do I create an exception for flightsimulator.exe? Is that just something I do through the Virus & threat protection section in my windows settings?

If you’re talking about your anti-virus software, you open its main dialog screen and there should be a “settings” tab/icon.  Within settings there should be a way to create exceptions.

I haven’t had this kind of problem in the past with MSFS, but if I did, I would except:

  1. C:\XboxGamesC:
  2. C:\Users[username]\AppData\Local\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe[1]
  3. Wherever MSFS2024 is located.[1]
  4. If you’ve moved your community folder, wherever that’s located.
  5. Any 3rd party packages in either . . .AppData\Local or . . .AppData\Roaming.
    (I have several, Aerosoft, GotFriends, PMDG, etc.)
  6. Wherever any third-party application packages are located.  Some 3rd parties install aircraft in their own directories, and include necessary dependencies that may be located other places.

==================== Footnotes ====================

  1. This assumes that you installed everything in the default locations.  If you’ve installed anything anywhere else, (be especially aware of 3rd party add-ins, they can install other places), you might need to create exceptions for them too.