In iOS 15, when the app is restarted, it immediately crashes.

After the iOS 15 update, the following process causes the app to die.

  1. Go to the home screen while running the app
  2. Completely quit by removing the background state of the app
  3. Start by pressing the icon on the home screen
  4. As soon as the app is opened in the state it was in when the previous home screen was moved, there is a symptom that the app dies.

There was no such symptom until iOS 14.

Is this symptom a bug in iOS 15 ? Or is there a new option for background state of apps in iOS 15?

After the iOS 15 update, the following process causes the app to die.

Is this your app? Or an app from some other third-party developer?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I have same issue in my iPhone12 iOS 15.0 (other device not happened), it happened in all apps, include those Apple's app (AppStore, Notes, Weather etc...)

Suin, If you’re having problems with Apple apps, that’s something you need to discuss with Apple Support.


Kim Ju Young wroet:

Not only our app, but also other company/individual apps have the same symptoms.

You mean apps from the App Store? Or other Development- or Enterprise-signed apps?

If you’re having problems with other app from the App Store, contact the app’s developer. However, if you’re having problems with a Development- or Enterprise-signed app that you created, I can help you here.

In that case, when you app crashes, does it generate a crash report? If so, please post an example here.

For advice on how to post a crash report, see Posting a Crash Report.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

We experience the same. The app sometimes crash on startup, and then work again just afterwards.

The app shows splashscreen, then quickly fades to a blurred home screen and then disappears.

Same situation happens on my iPhoneXS max with iOS15.0.2 to 15.1, when iPhone6S with iOS15.0.1 does not have such problem.

I can watch this behavior by just deploy my app on a phone (device) with iOS 15. My app never crashes on iOS 14.8 but move it to iOS 15 the app crashes sometimes. Always after reactivating from background. This is monitored by many testers which stated that this happens also to many other apps. There is something changed by Apple and very nice to see that there is no answer from Apple here.

there is no answer from Apple here.

What sort of answer were you expecting? A month ago I wrote:

In that case, when you app crashes, does it generate a crash report? If so, please post an example here.

No one responded with a crash report, which makes it hard for me to offer any insight into this issue.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Hello everyone.

I have a similar issue in an iOS react-native app after iOS 15 upgrade but with not a crash.

If someone opens the app after ~1 hour from the last time he/she opened it, the app skips the SplashScreen and after that nothing renders correctly. The positioning and order of components are wrong.

This happens only the first time after ~1hour of app being closed.

I'm experiencing the same issue, I think. I'm testing with a simple app with a simple fullscreen map... If I launch the app on my iPhone connected by cable with my Mac everything is ok. If I launch it "disconnected" I have this crash.

libc++abi: terminating with uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument

dyld4 config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib

terminating with uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument

Incident Identifier: 53AE12AF-0FB3-48CC-BB46-EDEC4CBD94AA
CrashReporter Key:   50138afacd3da80bd7dd642f2af97385936b73c4
Hardware Model:      iPhone10,6
Process:             ---[46740]
Path:                /private/var/containers/Bundle/Application/9F25E552-3DE2-48CA-BA27-EC74AAC9FC10/---.app/---
Identifier:         ---
Version:             1.0 (1)
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           --- [9142]

Date/Time:           2021-11-25 12:20:15.2108 +0100
Launch Time:         2021-11-25 12:20:15.1629 +0100
OS Version:          iPhone OS 15.1 (19B74)
Release Type:        User
Baseband Version:    5.00.00
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Triggered by Thread:  0

Application Specific Information:


abort() called


