C++ Assertion Error

I just started receiving the dreaded C++ Assertion Error whenever I try to start a flight. See this thread here for what I am dealing with:

https://forums.flightsimulator.com/t/solved-microsoft-visual-c-runtime-library-assertion-failed/279475/43

This is marked as solved, but it is most definitely NOT solved. I tried every fix in that thread, and nothing works. Has anyone else figured out how to solve this error? In that thread people have tried reinstalling the game to no avail. Do I have to reinstall Windows, or is there an actual fix for this?

Thanks for any help.

Here is a screenshot of the error. This happens every single time I try to start a flight.

I believe you’re wrong with this. This shows up because the DLL in question is triggering an assert in a piece of code compiled in debug mode. This assertion has nothing to do at all with any development program installed on the end user computer, and even the fact the popup window is showing has nothing to do with it.

It is therefore not fixed because this assertion means there is a bug nonetheless in the DLL… And from the look of it, this might be a bug in a function parsing a file and expecting a certain ā€œformatā€.

6 Likes

I ended up just reformatting my computer and reinstalling MSFS. Everything works fine now. I know these may have been drastic measures, but I was having other issues with constant crashes in VR mode. That seems to have resolved as well. Hopefully things will keep running as smooth as they are now.

I had this problem as well & I used Process Explorer and compared FS 2020 working on a separate Windows install on the same machine vs nonworking FS 2020 on my main Windows 10 partition. Turns out DLLs from FastPictureViewer were loaded by the FlightSimulator.exe process. Once I uninstalled FastPictureViewer, FS 2020 started working.

1 Like

Just updated to the 1.13.16.0, But Assertion failed when loading the fly. Tried to delete some files like some topics’s saying, but found my folders are different.
å¾®äæ”ęˆŖå›¾_20210218181400

Ouch… Either stack####_ are pointers to bytes, or they should remove the sizeof(T) in there, or don’t use signed arithmetic if stackTop_ is higher than stackEnd_ :thinking:

MODERATOR EDIT: This post merged from another topic:

I’ve tried to reinstall the whole sim and reinstall, but it still didn’t work
I’m on the Microsoft Store version.
I’m installed the sim in a custom disk, not using the default one is on"D drive"

I’m still having an issue of unable to control the plane, no throttle and control at all

MODERATOR EDIT: The following 2 posts were merged into this topic.
There is also archive topic here:
https://forums.flightsimulator.com/t/solved-microsoft-visual-c-runtime-library-assertion-failed/279475

Hi Guys, can anyone explain to me the mistake that came out of me?


I can’t get in … does anyone have any explanation?

may be

https://forums.flightsimulator.com/search?q=nativemapclient

i meet the same issue,how to fix it?

This shows up because this DLL, MicrosoftGeospatialTiles.dll is a core module in the game which wasn’t compiled in release mode but debug mode. This assertion means there is a bug nonetheless in the DLL… And from the look of it, this might be a bug in a function parsing a file and expecting a certain ā€œformatā€.

Moreover, this assertion has nothing to do at all with any development program installed on the end user computer, and even the fact the popup window is showing has nothing to do with it.

In short: these is nothing you can do but wait Microsoft releases release mode DLLs instead of debug mode DLLs.

[edited: removed bold text]

1 Like

I have deleted the ā€œRolling Cacheā€. Under General Options>Data.
This worked for me.

Thank you so much for this! I just reinstalled MSFS after a long hiatus and found your post. I would have never figured this out.

1 Like

As @CptLucky8 says …

ASSERT expression are not evaluated in the Release version of a program, so somehow a debug version got distributed.

The question now is — Either Intentionally, or unintentionally ?? :shushing_face:

1 Like

Please tag your post with #pc and/or #xbox. PC

Are you on Steam or Microsoft Store version? Microsoft store

Are you using Developer Mode or made changes in it? no

Brief description of the issue:
Out of the blue I’ve got this message then CTD. Any idea ?

Provide Screenshot(s)/video(s) of the issue encountered:

Detail steps to reproduce the issue encountered:

PC specs and/or peripheral set up of relevant:

Build Version # when you first started experiencing this issue:

Have you made any changes to the default map?
If so, undo those changes, and restart the sim.
If not, remove the file specified. (cut and paste outside of the sim folders, keep them though, just in case) and restart. MSFS will make a new file.

1 Like

may be helpfull existing topic

https://forums.flightsimulator.com/t/solved-microsoft-visual-c-runtime-library-assertion-failed/279475

e.g. in case you have visual studio installed disable debugging stuff…

1 Like

Same problem, solution is to delete C:\Users%your username%\AppData\Local\FlightSimulator and Flightsimulator related files in C:\Users%your username%\AppData\Local\Microsoft\WindowsApps

This solution didn’t work, I still have the same message.

By the way, if I make a research on my D drive for the file indicated on the error message I have a negative exit, whatever I dial (MicrosoftGeoSpatialTiles.dll for example).
Also because the line D:\a\1\s\src is a non existing path on my D drive.