Calling SceneManager.LoadScene(levelName) to change scene will crash on device while it is working fine in the editor. I have tried with a full path and with the index, it always crashes. I have opened the APK, under assets/bin/Data, I see sharedassets0.resource and sharedassets1.resource which I am guessing are my 2 scenes that are stored in the APK.
Am I missing something obvious, some extra step that I am unaware of when trying to load a scene from a Quest?
Here is the Console Log:
--------- beginning of crash
01-30 00:47:19.855 712 22100 F libc : Fatal signal 6 (SIGABRT), code -6 in tid 22100 (Mapper0)
Update - the crash I am experiencing is very similar to this post:
https : //forum.unity.com/ threads/ crash-during-scene-change-unload.568138/ (remove the space, forum wouldn't let me post a link otherwise)
I found it it only crashes when unloading a large scene. I am probably doing something that exposes this bug. My workaround will be to never unload a scene, instead additive load on an empty scene and delete every object and additive load another scene when changing map. I hope this will work.