Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

ARFoundation on iOS freezes

Discussion in 'AR' started by MrMatthias, Oct 2, 2018.

  1. MrMatthias

    MrMatthias

    Joined:
    Sep 18, 2012
    Posts:
    191
    The app freezes after some time and i can't pause for debugging, or stop the app via xcode. How can i debug this?
    iOS: 12.0
    AR Foundation: preview 18
    ARKit XR Plugin preview 14
    Unity 2018.2.0f2
     
  2. tdmowrer

    tdmowrer

    Unity Technologies

    Joined:
    Apr 21, 2017
    Posts:
    605
    Does the freeze resemble this issue? It has been fixed for future releases of Unity and we are backporting the change to 2018.3 and maybe 2018.2.
     
  3. MrMatthias

    MrMatthias

    Joined:
    Sep 18, 2012
    Posts:
    191
    Thanks, yes, that sounds like it. When will this fix be available? Is there a way to prevent the freeze to occur, or is switching to the Unity ARKit plugin the only viable option for a release in the next two months?
     
  4. Mjubbi

    Mjubbi

    Joined:
    Dec 19, 2018
    Posts:
    4
    Any updates on this issue?
     
  5. tdmowrer

    tdmowrer

    Unity Technologies

    Joined:
    Apr 21, 2017
    Posts:
    605
    The issue is independent of the ARKit package, but the package happens to be quite affected by it. The issue was resolved in 2018.3b6 but regressed somewhere around 2018.3b9. I'm working on a more permanent fix that should resolve the issue for good. That fix should be in a future release of Unity 2018.3.
     
  6. tdmowrer

    tdmowrer

    Unity Technologies

    Joined:
    Apr 21, 2017
    Posts:
    605
    Quick update: the fix is working its way through the release cycle. It is currently slated for 2018.3.4, which will likely be released around the end of January.
     
    MrMatthias and rob_ice like this.
  7. Maskedchamo

    Maskedchamo

    Joined:
    Mar 12, 2018
    Posts:
    21
    Thanks for the fix!
     
  8. Mjubbi

    Mjubbi

    Joined:
    Dec 19, 2018
    Posts:
    4
    Thanks for the update!
     
  9. tdmowrer

    tdmowrer

    Unity Technologies

    Joined:
    Apr 21, 2017
    Posts:
    605
    The fix for the hang on iOS got bumped to 2018.3.5. I can't promise it will be in that release, but it's looking promising.
     
    ROBYER1 likes this.
  10. Mjubbi

    Mjubbi

    Joined:
    Dec 19, 2018
    Posts:
    4
    I would have loved to see the fix in this version but I really appreciate the updates, thanks!

     
  11. viktor_chernikov

    viktor_chernikov

    Joined:
    Oct 8, 2018
    Posts:
    10
    I've checked release notes for both 2018.3.15 and 16 but couldn't find any mention resembling this issue. Can anyone confirm that the fix went through or confirm that it has not?
     
  12. GreeneMachine

    GreeneMachine

    Joined:
    Jul 3, 2015
    Posts:
    126
  13. viktor_chernikov

    viktor_chernikov

    Joined:
    Oct 8, 2018
    Posts:
    10
    Ah, thank you for pointing it out! Missed it for whatever reason when I was reading the notes first time
     
  14. JellePossiblyPixels

    JellePossiblyPixels

    Joined:
    Feb 11, 2018
    Posts:
    7
    I've been having some freeze issues myself but not sure if this is the same issue.
    I'm using Arkit with Facetracking.
    Build for ios 12.2, Unity 2018.3.7
    The apps works pretty good overall, but I've been getting freezes of a couple of seconds at seemingly very random moments. Sometimes after longer use, sometimes right away, in different scenes that all use arkit facetracking and arvideo. It seem impossible to replicate at will.
    After the freezes the app just continues normally.
    Right after the freeze, in xCode I get an error about Command Buffer Execution Aborted, with AIOF Code 5

    So far I've seen recommendations of people saying you should disable Anti Aliasing or turn off Environment light but his doesn't solve the issue.
    Anyone got any clue?
     
  15. silenckly

    silenckly

    Joined:
    Sep 19, 2019
    Posts:
    2
    it still freeze on 2019.1.14 with 11Pro Max
     
    Last edited: Nov 8, 2019