I’ve been facing very inconsistent crashes in my packaged build when I load a level. Even when transitioning between the same two levels, my application crashes maybe 1 out of 10 times. Everything works fine in Editor. I am attaching a snip of the call stack that I recovered from the minidump
I am using UGameplayStatics::OpenLevel. The crash is probably occurring while unloading the previous level. I can see GollectGarbage() being called in the stack. The final crash occurs in LinkerLoad::Detach().
LinkerRoot->LinkerLoad = nullptr; LinkerRoot = nullptr;
I have been trying to identify the problem, but with no success.