Oculus quest 2 crash after 6 LoadScene

Hi, on unity the app crashes after 6 LoadScene.
Oculus plugin 1.5.1

Code:
SceneManager.LoadScene(CostantsOfGame.startScene, LoadSceneMode.Single);

Unity version 2019.4.27f.

Anyone can help me?

How is your VR player setup?
What plugins?
What’s in the scenes?
How’s memory usage?
What logs does it generate?

How is your VR player setup?


What plugins?

How’s memory usage?
I not see any problem about memory, and It appens also if I reload the same scene 6 times.

What logs does it generate?
Do you mean logcat from ADB?

02-10 21:24:08.077 19059 19083 I Unity   : AllGameobject:prova()
02-10 21:24:08.077 19059 19083 I Unity   : <LoadYourAsyncScene>d__8:MoveNext()
02-10 21:24:08.077 19059 19083 I Unity   : UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
02-10 21:24:08.077 19059 19083 I Unity   : <Btn_Start>d__47:MoveNext()
02-10 21:24:08.077 19059 19083 I Unity   : UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
02-10 21:24:08.077 19059 19083 I Unity   :
02-10 21:24:08.077 19059 19083 I Unity   : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 39)
02-10 21:24:08.077 19059 19083 I Unity   :
02-10 21:24:08.082  3821  3865 W Telemetry: [OpenXR] xrGetReferenceSpaceBoundsRect: unsupported reference space;
02-10 21:24:08.086 19059 19083 I Unity   : [OVRManager] OnDestroy
02-10 21:24:08.086 19059 19083 I Unity   : OVRManager:OnDestroy()
02-10 21:24:08.086 19059 19083 I Unity   :
02-10 21:24:08.086 19059 19083 I Unity   : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 39)
02-10 21:24:08.086 19059 19083 I Unity   :
02-10 21:24:08.097  3821  3865 W Telemetry: [OpenXR] xrGetReferenceSpaceBoundsRect: unsupported reference space;
02-10 21:24:08.097 19059 19083 D Unity   : InitializeOrResetSwapChain 3664x1920 hdr=0 samples=4
02-10 21:24:08.111  3821  3865 W Telemetry: [OpenXR] xrGetReferenceSpaceBoundsRect: unsupported reference space;
02-10 21:24:08.642  3821  3865 I chatty  : uid=10020(com.oculus.vrshell) ShellOverlayVR identical 38 lines
02-10 21:24:08.656  3821  3865 W Telemetry: [OpenXR] xrGetReferenceSpaceBoundsRect: unsupported reference space;
02-10 21:24:08.667   844  2830 W [CT]    : BOLTDEPTH: BoltDepthSystem: Invalid Bolt depth system state for core depth computation: PAUSED
02-10 21:24:08.670  3821  3865 W Telemetry: [OpenXR] xrGetReferenceSpaceBoundsRect: unsupported reference space;
02-10 21:24:08.809  3821  3865 I chatty  : uid=10020(com.oculus.vrshell) ShellOverlayVR identical 10 lines
02-10 21:24:08.823  3821  3865 W Telemetry: [OpenXR] xrGetReferenceSpaceBoundsRect: unsupported reference space;
02-10 21:24:08.827 19059 19150 I VrApi   : FPS=72/72,Prd=47ms,Tear=0,Early=72,Stale=0,VSnc=1,Lat=1,Fov=0D,CPU4/GPU=3/3,1382/490MHz,OC=FF,TA=0/0/0,SP=N/N/N,Mem=1353MHz,Free=970MB,PLS=0,Temp=28.7C/0.0C,TW=1.36ms,App=4.55ms,GD=0.00ms,CPU&GPU=8.86ms,LCnt=1,GPU%=0.37,CPU%=0.20(W0.32),DSF=1.00
02-10 21:24:08.837  3821  3865 W Telemetry: [OpenXR] xrGetReferenceSpaceBoundsRect: unsupported reference space;
02-10 21:24:08.840   852 18950 I [CT]    : VIPER: Mode=Vega,Status=6DoF,TRACKING,KF=-1,Inl=331,Pts=0,Mem=57.4,Jit=0.2mm,Issues(Cam/min=0.0,IMU/min=0.0),Exp=(6.8ms,g=8.0,I=75,Ir=1372.4)(11.9ms,g=14.0,I=77,Ir=463.4)(11.9ms,g=14.0,I=72,Ir=434.4)(7.4ms,g=9.0,I=74,Ir=1122.9)
02-10 21:24:08.840   852 18950 W [CT]    : VIPER: Environment trending to dark,
02-10 21:24:08.852  3821  3865 W Telemetry: [OpenXR] xrGetReferenceSpaceBoundsRect: unsupported reference space;
02-10 21:24:09.184  3821  3865 I chatty  : uid=10020(com.oculus.vrshell) ShellOverlayVR identical 24 lines
02-10 21:24:09.198  3821  3865 W Telemetry: [OpenXR] xrGetReferenceSpaceBoundsRect: unsupported reference space;
02-10 21:24:09.204   852 18957 I [CT]    : NIMBLE:HTEngine: active tracking pipeline: 1
02-10 21:24:09.212  3821  3865 W Telemetry: [OpenXR] xrGetReferenceSpaceBoundsRect: unsupported reference space;
02-10 21:24:09.253  3821  3865 I chatty  : uid=10020(com.oculus.vrshell) ShellOverlayVR identical 3 lines
02-10 21:24:09.268  3821  3865 W Telemetry: [OpenXR] xrGetReferenceSpaceBoundsRect: unsupported reference space;
02-10 21:24:09.276  1837  2091 I PerformanceManager_V0: SetClockLevels: Apply pending clock request change: 3,3 -> 2,3
02-10 21:24:09.276  1837 18973 I Clocks  : ReleaseClocks - start
02-10 21:24:09.276  1837 18973 I Clocks  : ReleaseClocks - end (0.2 ms)
02-10 21:24:09.277  1837 18973 I Clocks  : LockClocks( cpu=2, gpu=3 ) - start
02-10 21:24:09.277  1837 18973 I Clocks  : CPU levels [0, 4]
02-10 21:24:09.277  1837 18973 I Clocks  : GPU levels [0, 5]
02-10 21:24:09.277  1837 18973 I Clocks  : LockClocks( cpu=2, gpu=3 ) - end (0.3 ms)
02-10 21:24:09.282  3821  3865 W Telemetry: [OpenXR] xrGetReferenceSpaceBoundsRect: unsupported reference space;
02-10 21:24:09.336  3821  3865 I chatty  : uid=10020(com.oculus.vrshell) ShellOverlayVR identical 4 lines
02-10 21:24:09.351  3821  3865 W Telemetry: [OpenXR] xrGetReferenceSpaceBoundsRect: unsupported reference space;
02-10 21:24:09.361   852 18950 I [CT]    : VIPER:MAP_MANAGER: State: TrackingPersistent, UUID=b2562704-e893-886d-f8ab-41e63334c7ad, Num. Persistent maps = 1,  Persistent maps:b2562704-e893-886d-f8ab-41e63334c7ad,
02-10 21:24:09.365  3821  3865 W Telemetry: [OpenXR] xrGetReferenceSpaceBoundsRect: unsupported reference space;
02-10 21:24:09.476  3821  3865 I chatty  : uid=10020(com.oculus.vrshell) ShellOverlayVR identical 8 lines
02-10 21:24:09.490  3821  3865 W Telemetry: [OpenXR] xrGetReferenceSpaceBoundsRect: unsupported reference space;
02-10 21:24:09.504 19059 19131 E Unity   : allocation 0x0x6e503185e0 already registered @ ./Runtime/GfxDevice/vulkan/VKTexture.cpp:l243 size 1409024; now calling from ./Runtime/GfxDevice/vulkan/VKTexture.cpp:l243 size 1409024?
02-10 21:24:09.504 19059 19131 E Unity   : (Filename: ./Runtime/Allocator/MemoryManager.cpp Line: 2002)
02-10 21:24:09.504 19059 19131 E Unity   :
02-10 21:24:09.504 19059 19131 E Unity   : allocation 0x0x6e501407c0 already registered @ ./Runtime/GfxDevice/vulkan/VKTexture.cpp:l243 size 1409024; now calling from ./Runtime/GfxDevice/vulkan/VKTexture.cpp:l243 size 1409024?
02-10 21:24:09.504 19059 19131 E Unity   : (Filename: ./Runtime/Allocator/MemoryManager.cpp Line: 2002)
02-10 21:24:09.504 19059 19131 E Unity   :
02-10 21:24:09.504 19059 19131 E Unity   : allocation 0x0x6e5032eb90 already registered @ ./Runtime/GfxDevice/vulkan/VKTexture.cpp:l243 size 1048576; now calling from ./Runtime/GfxDevice/vulkan/VKTexture.cpp:l243 size 1048576?
02-10 21:24:09.504 19059 19131 E Unity   : (Filename: ./Runtime/Allocator/MemoryManager.cpp Line: 2002)
02-10 21:24:09.504 19059 19131 E Unity   :
02-10 21:24:09.504 19059 19131 E Unity   : allocation 0x0x6e50667730 already registered @ ./Runtime/GfxDevice/vulkan/VKTexture.cpp:l243 size 1048576; now calling from ./Runtime/GfxDevice/vulkan/VKTexture.cpp:l243 size 1048576?
02-10 21:24:09.504 19059 19131 E Unity   : (Filename: ./Runtime/Allocator/MemoryManager.cpp Line: 2002)
02-10 21:24:09.504 19059 19131 E Unity   :
02-10 21:24:09.504 19059 19131 E Unity   : allocation 0x0x6e500cca80 already registered @ ./Runtime/GfxDevice/vulkan/VKTexture.cpp:l243 size 1409024; now calling from ./Runtime/GfxDevice/vulkan/VKTexture.cpp:l243 size 1409024?
02-10 21:24:09.504 19059 19131 E Unity   : (Filename: ./Runtime/Allocator/MemoryManager.cpp Line: 2002)
02-10 21:24:09.504 19059 19131 E Unity   :
02-10 21:24:09.504 19059 19131 E Unity   : allocation 0x0x6e501472d0 already registered @ ./Runtime/GfxDevice/vulkan/VKTexture.cpp:l243 size 1048576; now calling from ./Runtime/GfxDevice/vulkan/VKTexture.cpp:l243 size 1048576?
02-10 21:24:09.504 19059 19131 E Unity   : (Filename: ./Runtime/Allocator/MemoryManager.cpp Line: 2002)
02-10 21:24:09.504 19059 19131 E Unity   :
02-10 21:24:09.504 19059 19131 E Unity   : allocation 0x0x6e503200b0 already registered @ ./Runtime/GfxDevice/vulkan/VKTexture.cpp:l243 size 1409024; now calling from ./Runtime/GfxDevice/vulkan/VKTexture.cpp:l243 size 1409024?
02-10 21:24:09.504 19059 19131 E Unity   : (Filename: ./Runtime/Allocator/MemoryManager.cpp Line: 2002)
02-10 21:24:09.504 19059 19131 E Unity   :
02-10 21:24:09.504  3821  3865 W Telemetry: [OpenXR] xrGetReferenceSpaceBoundsRect: unsupported reference space;
02-10 21:24:09.504 19059 19131 E Unity   : allocation 0x0x6e5046a3d0 already registered @ ./Runtime/GfxDevice/vulkan/VKTexture.cpp:l243 size 1409024; now calling from ./Runtime/GfxDevice/vulkan/VKTexture.cpp:l243 size 1409024?
02-10 21:24:09.504 19059 19131 E Unity   : (Filename: ./Runtime/Allocator/MemoryManager.cpp Line: 2002)
02-10 21:24:09.504 19059 19131 E Unity   :
02-10 21:24:09.515 19059 19131 E Unity   : allocation 0x0x6e500dce20 already registered @ ./Runtime/GfxDevice/vulkan/VKTexture.cpp:l243 size 1048576; now calling from ./Runtime/GfxDevice/vulkan/VKTexture.cpp:l243 size 1048576?
02-10 21:24:09.515 19059 19131 E Unity   : (Filename: ./Runtime/Allocator/MemoryManager.cpp Line: 2002)
02-10 21:24:09.515 19059 19131 E Unity   :
02-10 21:24:09.515 19059 19131 E Unity   : allocation 0x0x6e50338450 already registered @ ./Runtime/GfxDevice/vulkan/VKTexture.cpp:l243 size 1409024; now calling from ./Runtime/GfxDevice/vulkan/VKTexture.cpp:l243 size 1409024?
02-10 21:24:09.515 19059 19131 E Unity   : (Filename: ./Runtime/Allocator/MemoryManager.cpp Line: 2002)
02-10 21:24:09.515 19059 19131 E Unity   :
02-10 21:24:09.518  3821  3865 W Telemetry: [OpenXR] xrGetReferenceSpaceBoundsRect: unsupported reference space;
02-10 21:24:09.522  2154  2809 I Telemetry: App memory usage: PSS=46MB DalvikPSS=7 MB
02-10 21:24:09.532  3821  3865 W Telemetry: [OpenXR] xrGetReferenceSpaceBoundsRect: unsupported reference space;
02-10 21:24:09.538 19059 19131 E CRASH   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
02-10 21:24:09.538 19059 19131 E CRASH   : Version '2019.4.27f1 (23dc10685eb4)', Build type 'Development', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
02-10 21:24:09.538 19059 19131 E CRASH   : Build fingerprint: 'oculus/hollywood/hollywood:10/QQ3A.200805.001/22310100587300000:user/release-keys'
02-10 21:24:09.538 19059 19131 E CRASH   : Revision: '0'
02-10 21:24:09.538 19059 19131 E CRASH   : ABI: 'arm64'
02-10 21:24:09.538 19059 19131 E CRASH   : Timestamp: 2022-02-10 21:24:09+0100
02-10 21:24:09.538 19059 19131 E CRASH   : pid: 19059, tid: 19131, name: Thread-3  >>> com.MarcoCarloni.SubbuteoVR <<<
02-10 21:24:09.538 19059 19131 E CRASH   : uid: 10106
02-10 21:24:09.538 19059 19131 E CRASH   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x1000000110
02-10 21:24:09.538 19059 19131 E CRASH   :     x0  0000000000000910  x1  0000000000000000  x2  00000000ffffffff  x3  0000006dccb4dc10
02-10 21:24:09.538 19059 19131 E CRASH   :     x4  0000000000000000  x5  0000000000000001  x6  000000000000025e  x7  0000000000000000
02-10 21:24:09.538 19059 19131 E CRASH   :     x8  0000000000000001  x9  0000006e2fc526fc  x10 0000006dccb4d300  x11 0000000000000030
02-10 21:24:09.538 19059 19131 E CRASH   :     x12 00000000000000e8  x13 000000402718d000  x14 000000000000000a  x15 000000000002fd00
02-10 21:24:09.538 19059 19131 E CRASH   :     x16 0000006dccb4dc10  x17 000000000000000a  x18 00000000ac3b7fa9  x19 000000000000000a
02-10 21:24:09.538 19059 19131 E CRASH   :     x20 0000000000000000  x21 0000006d68c8a000  x22 0000006e2c992e80  x23 0000000000000000
02-10 21:24:09.538 19059 19131 E CRASH   :     x24 0000006dccb4dc10  x25 0000001000000000  x26 0000006d68e08800  x27 00000000000000e8
02-10 21:24:09.538 19059 19131 E CRASH   :     x28 0000000000000000  x29 0000006e2c992bf0
02-10 21:24:09.538 19059 19131 E CRASH   :     sp  0000006e2c992b60  lr  0000006e2fc525e8  pc  0000006e2fc5284c
02-10 21:24:09.539 19059 19131 E CRASH   :
02-10 21:24:09.539 19059 19131 E CRASH   : backtrace:
02-10 21:24:09.539 19059 19131 E CRASH   :       #00 pc 00000000001a784c  /vendor/lib64/hw/vulkan.kona.so (BuildId: 86421839991f71a5374a82d70edc13be)
02-10 21:24:09.539 19059 19131 E CRASH   :       #01 pc 00000000001a8354  /vendor/lib64/hw/vulkan.kona.so (BuildId: 86421839991f71a5374a82d70edc13be)
02-10 21:24:09.539 19059 19131 E CRASH   :       #02 pc 00000000000e70a4  /vendor/lib64/hw/vulkan.kona.so (BuildId: 86421839991f71a5374a82d70edc13be)
02-10 21:24:09.539 19059 19131 E CRASH   :       #03 pc 00000000000be2d8  /vendor/lib64/hw/vulkan.kona.so (qglinternal::vkCmdCopyBufferToImage2KHR(VkCommandBuffer_T*, VkCopyBufferToImageInfo2KHR const*)+856) (BuildId: 86421839991f71a5374a82d70edc13be)
02-10 21:24:09.539 19059 19131 E CRASH   :       #04 pc 00000000000bdf6c  /vendor/lib64/hw/vulkan.kona.so (qglinternal::vkCmdCopyBufferToImage(VkCommandBuffer_T*, VkBuffer_T*, VkImage_T*, VkImageLayout, unsigned int, VkBufferImageCopy const*)+340) (BuildId: 86421839991f71a5374a82d70edc13be)
02-10 21:24:09.539 19059 19131 E CRASH   :       #05 pc 000000000084a5dc  /data/app/com.MarcoCarloni.SubbuteoVR-y0niFTfbHODor8JRNyPjvw==/lib/arm64/libunity.so (vk::ImageManager::ReleaseTextureUploadBuffer(vk::CommandBuffer*, vk::ScratchBufferAllocation&, dynamic_array<VkBufferImageCopy, 0ul> const&, vk::Image*)+80) (BuildId: 19f22d22a9eea6167815755a7115f5c7f3c187bb)
02-10 21:24:09.539 19059 19131 E CRASH   :       #06 pc 00000000007ff8e8  /data/app/com.MarcoCarloni.SubbuteoVR-y0niFTfbHODor8JRNyPjvw==/lib/arm64/libunity.so (GfxDeviceVK::ReleaseTexture2DUploadMemory(TextureUploadMemory*&)+52) (BuildId: 19f22d22a9eea6167815755a7115f5c7f3c187bb)
02-10 21:24:09.539 19059 19131 E CRASH   :       #07 pc 000000000046e574  /data/app/com.MarcoCarloni.SubbuteoVR-y0niFTfbHODor8JRNyPjvw==/lib/arm64/libunity.so (ReleaseTexture2DUploadMemory(GfxDevice&, Texture2DUploadData*&, TextureUploadMemory*&)+56) (BuildId: 19f22d22a9eea6167815755a7115f5c7f3c187bb)
02-10 21:24:09.539 19059 19131 E CRASH   :       #08 pc 000000000046c6a8  /data/app/com.MarcoCarloni.SubbuteoVR-y0niFTfbHODor8JRNyPjvw==/lib/arm64/libunity.so (BuildId: 19f22d22a9eea6167815755a7115f5c7f3c187bb)
02-10 21:24:09.539 19059 19131 E CRASH   :       #09 pc 00000000004554ec  /data/app/com.MarcoCarloni.SubbuteoVR-y0niFTfbHODor8JRNyPjvw==/lib/arm64/libunity.so (AsyncUploadManager::AsyncResourceUpload(GfxDevice&, int, AsyncUploadManagerSettings const&)+232) (BuildId: 19f22d22a9eea6167815755a7115f5c7f3c187bb)
02-10 21:24:09.539 19059 19131 E CRASH   :       #10 pc 0000000000e11d38  /data/app/com.MarcoCarloni.SubbuteoVR-y0niFTfbHODor8JRNyPjvw==/lib/arm64/libunity.so (GfxDeviceWorker::RunCommand(ThreadedStreamBuffer&)+27444) (BuildId: 19f22d22a9eea6167815755a7115f5c7f3c187bb)
02-10 21:24:09.539 19059 19131 E CRASH   :       #11 pc 0000000000e13b40  /data/app/com.MarcoCarloni.SubbuteoVR-y0niFTfbHODor8JRNyPjvw==/lib/arm64/libunity.so (GfxDeviceWorker::RunExt(ThreadedStreamBuffer&)+44) (BuildId: 19f22d22a9eea6167815755a7115f5c7f3c187bb)
02-10 21:24:09.539 19059 19131 E CRASH   :       #12 pc 0000000000e13b08  /data/app/com.MarcoCarloni.SubbuteoVR-y0niFTfbHODor8JRNyPjvw==/lib/arm64/libunity.so (GfxDeviceWorker::Run()+136) (BuildId: 19f22d22a9eea6167815755a7115f5c7f3c187bb)
02-10 21:24:09.539 19059 19131 E CRASH   :       #13 pc 0000000000e0afb4  /data/app/com.MarcoCarloni.SubbuteoVR-y0niFTfbHODor8JRNyPjvw==/lib/arm64/libunity.so (GfxDeviceWorker::RunGfxDeviceWorker(void*)+4) (BuildId: 19f22d22a9eea6167815755a7115f5c7f3c187bb)
02-10 21:24:09.539 19059 19131 E CRASH   :       #14 pc 000000000066dc28  /data/app/com.MarcoCarloni.SubbuteoVR-y0niFTfbHODor8JRNyPjvw==/lib/arm64/libunity.so (Thread::RunThreadWrapper(void*)+512) (BuildId: 19f22d22a9eea6167815755a7115f5c7f3c187bb)
02-10 21:24:09.539 19059 19131 E CRASH   :       #15 pc 00000000000d4884  /apex/com.android.runtime/lib64/bionic/libc.so (pthread_attr_setdetachstate+32) (BuildId: a6e0ca3a9989715134d1d1e2126e0f7a)
02-10 21:24:09.546  3821  3865 W Telemetry: [OpenXR] xrGetReferenceSpaceBoundsRect: unsupported reference space;
02-10 21:24:09.560  3821  3865 I chatty  : uid=10020(com.oculus.vrshell) ShellOverlayVR identical 1 line
02-10 21:24:09.574  3821  3865 W Telemetry: [OpenXR] xrGetReferenceSpaceBoundsRect: unsupported reference space;
02-10 21:24:09.580  1597  2819 I Telemetry: App memory usage: PSS=22MB DalvikPSS=6 MB
02-10 21:24:09.587  3821  3865 W Telemetry: [OpenXR] xrGetReferenceSpaceBoundsRect: unsupported reference space;
02-10 21:24:09.601  3821  3865 I chatty  : uid=10020(com.oculus.vrshell) ShellOverlayVR identical 1 line
02-10 21:24:09.615  3821  3865 W Telemetry: [OpenXR] xrGetReferenceSpaceBoundsRect: unsupported reference space;
02-10 21:24:09.617  1837 18966 I TimeWarp: SetSchedFifo( tid=19174, pol=2, pri=0 ) succeeded
02-10 21:24:09.629  3821  3865 W Telemetry: [OpenXR] xrGetReferenceSpaceBoundsRect: unsupported reference space;

Let me know If i have to provide more info

Try to use SceneManager.LoadSceneAsync(…)

New to Unity VR for Oculus 2, anybody available to teach?

Update XR Plugin management, Oculus XR Plugin and if you use it the Oculus Integration asset as well.
If you’re on an older Unity version update to the latest (within your yearly release).

If it still happens maybe try using OpenGL instead of Vulkan as rendering API (unless vulkan is required for you)

Tried, the problem persist.

Tried all, and the problem still persist…

Does the problem occur in the editor as well or only in the build version?

Open the profiler and monitor memory and cpu, check for abnormalities during the scene loading. I assume that you exceed the memory limits of the quest device which can lead to an application crash.

The problem occurs ONLY on build.

IF I:
DESTROY the actual scene elements.
Load additive a new scene
enable the scene

It work correctly, but only in that way