REGoth icon indicating copy to clipboard operation
REGoth copied to clipboard

Game crash when unloading world (~WorldInstance)

Open markusobi opened this issue 7 years ago • 0 comments

  • 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>]: Assertion m_InternalHandles[h.index].m_Handle.generation == h.generation' failed.`

Here is the Stacktrace (notice ~ModelVisual is appearing twice): regoth-worldinstance-crash

  • Crash2: Another different crash appears from ~WorldInstance when 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 via insertnpc via console and leaving the game.

markusobi avatar Oct 01 '17 16:10 markusobi