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.

Hi @wushuguy1,
No fix is needed.

This error is because you have Visual Studio installed with debugging on. The error that is throwing to the debugger is ā€œtrappedā€ in MSFS and thrown out. In order to stop VS from trapping it first is to turn off debugging in VS.

1 Like

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"

Also see this Archived topic:
https://forums.flightsimulator.com/t/visual-c-error-message-assertion-error/304953

1 Like

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

Hi, please use another category for that. Do a search in this category:
Latest Bugs & Issues/Aircraft Systems topics - Microsoft Flight Simulator Forums
Thank you.

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?

Hi @HuggableKitty88! Welcome to the forum!
Try disabling any development program you may have that has any real-time debugging turned on.

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