Announcement

Collapse
No announcement yet.

My UE4 game crashes with Assertion failed: !AllocationFlags[Index]

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    [OCULUS] My UE4 game crashes with Assertion failed: !AllocationFlags[Index]

    Hello,

    Been working on a game for Quest a month now and started to have a very strange issue. Sometimes when I run my game after loading it to Quest it simply crashes and drops me back to the menu. It seems to happen at random, meaning sometimes I can play for 10 seconds, other times for 30 min.

    I keep getting one of these two errors:
    Code:
     Assertion failed: Index < GetMaxIndex() [File:D:/P4Workspaces/Switch_3/Engine/Source/Runtime/Core/Public/Containers/SparseArray.h] [Line: 86]  LogAndroid: Error: === Critical error: === LogAndroid: Error:  LogAndroid: Error: Assertion failed: Index < GetMaxIndex() [File:D:/P4Workspaces/Switch_3/Engine/Source/Runtime/Core/Public/Containers/SparseArray.h] [Line: 86]  LogAndroid: Error:  LogAndroid: Error: [Callstack] 0x00000000C520E2A0 libUE4.so(0x00000000039E82A0)!FDebug::CheckVerifyFailedImpl(char const*, char const*, int, char16_t const*, ...)  [] LogAndroid: Error: [Callstack] 0x00000000C92BFDD0 libUE4.so(0x0000000007A99DD0)!void FDebug::CheckVerifyFailed<char16_t [1]>(char const*, char const*, int, char16_t const (&) [1])  [] LogAndroid: Error: [Callstack] 0x00000000C62680C0 libUE4.so(0x0000000004A420C0)!TSparseArray<TSetElement<TTuple<FPrimitiveSceneInfo*, int> >, TSparseArrayAllocator<FDefaultAllocator, FDefaultBitArrayAllocator> >::AllocateIndex(int)  [] LogAndroid: Error: [Callstack] 0x00000000C6267C9C libUE4.so(0x0000000004A41C9C)!FSetElementId TSet<TTuple<FPrimitiveSceneInfo*, int>, TDefaultMapHashableKeyFuncs<FPrimitiveSceneInfo*, int, false>, FDefaultSetAllocator>::Emplace<TPairInitializer<FPrimitiveSceneInfo*&, int&&> >(TPairInitializer<FPrimitiveSceneInfo*&, int&&>&&, bool*)  [] LogAndroid: Error: [Callstack] 0x00000000C624E230 libUE4.so(0x0000000004A28230)!FLateUpdateManager::GatherLateUpdatePrimitives(USceneComponent*)  [] LogAndroid: Error: [Callstack] 0x00000000C6245810 libUE4.so(0x0000000004A1F810)!FLateUpdateManager::Setup(FTransform const&, USceneComponent*, bool)  [] LogAndroid: Error: [Callstack] 0x00000000C721FDC0 libUE4.so(0x00000000059F9DC0)!UCameraComponent::GetCameraView(float, FMinimalViewInfo&)  [] LogAndroid: Error: [Callstack] 0x00000000C706D9B0 libUE4.so(0x00000000058479B0)!AActor::CalcCamera(float, FMinimalViewInfo&)  [] LogAndroid: Error: [Callstack] 0x00000000C7A1A06C libUE4.so(0x00000000061F406C)!APlayerCameraManager::UpdateViewTargetInternal(FTViewTarget&, float)  [] LogAndroid: Error: [Callstack] 0x00000000C7A1AB04 libUE4.so(0x00000000061F4B04)!APlayerCameraManager::UpdateViewTarget(FTViewTarget&, float)  [] LogAndroid: Error: [Callstack] 0x00000000C7A1C480 libUE4.so(0x00000000061F6480)!APlayerCameraManager::DoUpdateCamera(float)  [] LogAndroid: Error: [Callstack] 0x00000000C7A1BADC libUE4.so(0x00000000061F5ADC)!APlayerCameraManager::UpdateCamera(float)  [] LogAndroid: Error: [Callstack] 0x00000000C76BA460 libUE4.so(0x0000000005E94460)!UWorld::Tick(ELevelTick, float)  [] LogAndroid: Error: [Callstack] 0x00000000C751B998 libUE4.so(0x0000000005CF5998)!UGameEngine::Tick(float, bool)  [] LogAndroid: Error: [Callstack] 0x00000000C4A1C4D8 libUE4.so(0x00000000031F64D8)!FEngineLoop::Tick()  [] LogAndroid: Error: [Callstack] 0x00000000C4A132F4 libUE4.so(0x00000000031ED2F4)!AndroidMain(android_app*)  [] LogAndroid: Error: [Callstack] 0x00000000C4A22B30 libUE4.so(0x00000000031FCB30)!android_main()  [] LogAndroid: Error: [Callstack] 0x00000000C4A43DB8 libUE4.so(0x000000000321DDB8)![Unknown]()  [] LogAndroid: Error: [Callstack] 0x00000000E7C5C8D4 libc.so(0x00000000000478D4)![Unknown]()  [] LogAndroid: Error: [Callstack] 0x00000000E7C2EFE6 libc.so(0x0000000000019FE6)![Unknown]()  []
    Code:
     Assertion failed: !AllocationFlags[Index] [File:D:/P4Workspaces/Switch_2/Engine/Source/Runtime/Core/Public/Containers/SparseArray.h] [Line: 87]  LogAndroid: Error: === Critical error: === LogAndroid: Error:  LogAndroid: Error: Assertion failed: !AllocationFlags[Index] [File:D:/P4Workspaces/Switch_2/Engine/Source/Runtime/Core/Public/Containers/SparseArray.h] [Line: 87]  LogAndroid: Error:  LogAndroid: Error: [Callstack] 0x00000000C35CF220 libUE4.so(0x00000000039E5220)!FDebug::CheckVerifyFailedImpl(char const*, char const*, int, char16_t const*, ...)  [] LogAndroid: Error: [Callstack] 0x00000000C76836C0 libUE4.so(0x0000000007A996C0)!void FDebug::CheckVerifyFailed<char16_t [1]>(char const*, char const*, int, char16_t const (&) [1])  [] LogAndroid: Error: [Callstack] 0x00000000C462B8E8 libUE4.so(0x0000000004A418E8)!TSparseArray<TSetElement<TTuple<FPrimitiveSceneInfo*, int> >, TSparseArrayAllocator<FDefaultAllocator, FDefaultBitArrayAllocator> >::AllocateIndex(int)  [] LogAndroid: Error: [Callstack] 0x00000000C462B474 libUE4.so(0x0000000004A41474)!FSetElementId TSet<TTuple<FPrimitiveSceneInfo*, int>, TDefaultMapHashableKeyFuncs<FPrimitiveSceneInfo*, int, false>, FDefaultSetAllocator>::Emplace<TPairInitializer<FPrimitiveSceneInfo*&, int&&> >(TPairInitializer<FPrimitiveSceneInfo*&, int&&>&&, bool*)  [] LogAndroid: Error: [Callstack] 0x00000000C4611A0C libUE4.so(0x0000000004A27A0C)!FLateUpdateManager::GatherLateUpdatePrimitives(USceneComponent*)  [] LogAndroid: Error: [Callstack] 0x00000000C4608FE0 libUE4.so(0x0000000004A1EFE0)!FLateUpdateManager::Setup(FTransform const&, USceneComponent*, bool)  [] LogAndroid: Error: [Callstack] 0x00000000C55E3490 libUE4.so(0x00000000059F9490)!UCameraComponent::GetCameraView(float, FMinimalViewInfo&)  [] LogAndroid: Error: [Callstack] 0x00000000C5431080 libUE4.so(0x0000000005847080)!AActor::CalcCamera(float, FMinimalViewInfo&)  [] LogAndroid: Error: [Callstack] 0x00000000C5DDD83C libUE4.so(0x00000000061F383C)!APlayerCameraManager::UpdateViewTargetInternal(FTViewTarget&, float)  [] LogAndroid: Error: [Callstack] 0x00000000C5DDE2D4 libUE4.so(0x00000000061F42D4)!APlayerCameraManager::UpdateViewTarget(FTViewTarget&, float)  [] LogAndroid: Error: [Callstack] 0x00000000C5DDFC50 libUE4.so(0x00000000061F5C50)!APlayerCameraManager::DoUpdateCamera(float)  [] LogAndroid: Error: [Callstack] 0x00000000C5DDF2AC libUE4.so(0x00000000061F52AC)!APlayerCameraManager::UpdateCamera(float)  [] LogAndroid: Error: [Callstack] 0x00000000C5A7DB18 libUE4.so(0x0000000005E93B18)!UWorld::Tick(ELevelTick, float)  [] LogAndroid: Error: [Callstack] 0x00000000C58DF050 libUE4.so(0x0000000005CF5050)!UGameEngine::Tick(float, bool)  [] LogAndroid: Error: [Callstack] 0x00000000C2DDF340 libUE4.so(0x00000000031F5340)!FEngineLoop::Tick()  [] LogAndroid: Error: [Callstack] 0x00000000C2DD615C libUE4.so(0x00000000031EC15C)!AndroidMain(android_app*)  [] LogAndroid: Error: [Callstack] 0x00000000C2DE5998 libUE4.so(0x00000000031FB998)!android_main()  [] LogAndroid: Error: [Callstack] 0x00000000C2E06C20 libUE4.so(0x000000000321CC20)![Unknown]()  [] LogAndroid: Error: [Callstack] 0x00000000E69248D4 libc.so(0x00000000000478D4)![Unknown]()  [] LogAndroid: Error: [Callstack] 0x00000000E68F6FE6 libc.so(0x0000000000019FE6)![Unknown]()  []
    I thought I coded something funny. So started a clean project and still getting the same issue.

    Configuration for the project was followed by this video: https://www.youtube.com/watch?v=jlcj4HB9LX8

    + this issue was encountered by numerous other people as represented in this ticket: https://issues.unrealengine.com/issue/UE-73467

    I don't know what to do anymore. Running a clean project and still getting it. Any suggestions, ideas, debug ideas are welcome!

    Thank you!

    #2
    Anyone have ANY idea?

    Here's a strange thing: if for the first minute after starting the game I move very slowly it seems to work after then fine!

    Comment

    Working...
    X