Pure virtual function being called only on packaged project

I am getting the following errors on a project only when playing after packaging. I have no errors when playing in PIE.

Pure virtual function being called while application was running (GIsRunning == 1).

Fatal error: [File:D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\Windows\WindowsPlatformMisc.cpp] [Line: 439]
Pure virtual function being called

This seems to happen when loading a new level, and not all the time. The game is made entirely from blueprints and I have been racking my brain for days looking through forums for a solution.
Can anyone help me understand the Log file. I can not for the life of me understand where this error is comming from…
MattProject_01.log (253.6 KB)

This error seems to be always leaving my Menu screens as it loads a new game map. The game has a roguelike structure with only one game map that is populated with procedurally generated content.

I tried making a basically empty map and the error seems to have gone away. I have been able to test it many times without the pure virtual function crash.

It seems like the problem with with the content I am spawning in my map.

I can’t see anything in the log file that points to a specific Actor or Function that is failing.

Any ideas?

I think it could be that you are loading a widget onto your viewport on begin play. For some reason in packaged projects (at least for me), whenever I do this, there is a good chance of that exact error. I delayed my player hud from loading for a frame and thus far, the error has not relapsed.

I think the more stuff you have loading in, the more of a chance this will be a problem. So that’s probably why the empty map worked more frequently for you. It was similar in my situation.