Sometimes my game would crash when I want to open another level. Happens in Shipping, Development, and in Editor. It’s really inconsistent: I can open a lot of different levels like 50 times and it’s fine, and then it will randomly crash. And crash logs are different too. Sometimes it’s something like
Fatal error: [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/RenderCore/Private/RenderingThread.cpp] [Line: 902]
[2022.07.08-16.31.30:956][936]LogWindows: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0xffffffffffffffff
[2022.07.08-16.31.30:956][936]LogWindows: Error: [Callstack] 0x00007ff6d79f0af0 TheGoDUnit.exe!FScene::UpdateAllPrimitiveSceneInfos() []
[2022.07.08-16.31.30:956][936]LogWindows: Error: [Callstack] 0x00007ff6d74389b7 TheGoDUnit.exe!FDeferredShadingSceneRenderer::Render() []
Sometimes:
[2022.07.08-16.03.07:253][449]LogWindows: Error: Fatal error!
[2022.07.08-16.03.07:253][449]LogWindows: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0xffffffffffffffff
[2022.07.08-16.03.07:253][449]LogWindows: Error: [Callstack] 0x00007fff9da0b6d2 PhysX3PROFILE_x64.dll!UnknownFunction []
[2022.07.08-16.03.07:253][449]LogWindows: Error: [Callstack] 0x00007ff6da17bf52 TheGoDUnit.exe!FPhysicsInterface_PhysX::GetCurrentScene() []
[2022.07.08-16.03.07:253][449]LogWindows: Error: [Callstack] 0x00007ff6da0ee1b1 TheGoDUnit.exe!FBodyInstance::TermBody() []
[2022.07.08-16.03.07:253][449]LogWindows: Error: [Callstack] 0x00007ff6d9d3defe TheGoDUnit.exe!UInstancedStaticMeshComponent::ClearAllInstanceBodies() []
So it doesn’t refer to any of my custom classes, therefore I don’t know where to look. Since it happens in the same place but logs absolutely different errors, it makes me think the actual error is not in PhysX or RenderCore, but that’s just an assumption.
I understand it’s a long shot, but maybe someone has encountered anything like it. Thank you!