ARFoundatin crashes on level loading

Hi all,
I’m having this issue:

  • Unity scene loads a new scene that uses AR Foundation, spawns a prefab and allows to position it in the environment
  • everything in the AR scene works ok
  • I reload the previous scene
    In doing this process (going back and forth from the two scenes) max at the second/third time the app crashes and quits. This happens on several iOS devices. The editor (which of course is not really starting AR) doesn’t seem to have any problem.
    Has anyone had this kind of experience? What is the correct way of unloading a scene that was using AR Foundation?
    I tried to look into Unity documentation but there is no mention about that…

Please review how scene loading works in AR Foundation samples.

I have a similar problem and did exactly as the sample scene but when I try to go back from an AR scene to the menu the app crash
the AR scene contain :

  1. AR Session Origin : with AR Plane Manager , AR Anchor Manager , AR Cloud Manager , AR Ray Cast Manager
  2. AR Session : with AR Input Manager
  3. AR Core Extensions
  4. AR Cloud Controller

for the switching from the Menu to the AR Scene I use :
LoaderUtility.Initialize();
SceneManager.LoadScene(1, LoadSceneMode.Single);
for the switching from AR scene to the menu I use :
SceneManager.LoadScene(1, LoadSceneMode.Single);
LoaderUtility.Deinitialize(); tried disabling all the AR component or destroying the gameObjects
tried disable all the plane detected and the plane manager and didn’t work

also couldn’t get valid information from the logcat
and thanks .

7982661–1025160–logcat.txt (142 KB)

1 Like

Please file a bug.