Hi all started getting this crash whenever I try to play my project, I haven’t changed any code and everything has been working fine so I have no idea where it’s come from. Last thing I did was place a few lights down in my level, tried deleting them but still getting it.
It’s crashing in your code. BeginPlay in Demo_FSM_V1GameMode.cpp. What’s in there?
Mine is doing this when rotating the camera too quickly in a specific area of the map. It only happens in lit mode. The last changes were changing the skylight to movable mobility (which enabled DFAO). I have a large terrain in the scene, with a dynamic sunlight, but the crash is happening specifically in an indoor location.
There is an update to my last comment. It seems that the fix must have something to do with the cache history, or build data file, somehow. This was crashing when in lit or reflection capture mode, but not in unlit mode. It specifically occurred when entering a unique blueprint/static mesh heavily populated area of the map.
The fix: In unlit mode (from another startup map. This may be more tricky if your startup map is the problem one, in which you’d have to change the default startup map in one of your config files of your project)> open the new map>turn off a couple of sublevel visibilities which contained those unique actors>switch to lit mode>pilot the viewport camera around>update an arbitrary/non-destructive lighting change (so won’t ruin your lighting build), such as skylight intensity>switch to unlit mode>enable the other sublevels>rmb and select all actors of matching class for the most broad of unique actors (like a custom BP which is being used everywhere). Mainly, wanting to hide as many actors at a time–but leaving the biggest ones>switch to lit mode>pilot the camera around to prove it’s not crashing>unhide all objects>pilot the camera around in an area which is close–but not too close–to the problem area. If it has not crashed>save all levels and close the editor, to capture that fixed state. When re-opening the editor, hopefully the issue is gone for good. It is best if the camera location is somewhere non-taxing (without many complex details on screen, or in front of a simple wall, etc.). This is the location which will be stored for next load.
*Note: This is still happening sometimes, when G is pushed to switch from lit to unlit mode, or vice-versa. Still seems related to tons of objects in the scene with DFAO enabled.
*04/04/21 Update: After many tests, the main reason for this crash is for dynamic shadows on movable actors. There are only around 1,000 of them, total, in the map. Still trying to find the best solution. Putting the BG landscape into its own sublevel and hiding helps, but the crash still occurs every now and then. Crash occurs when game view is enabled/disabled quickly in lit mode.