Gamecenter related crash in Unity

Trying to figure out a particularly odd crash report.

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

We're using Unity 2021.3.16f1, we haven't touched the gamecenter login code for ages but this error started happening. It looks like it's only appearing on iOS 16.4 and subversions.

Post not yet marked as solved Up vote post of KrisGClipwire Down vote post of KrisGClipwire
1.8k views
  • Any update on figuring this out? Having similar issues.

Add a Comment

Replies

Same issues here on Unity 2020.4.40.f1. Can confirm that it only happens on ios 16.4 and above

Crashed: com.apple.root.user-initiated-qos.cooperative
0  libsystem_kernel.dylib         0x7558 __pthread_kill + 8
1  libsystem_pthread.dylib        0x7118 pthread_kill + 268
2  libsystem_c.dylib              0x1d178 abort + 180
3  libswiftCore.dylib             0x3b93a8 swift::fatalError(unsigned int, char const*, ...) + 134
4  libswiftCore.dylib             0x3b93c8 swift::warningv(unsigned int, char const*, char*) + 30
5  libswiftCore.dylib             0x3bdfd8 swift_deallocPartialClassInstance + 190
6  libswiftCore.dylib             0x3bde28 _swift_release_dealloc + 56
7  libswiftCore.dylib             0x3bec4c bool swift::RefCounts<swift::RefCountBitsT<(swift::RefCountInlinedness)1> >::doDecrementSlow<(swift::PerformDeinit)1>(swift::RefCountBitsT<(swift::RefCountInlinedness)1>, unsigned int) + 132
8  GameCenterFoundation           0xe213c __swift_project_boxed_opaque_existential_1 + 20184

Another people also reported on the forums https://forum.unity.com/threads/gamecenter-login-crash-since-16-4-1.1431688/

:Edit: unity forum link is also from the original poster on this thread

No updates other than it continues to happen and continues to be a 16.4 only issue.

I am also facing a similar issue. We are using GameCenter for Highscore and Leaderboard.

We're only using it for a platform login option. It does look like the crashes are all happening when the app is backgrounded. Can anyone else confirm that?

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.