Crash on Project Exit Fatal Error

Several days ago, whenever I exit my project, it crashes. UE4.26 does not crash, so I am able to continue working on the project, but I do not want my project to have issues closing down when it’s properly built.

It does not always happen on exiting (I always exit by clicking on “Exit” in my pause or main menu), making it somewhat intermittent and hard to pin down. It does happen probably 75% of the time on exiting. The fatal error is:

EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000000000

Is the project trying to read something that has not been assigned, or is null perhaps? Any tips on where to start digging would be appreciated. Excerpt is below, with full log attached after.

[2021.10.21-19.07.43:879][450]LogWindowsTextInputMethodSystem: Display: IME system deactivated.

[2021.10.21-19.07.43:881][450]LogWindowsTextInputMethodSystem: Display: IME system deactivated.

[2021.10.21-19.07.46:187][450]LogWindows: Error: === Critical error: ===

[2021.10.21-19.07.46:187][450]LogWindows: Error:

[2021.10.21-19.07.46:187][450]LogWindows: Error: Fatal error!

[2021.10.21-19.07.46:187][450]LogWindows: Error:

[2021.10.21-19.07.46:187][450]LogWindows: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000000000

[2021.10.21-19.07.46:187][450]LogWindows: Error:

[2021.10.21-19.07.46:187][450]LogWindows: Error: [Callstack] 0x00007ffb09792da5 msctf.dll!UnknownFunction []

Full log attached. link text

It looks like an order of destruction problem to me, something is being uninitialized while something else is still attempting to call it. You’ll have to do some debugging to figure out what is still trying to access things during uninitialization of the game. Remember you can use functions like EndPlay to shutdown Actors / Components gracefully. :slight_smile:

1 Like

It turns out it was a Steam plugin crashing, and this has been fixed recently by the devs of the plugin. Carry on and thanks for the answer!

I’ve got the same crash in 4.26 on game quit (or standalone mode). I’ve found out that if I uncheck “Use Borderless Window” in project settings, everyting works

1 Like

Big thanks for posting this Andrew, fixed my problem right up! No Idea how I would have found out that setting would fix it without this post

For other people, I started getting this crash happening on closing down shipping builds seemingly out of nowhere. No idea what triggered it. I had just started localising my game and been using Standalone Game from editor, so maybe that caused it.

1 Like