Search Unity

IOS Error : Main Thread Checker: UI API called on a background thread

Discussion in 'iOS and tvOS' started by developersice, Aug 22, 2017.

  1. developersice

    developersice

    Joined:
    Nov 25, 2016
    Posts:
    36
    We are currently working on an IOS 11 device with unity 2017.1.0f3 and Xcode 9.5 beta (because Xcode 9 is the only version that currently pushes to IOS 11)

    The moment the app starts, we hit this error and our app cannot start -
    Main Thread Checker: UI API called on a background thread: -[UIApplication delegate]

    This app ran fine before on any previous IOS version (pre IOS 11) when pushed out from Xcode 8

    I am hoping that someone else may have ran into this issue and had a workaround as the error itself seems to stem from the core Unity UI in the build - the error throws on our intro scene which has nothing but a Unity UI canvas in it and an image with an animator!

     
    Exustus likes this.
  2. oliver-jones

    oliver-jones

    Joined:
    Nov 8, 2010
    Posts:
    25
    Hello, try using Unity 2017.1.0p3
    This seemed to fix a crash I was having too. Wasn't the same error, but it was related to the UIApplication delegate. Let me know what that does for you.

    https://unity3d.com/unity/qa/patch-releases
     
    developersice likes this.
  3. MackNugget

    MackNugget

    Joined:
    Dec 4, 2012
    Posts:
    40
    Ran into this using Unity 2017.1.0p3. Were you able to resolve it?
     
  4. developersice

    developersice

    Joined:
    Nov 25, 2016
    Posts:
    36
    I found that the version of Xcode I was using would throw this error at some point, also possibly related to the version of the ARkit SDK we were using at the time. I would advise trying the latest version of Xcode if possible.
     
  5. kavanavak

    kavanavak

    Joined:
    Sep 30, 2015
    Posts:
    54
    same issue with Unity 2017.3.0f3 + Xcode 9.2 (9C40b)
     
  6. Glaswyll

    Glaswyll

    Joined:
    Feb 13, 2014
    Posts:
    103
    I'm seeing this issue as well. Same versions as kavanavak.
     
  7. Glaswyll

    Glaswyll

    Joined:
    Feb 13, 2014
    Posts:
    103
  8. MoribitoMT

    MoribitoMT

    Joined:
    Jun 1, 2013
    Posts:
    301
    Unity 5.6.4 p4 having this issue, any solution yet beside getting final version of Unity ?
     
  9. MoribitoMT

    MoribitoMT

    Joined:
    Jun 1, 2013
    Posts:
    301
    It seems that, Unity released a patch version today ( 12 Jan ) , they fixed the issue, need to test it!
    • (956318) (57809) - iOS: Fixed trampoline calling UI methods ([UIApplication delegate]) from a background thread.
     
  10. blaww

    blaww

    Joined:
    Jan 4, 2018
    Posts:
    1
    Are updates delayed for free users? i can't get it to update!
     
  11. Glaswyll

    Glaswyll

    Joined:
    Feb 13, 2014
    Posts:
    103
    We are on 2017.3.0f3. No patch is available for that version yet. Hopefully in the next few days.
     
  12. TheGameLearner

    TheGameLearner

    Joined:
    Feb 10, 2018
    Posts:
    20
    I am working with xCode11 and Unity 2018.3.5f1, I am getting the same error. My project uses Vuforia model detection to play multiple animations on buttons getting clicked. Can anyone tell me what I should do to get rid of this?
     
  13. dvapps

    dvapps

    Joined:
    Apr 16, 2019
    Posts:
    5
    Hi Guys,

    I'm working on Xcode11.3 and Unity 2018.4.14f1, but I Have the same issue. Do you have any news about this issue?
     
  14. Nik_Kov

    Nik_Kov

    Joined:
    Nov 30, 2018
    Posts:
    3
    2018.3.0f2
    Xcode 11.3.1
    Same issue.