Search Unity

Bug Gamecenter login crash since 16.4.1

Discussion in 'iOS and tvOS' started by KrisGayClipwire, May 1, 2023.

  1. KrisGayClipwire

    KrisGayClipwire

    Joined:
    May 26, 2021
    Posts:
    41
    Trying to figure out a mysterious crash that is now the highest occurring hard crash on iOS devices.


    Crashed: com.apple.root.user-initiated-qos.cooperative
    0 GameCenterFoundation 0xe2054 __swift_project_boxed_opaque_existential_1 + 19952
    1 libswift_Concurrency.dylib 0x41948 swift::runJobInEstablishedExecutorContext(swift::Job*) + 416
    2 libswift_Concurrency.dylib 0x42868 swift_job_runImpl(swift::Job*, swift::ExecutorRef) + 72
    3 libdispatch.dylib 0x15944 _dispatch_root_queue_drain + 396
    4 libdispatch.dylib 0x16158 _dispatch_worker_thread2 + 164
    5 libsystem_pthread.dylib 0xda0 _pthread_wqthread + 228
    6 libsystem_pthread.dylib 0xb7c start_wqthread + 8


    Unity 2023.3.16f1, we haven't changed our gamecenter login code (using `Social.localUser.Authenticate`) in ages so unsure why this would have started now.

    There were scattered reports of this bug before this date but it looks like it became common during the release of 16.4 on March 27th our reports on this bug start to rise and haven't stopped rising since.

    I think something must have changed about GameCenter in iOS 16.4 but I'm not sure what.
     
    dan_ginovker and FlynnyMac like this.
  2. FlynnyMac

    FlynnyMac

    Joined:
    Aug 24, 2020
    Posts:
    12
    Also need assistance on same issue.
     
  3. ernesb

    ernesb

    Joined:
    Feb 12, 2017
    Posts:
    32
    dan_ginovker likes this.
  4. KrisGayClipwire

    KrisGayClipwire

    Joined:
    May 26, 2021
    Posts:
    41
    Yeah no update other than it continues to happen and continues to only be a 16.4 issue.
     
    dan_ginovker likes this.
  5. Slash321

    Slash321

    Joined:
    Jun 28, 2018
    Posts:
    8
    Hello everyone, we are facing exact the same issue (Unity 2021.3.11) and because there are no responses ether from Unity and Apple, I think at this point we can try to figure out what exactly goes wrong:
    1. Do you use UnityEngine.Social?
    2. Do you have Game Center capability in xcode project?
    3. Did you try to update to Unity 2021.3.24?
    4. Facebook SDK and version? - incorrect question from FB iOS SDK sources I don't see any usages of GK SDK.
     
    Last edited: May 17, 2023
  6. KrisGayClipwire

    KrisGayClipwire

    Joined:
    May 26, 2021
    Posts:
    41
    1. Yes
    2. Yes
    3. Next release will be going out with the latest Unity LTS (currently .25f1) but it is 2021.3.16f1 currently
    3. The facebook SDK is version 14.0.0
     
  7. Slash321

    Slash321

    Joined:
    Jun 28, 2018
    Posts:
    8
    Thanks for answer! I've also added some possible fixes, didn't help.

    From my point of view this is UnityEngine.Social side issue, which is not a package, so only thing we can do is try to update Unity or replace UnityEngine.Social with Apple package - https://github.com/apple/unityplugins
     
    Last edited: May 19, 2023
  8. ernesb

    ernesb

    Joined:
    Feb 12, 2017
    Posts:
    32
    I don't think this is coming from unityengine.social, we don't use it and the crash is still happening. We do use GameCenter though
     
  9. KrisGayClipwire

    KrisGayClipwire

    Joined:
    May 26, 2021
    Posts:
    41
    @ernesb If you aren't using the UnityEngine.Social implementations how are you accessing the gamecenter code? Through the newer Unity apple plugin or via a custom solution?
     
  10. ernesb

    ernesb

    Joined:
    Feb 12, 2017
    Posts:
    32
    custom solution, we write our own game center login integration natively and it worked for years, it just started going bonkers on 16.4.1 ios updates
     
  11. KrisGayClipwire

    KrisGayClipwire

    Joined:
    May 26, 2021
    Posts:
    41
    Ok that definitely makes it seem like it's a problem on Apple's side?

    Does it repro if you make a default project with the plugin in it? Maybe we can use that to bug report to apple.
     
  12. KrisGayClipwire

    KrisGayClipwire

    Joined:
    May 26, 2021
    Posts:
    41
    For people following this with the release of iOS 16.5 it seems like whatever was the problem was on Apple's side and is fixed. Still seeing the crash on 16.4.1 devices but only on 16.4.1 and the total rate has gone down significantly.
     
    AcidArrow likes this.