Search Issue Tracker

Fixed in 1.0.0-preview.20

Votes

19

Found in [Package]

1.0.0-preview.5

Issue ID

1092601

Regression

No

[iOS][Android] AR Foundation project crashes when having more than one AR Scene

Package: ARExtensions

-

Steps:
1. Build and Run user's attached project for iOS or Android
2. In Player, press ARScene1, Back, ARScene2, Back

Expected: game returns to Main Menu screen
Actual: Player crashes

Reproduced with: 2018.2.14f1, 2018.3.0b6.
Not reproduced with: 2017.4.14f1, 2019.1.0a6 (due to Errors in Unity Console)

Tested with: iPhone 6 (iOS 11.3.1), Xcode 10.0; OnePlus 5T.

Note:
-not reproducible on Editor and Standalone Player

Comments (10)

  1. Desiigner7HD

    Mar 26, 2019 10:15

    Issue not fixed.
    I´m still getting this Issue with ARKIT 2.0 on IPad Pro 2018 with IOS 12.1.4.

    I´m attaching on the SceneManager SceneChanged Event. And every Time when i switch the scene the ARSessionNative Interface will be restartet with config and options (remove existing tracker, ...)

    When i go to the ar scene, switch back to the menu (no ar scene) and go back to the ar scene it usually crashes.

  2. Lukas_Andriejunas

    Nov 13, 2018 15:14

    Hey, thank you for noticing the typo. I have changed the fixed version string to preview.20.

  3. DonPeto

    Nov 09, 2018 14:39

    I had the same problem when I switch between an AR scene and a classic one but only with the 1+3t (8.1, lineage), it's fine with the honor 10 and galaxy s7.

  4. vinnie-vivace

    Nov 07, 2018 22:53

    updated packages now available and I can confirm bug is fixed.

  5. MSQTobi

    Nov 02, 2018 07:52

    I think there is a bit of confusion here. 1.0.0-preview6. is referring to the com.unity.xr.arextensions package which is currently at 1.0.0-preview.5 and NOT the com.unity.xr.arfoundation package. It is not listed in the package manager but ARFoundation depends on it.

    Is there an ETA when the fix is going live?

  6. vinnie-vivace

    Nov 02, 2018 00:15

    ummm. agree with other comment, fixed in preview6? Can someone from Unity please advise, this is holding up several projects I am working on. Cheers

  7. ziemlich3D

    Oct 31, 2018 10:43

    How can this issue be fixed in 1.0.0 preview6? We all have the problem with 1.0.0 preview19! So please have a look at the issue again, as this is a real showstopper for some of us.
    I just checked the packages and there is no newer one available than 19, to proof that the fix with 6 is not a typo.

  8. lyha

    Oct 29, 2018 15:59

    I have faced this issue on iOS, especially on 6S — there is camera freezing (if I have more than one camera) or crash after second ARSession.Reset(). There is a single scene. Tried dozens of tricks, like replacing camera or session, but it doesn't help.

  9. vinnie-vivace

    Oct 29, 2018 01:50

    as @Pankao says, regardless of scene switching, calling ARSession.Reset more than once will cause a crash on both Android and iOS.

  10. pankao

    Oct 27, 2018 06:41

    Just to clarify, this issue also occurs even when there is just single AR scene, just when I call ARSession.Reset() more than once in the lifetime of AR session.
    In my case I am switching between application states using Animator SM, having AR setup in-place all the time, thus I need to call ARSession.Reset() when i switch back to AR state (to get rid of previously tracked features etc.)
    The app either hangs or crashes upon subsequent calls of ARSession.Reset().

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.