Last Exception Backtrace:
0   CoreFoundation                	       0x1839adc9c __exceptionPreprocess + 216
1   libobjc.A.dylib               	       0x19ab61758 objc_exception_throw + 56
2   CoreFoundation                	       0x183a00d04 __CFDictionaryCreateGeneric + 0
3   UIFoundation                  	       0x18dd1b52c UINibDecoderDecodeObjectForValue + 408
4   UIFoundation                  	       0x18dd1b878 UINibDecoderDecodeObjectForValue + 1252
5   UIFoundation                  	       0x18dcbe608 -[UINibDecoder decodeObjectForKey:] + 308
6   UIKitCore                     	       0x1860b98bc -[UIView initWithCoder:] + 980
7   UIFoundation                  	       0x18dd1b64c UINibDecoderDecodeObjectForValue + 696
8   UIFoundation                  	       0x18dcbe608 -[UINibDecoder decodeObjectForKey:] + 308
9   UIKitCore                     	       0x1861e5900 -[UIRuntimeConnection initWithCoder:] + 172
10  UIFoundation                  	       0x18dd1b64c UINibDecoderDecodeObjectForValue + 696
11  UIFoundation                  	       0x18dd1b878 UINibDecoderDecodeObjectForValue + 1252
12  UIFoundation                  	       0x18dcbe608 -[UINibDecoder decodeObjectForKey:] + 308
13  UIKitCore                     	       0x1861e8028 -[NSCoder(UIIBDependencyInjectionInternal) _decodeObjectsWithSourceSegueTemplate:creator:sender:forKey:] + 488
14  UIKitCore                     	       0x18618a9e4 -[UINib instantiateWithOwner:options:] + 1064
15  UIKitCore                     	       0x185e3a178 -[UIViewController loadView] + 588
16  UIKitCore                     	       0x185e1f354 -[UIViewController loadViewIfRequired] + 172
17  UIKitCore                     	       0x185df3b04 -[UIViewController view] + 28
18  UIKitCore                     	       0x185f2df68 -[UIWindow addRootViewControllerViewIfPossible] + 176
19  UIKitCore                     	       0x185e88f68 -[UIWindow _updateLayerOrderingAndSetLayerHidden:actionBlock:] + 224
20  UIKitCore                     	       0x185f1b66c -[UIWindow _setHidden:forced:] + 252
21  UIKitCore                     	       0x185f34fb0 -[UIWindow _mainQueue_makeKeyAndVisible] + 52
22  UIKitCore                     	       0x185ccf530 -[UIWindowScene _makeKeyAndVisibleIfNeeded] + 200
23  UIKitCore                     	       0x185fbbc10 +[UIScene _sceneForFBSScene:create:withSession:connectionOptions:] + 1488
24  UIKitCore                     	       0x1862a0ac8 -[UIApplication _connectUISceneFromFBSScene:transitionContext:] + 1268
25  UIKitCore                     	       0x185fbe1bc -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 328
26  UIKitCore                     	       0x185f044b0 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 360
27  FrontBoardServices            	       0x194434fb4 -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 412
28  FrontBoardServices            	       0x194457540 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke.180 + 100
29  FrontBoardServices            	       0x194417704 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 232
30  FrontBoardServices            	       0x194418b0c __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke + 312
31  libdispatch.dylib             	       0x18367a198 _dispatch_client_callout + 16
32  libdispatch.dylib             	       0x183651c7c _dispatch_block_invoke_direct$VARIANT$armv81 + 212
33  FrontBoardServices            	       0x194418d6c __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 40
34  FrontBoardServices            	       0x1944182f0 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 176
35  FrontBoardServices            	       0x19441c3e0 -[FBSSerialQueue _performNextFromRunLoopSource] + 24
36  CoreFoundation                	       0x1839ce210 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
37  CoreFoundation                	       0x1839de238 __CFRunLoopDoSource0 + 204
38  CoreFoundation                	       0x18392163c __CFRunLoopDoSources0 + 356
39  CoreFoundation                	       0x183926a08 __CFRunLoopRun + 768
40  CoreFoundation                	       0x183939d7c CFRunLoopRunSpecific + 572
41  GraphicsServices              	       0x19dbae9a0 GSEventRunModal + 160
42  UIKitCore                     	       0x18616c05c -[UIApplication _run] + 1080
43  UIKitCore                     	       0x185f01ce0 UIApplicationMain + 2028
44  libswiftUIKit.dylib           	       0x199c77e80 UIApplicationMain(_:_:_:_:) + 100
45  ---                	       0x104460484 static UIApplicationDelegate.main() + 104
46  ---                	       0x10446040c static AppDelegate.$main() + 44
47  ---                 	       0x104460504 main + 28
48  dyld                          	       0x1046b8190 start + 444

