Crash affecting iOS 15/15.1 on iPad

Our application is currently crashing in production for ipad running iOS 15/15.1 beta. If a developer builds that application directly to a device running iOS 15 or use simulator, the app will work as normal.

But we see a lot of crashes in the appstoreconnect analytics data. There were no reports of crashes from users. This bug cannot be reproduced on the device.

AppVariant:          1:iPad7,12:13
Code Type:           ARM-64 (Native)
Role:                Non UI

OS Version:          iPhone OS 15.1 (19B5052f)

Release Type:        Beta

Baseband Version:    2.50.05

Report Version:      104



Exception Type:  EXC_CRASH (SIGABRT)

Exception Codes: 0x0000000000000000, 0x0000000000000000

Exception Note:  EXC_CORPSE_NOTIFY

Triggered by Thread:  0



Last Exception Backtrace:

0   CoreFoundation                	0x18046a04c __exceptionPreprocess + 220 (NSException.m:200)

1   libobjc.A.dylib               	0x1990d9f54 objc_exception_throw + 60 (objc-exception.mm:565)

2   CoreFoundation                	0x1804c1180 +[NSException raise:format:] + 112 (NSException.m:156)

3   UIKitCore                     	0x182ac9714 -[UIViewController __supportedInterfaceOrientations] + 936 (UIViewController.m:10506)

4   UIKitCore                     	0x182a8877c -[UIViewController __withSupportedInterfaceOrientation:apply:] + 60 (UIViewController.m:10564)

5   UIKitCore                     	0x182e2aa7c -[UIViewController setInterfaceOrientation:] + 108 (UIViewController.m:10741)

6   UIKitCore                     	0x182a5022c -[UIViewController viewDidMoveToWindow:shouldAppearOrDisappear:] + 364 (UIViewController.m:6112)

7   UIKitCore                     	0x182b30b58 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 1504 (UIView.m:15916)

8   UIKitCore                     	0x182a56e18 __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 140 (UIView.m:12303)

9   CoreAutoLayout                	0x1993cf5f8 -[NSISEngine withBehaviors:performModifications:] + 88 (NSISEngine.m:1988)

10  UIKitCore                     	0x182ae6098 -[UIView(Hierarchy) _postMovedFromSuperview:] + 836 (UIView.m:471)

11  UIKitCore                     	0x182a02928 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 2148 (UIView.m:16699)

12  UIKitCore                     	0x182cf31a0 -[_UIAlertControllerPresentationController presentationTransitionWillBegin] + 220 (_UIAlertControllerPresentationController.m:196)

13  UIKitCore                     	0x182aa1f6c __80-[UIPresentationController _initViewHierarchyForPresentationSuperview:inWindow:]_block_invoke + 2632 (UIPresentationController.m:1649)

14  UIKitCore                     	0x182f37980 __56-[UIPresentationController runTransitionForCurrentState]_block_invoke.424 + 408 (UIPresentationController.m:1137)

15  UIKitCore                     	0x182ba2f38 -[_UIAfterCACommitBlock run] + 72 (_UIAfterCACommitQueue.m:137)

16  UIKitCore                     	0x1829dd944 _runAfterCACommitDeferredBlocks + 304 (UIApplication.m:3011)

17  UIKitCore                     	0x1829de1b0 _cleanUpAfterCAFlushAndRunDeferredBlocks + 132 (UIApplication.m:2989)

18  UIKitCore                     	0x1829de360 _afterCACommitHandler + 60 (UIApplication.m:3040)

19  CoreFoundation                	0x180412560 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 36 (CFRunLoop.c:1804)

20  CoreFoundation                	0x1803e1844 __CFRunLoopDoObservers + 572 (CFRunLoop.c:1917)

21  CoreFoundation                	0x1803dc8dc __CFRunLoopRun + 1052 (CFRunLoop.c:2979)

22  CoreFoundation                	0x1803f03b8 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)

23  GraphicsServices              	0x19c42038c GSEventRunModal + 164 (GSEvent.c:2200)

24  UIKitCore                     	0x182d90b60 -[UIApplication _run] + 1100 (UIApplication.m:3494)

25  UIKitCore                     	0x182b0f8b8 UIApplicationMain + 2124 (UIApplication.m:5051)

26  —                      	0x1021c2af4 main + 88 (main.m:14)

27  dyld                          	0x1028b1a24 start + 520 (dyldMain.cpp:876)

  • Hi everyone,

    Hope you are all well. Any update on this iOS 15 crashing issue? The App Store Connect Analytics is reporting a crazy amount crashes for our apps with iOS 15 users, but we and our testers have not been able to reproduce any crashes. This has been going on since last year and we have reached out to Apple several times about this with no response. We cannot run crash logs bc we cannot reproduce this crashing on any of our devices even though crashing is being reported in App Store Connect Analytics. Has anyone else experienced this with their apps and solved it?

    Looking forward to hearing back from you all so we can solve this for all developers experiencing it.

Add a Comment

Replies

What about main problem on this thread?

That problem is clearly related to UIKit and UIKit isn’t really my area of expertise. I added the UIKit tag to this thread in the hope that someone who knows more about it might chime in. Given that this hasn’t happened, my recommendation is that you open a DTS tech support incident and discuss it with one of DTS’s UIKit experts.

Share and Enjoy

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

Earlier I wrote:

That problem is clearly related to UIKit and UIKit isn’t really my area of expertise.

However, I was able to track down some info that you might find useful.

With reference to the crash reports you posted here, both issues look like the same thing so I’m going to focus on the first report (2021-11-07_18-53-19.6277_-0600-a6819bf8dababfa09295076b96f80e759af28638.crash).

Consider this:

Exception Type:  EXC_CRASH (SIGABRT)

It indicates that your process crashed itself by calling abort. The presence of the Last Exception Backtrace section shows that this was because of an un-handled language exception. The backtrace in that section is this:

Last Exception Backtrace:
0 CoreFoundation  … __exceptionPreprocess + 220 …
1 libobjc.A.dylib … objc_exception_throw + 60 …
2 CoreFoundation  … +[NSException raise:format:] + 112 …
3 UIKitCore       … -[UIViewController __supportedInterfaceOrientations] + 936 …

So UIViewController is grumpy about something. UIKit is not my forte so I can’t offer detailed inside into this. However, the message associated with this exception is Supported orientations has no common orientation with the application, and [CCC shouldAutorotate] is returning YES, where CCC is the specific UIViewController subclass name. Hopefully that gives you some idea as to where you might look.

Share and Enjoy

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