REGoth
REGoth copied to clipboard
Game crash when unloading world (~WorldInstance)
- Crash1:
Game crashes from time to time (branch: master).
The longer the game runs, the more likely it seems to happen.
At least confirmed on G2 Newworld after running around a lot and collecting a few items.
Assertion Fail:
REGoth: .../REGoth/src/memory/StaticReferencedAllocator.h:146: T& Memory::StaticReferencedAllocator<T, NUM>::getElement(const typename T::HandleType&) [with T = Components::EntityComponent; unsigned int NUM = 131072u; typename T::HandleType = Memory::GenericHandle<24, 8, 5>]: Assertionm_InternalHandles[h.index].m_Handle.generation == h.generation' failed.`
Here is the Stacktrace (notice ~ModelVisual is appearing twice):

- Crash2:
Another different crash appears from
~WorldInstancewhen controlling another NPC (via Console) and leaving the game. This crash can be easily reproduced. Another way to trigger this crash is to insert any npc viainsertnpcvia console and leaving the game.