Thread 0 name:   Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libsystem_kernel.dylib        	       0x1bd3969e8 __pthread_kill + 8
1   libsystem_pthread.dylib       	       0x1dd8e9824 pthread_kill + 208
2   libsystem_c.dylib             	       0x18de270b4 abort + 120
3   libc++abi.dylib               	       0x19ac56e1c abort_message + 128
4   libc++abi.dylib               	       0x19ac48bec demangling_terminate_handler() + 296
5   libobjc.A.dylib               	       0x19ab670c8 _objc_terminate() + 124
6   libc++abi.dylib               	       0x19ac562cc std::__terminate(void (*)()) + 16
7   libc++abi.dylib               	       0x19ac56274 std::terminate() + 60
8   libdispatch.dylib             	       0x18367a1ac _dispatch_client_callout + 36
9   libdispatch.dylib             	       0x183651c7c _dispatch_block_invoke_direct$VARIANT$armv81 + 212
10  FrontBoardServices            	       0x194418d6c __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 40
11  FrontBoardServices            	       0x1944182f0 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 176
12  FrontBoardServices            	       0x19441c3e0 -[FBSSerialQueue _performNextFromRunLoopSource] + 24
13  CoreFoundation                	       0x1839ce210 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
14  CoreFoundation                	       0x1839de238 __CFRunLoopDoSource0 + 204
15  CoreFoundation                	       0x18392163c __CFRunLoopDoSources0 + 356
16  CoreFoundation                	       0x183926a08 __CFRunLoopRun + 768
17  CoreFoundation                	       0x183939d7c CFRunLoopRunSpecific + 572
18  GraphicsServices              	       0x19dbae9a0 GSEventRunModal + 160
19  UIKitCore                     	       0x18616c05c -[UIApplication _run] + 1080
20  UIKitCore                     	       0x185f01ce0 UIApplicationMain + 2028
21  libswiftUIKit.dylib           	       0x199c77e80 UIApplicationMain(_:_:_:_:) + 100
22  ---                 	       0x104460484 static UIApplicationDelegate.main() + 104
23  ---                 	       0x10446040c static AppDelegate.$main() + 44
24  ---                 	       0x104460504 main + 28
25  dyld                          	       0x1046b8190 start + 444

Thread 1:
0   libsystem_pthread.dylib       	       0x1dd8dd9e8 start_wqthread + 0

Thread 2:
0   libsystem_pthread.dylib       	       0x1dd8dd9e8 start_wqthread + 0

Thread 3:
0   libsystem_pthread.dylib       	       0x1dd8dd9e8 start_wqthread + 0

Thread 4 name:  com.apple.uikit.eventfetch-thread
Thread 4:
0   libsystem_kernel.dylib        	       0x1bd390b10 mach_msg_trap + 8
1   libsystem_kernel.dylib        	       0x1bd391134 mach_msg + 72
2   CoreFoundation                	       0x183922ac0 __CFRunLoopServiceMachPort + 368
3   CoreFoundation                	       0x183926ba8 __CFRunLoopRun + 1184
4   CoreFoundation                	       0x183939d7c CFRunLoopRunSpecific + 572
5   Foundation                    	       0x18507200c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 232
6   Foundation                    	       0x1850b118c -[NSRunLoop(NSRunLoop) runUntilDate:] + 88
7   UIKitCore                     	       0x1860e9d58 -[UIEventFetcher threadMain] + 512
8   Foundation                    	       0x1850beefc __NSThread__start__ + 792
9   libsystem_pthread.dylib       	       0x1dd8df3a4 _pthread_start + 116
10  libsystem_pthread.dylib       	       0x1dd8dd9fc thread_start + 8

Thread 5:
0   libsystem_pthread.dylib       	       0x1dd8dd9e8 start_wqthread + 0

Thread 6:
0   libsystem_pthread.dylib       	       0x1dd8dd9e8 start_wqthread + 0

Thread 7:
0   libsystem_pthread.dylib       	       0x1dd8dd9e8 start_wqthread + 0


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x0000000000000000
    x4: 0x000000019ac59e55   x5: 0x000000016b9a6210   x6: 0x000000000000006e   x7: 0x0000000000000400
    x8: 0x0000000104700580   x9: 0x1761d7d550f057a2  x10: 0x000000016b9a5c70  x11: 0x000000000000000b
   x12: 0x0000000000000000  x13: 0x000000001882c800  x14: 0x0000000000000010  x15: 0x0000000000000002
   x16: 0x0000000000000148  x17: 0x0000000000000000  x18: 0x0000000000000000  x19: 0x0000000000000006
   x20: 0x0000000000000103  x21: 0x0000000104700660  x22: 0x0000000000000000  x23: 0x0000000104700660
   x24: 0x00000001f4f2d000  x25: 0x0000000000000002  x26: 0x0000000000000002  x27: 0x00000001f4f2d000
   x28: 0x00000001f4f2d000   fp: 0x000000016b9a6180   lr: 0x00000001dd8e9824
    sp: 0x000000016b9a6160   pc: 0x00000001bd3969e8 cpsr: 0x40000000
   far: 0x00000001f5dcd660  esr: 0x56000080  Address size fault

Binary Images:
       0x1bd390000 -        0x1bd3c1fff libsystem_kernel.dylib arm64  <28a82cbdb2103662af9e636819d8909a> /usr/lib/system/libsystem_kernel.dylib
       0x1dd8d9000 -        0x1dd8ecfff libsystem_pthread.dylib arm64  <ce7eb78851553c3888d812f1419fa5fa> /usr/lib/system/libsystem_pthread.dylib
       0x18de08000 -        0x18de82fff libsystem_c.dylib arm64  <5700e26c19b735c9b739e62c325f4fcc> /usr/lib/system/libsystem_c.dylib
       0x19ac44000 -        0x19ac5cfff libc++abi.dylib arm64  <a69670f6fe393e03a3f051781fbe97b5> /usr/lib/libc++abi.dylib
       0x19ab4d000 -        0x19ab82fff libobjc.A.dylib arm64  <78e77e2874d0371aa2466d41374ba19a> /usr/lib/libobjc.A.dylib
       0x183616000 -        0x183698fff libdispatch.dylib arm64  <56aa6e938d8e32feac73d3e79b1ba2f5> /usr/lib/system/libdispatch.dylib
       0x19440e000 -        0x1944acfff FrontBoardServices arm64  <833f5b02d9623b8aa5d2335e0f7d25a1> /System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices
       0x18391c000 -        0x183d56fff CoreFoundation arm64  <ea9c1df294c7379bbf8d970335b1552f> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
       0x19dbad000 -        0x19dbb5fff GraphicsServices arm64  <af306dd576573f63912fabc225106419> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
       0x185c80000 -        0x187409fff UIKitCore arm64  <fb5c2d366a053355b898d8d3c163d02e> /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
       0x199c50000 -        0x199caefff libswiftUIKit.dylib arm64  <1db1bbd9ecce3e58bba8e78f8b348f9c> /usr/lib/swift/libswiftUIKit.dylib
       0x104458000 -        0x104463fff --- arm64  <a9fc6635942d325e819e68d0d7de744a> /private/var/containers/Bundle/Application/9F25E552-3DE2-48CA-BA27-EC74AAC9FC10/---.app/---
       0x1046a0000 -        0x1046f3fff dyld arm64  <5e7ef5771cc5369aa04d28fbba883086> /usr/lib/dyld
       0x18505a000 -        0x18533afff Foundation arm64  <86d8a58db71f34c683e0014b2b835f1d> /System/Library/Frameworks/Foundation.framework/Foundation
       0x18dcbb000 -        0x18dde2fff UIFoundation arm64  <e5f1c79ed694397c8450b5da629d0973> /System/Library/PrivateFrameworks/UIFoundation.framework/UIFoundation

If I launch it "disconnected" I have this crash.

OK, something is wonky here. Your text mentions a mutex lock failed error but the crash report you posted has a backtrace like this:

Last Exception Backtrace:
0   CoreFoundation  … __exceptionPreprocess + 216
1   libobjc.A.dylib … objc_exception_throw + 56
2   CoreFoundation  … __CFDictionaryCreateGeneric + 0
3   UIFoundation    … UINibDecoderDecodeObjectForValue + 408
4   UIFoundation    … UINibDecoderDecodeObjectForValue + 1252
5   UIFoundation    … -[UINibDecoder decodeObjectForKey:] + 308

which clearly indicates a UIKit nib decoding issue. How is this crash report related to the mutex lock failed error?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

You can actually reproduce it with any app.

So, you can reproduce it using only built-in apps? If so, that’s clearly a bug in the OS (there’s no one else to blame! :-) and I encourage you to file it as such.

Please post your bug number, just for the record.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

We are experiencing the same issue. We had deployed an app last year. It's been working fine till the end of November when our client reported crashes on the app since they upgraded to iOS 15.1.1. According to them, the app was working fine on iOS 14.8. For testing purposes, we kept one of our devices to 14.2 and enrolled the other to the 15.2 beta. The results are, the app runs smoothly on 14.2 and even on 15.0. But on 15.1.1 and 15.2, there are crashes and they are mainly caused by NSPersistentStoreCoordinator where we have been dealing with privateConcurrency contexts. The crashes we mainly experience on latest OS say EXC_BAD_ACCESS. I do not know how this is linked with the crashes. Still waiting for some workaround. Anybody facing the same issue??

I'm running into the same issue app is crashing on IOS 15 when launch. any solution?

is your phone language English?

i have noticed that if changing device language , this issue no longer Exists!

So we are finally out of this problem. The issue was the CoreData thread violations. Thanks to the community's suggestion, we passed the -com.apple.CoreData.ConcurrencyDebug 1 argument and this helped figuring out all the violations which caused multiple crashes. After adding appropriate concurrency queues to the NSManagedObjectContext, we were able to run the app flawlessly on iOS 15.x.

In iOS 15, when the app is restarted, it immediately crashes.
 
 
Q