Posts

Post not yet marked as solved
0 Replies
10 Views
Hi, One application I'm maintaining crashes on iOS16 beta 3 with an exception "Supported orientations has no common orientation with the application, and [UIAlertController shouldAutorotate] is returning YES". I'm running out of ideas how totrace down the reason. It only happens when the Main Thread checker is enabled it happens even if I display the alertcontroller totally early in applicationDidFinishLaunching a new setup sample with pretty much identical code (see below) until applicationDidFinishLaunching (and main.xib) does not throw the exception regardless of the Main Thread checker state I validated the build settings are identical between the sample and the crashing app #import "OCViewController.h" @interface OCAppDelegate: NSObject <UIApplicationDelegate> @property (nonatomic, readwrite, strong) IBOutlet UIWindow                  *window; @property (nonatomic, readwrite, strong) IBOutlet UINavigationController    *navigationController; @end int main(int argc, char * argv[]) {     @autoreleasepool {         return UIApplicationMain(argc, argv, nil, NSStringFromClass([OCAppDelegate class]));     } } @implementation OCAppDelegate - (void)applicationDidFinishLaunching:(UIApplication *)application {     OCViewController *vc = [OCViewController new];     self.window.rootViewController = vc;     [self.window makeKeyAndVisible];     [vc showAlert]; } @end @implementation OCViewController - (IBAction) showAlert {    UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"title" message:@"Test" preferredStyle:UIAlertControllerStyleAlert];    // NSLog( @"%@", [[[[UIApplication sharedApplication] keyWindow] rootViewController] valueForKey:@"_printHierarchy"] );    [alertController addAction:[UIAlertAction actionWithTitle:NSLocalizedString(@"OK", nil)                                                        style:UIAlertActionStyleDefault                                                      handler:^(UIAlertAction * _Nonnull action) {}                                ]     ];    [[[[UIApplication sharedApplication] keyWindow] rootViewController] presentViewController:alertController animated:YES completion:nil]; } @end The backtrace is +[NSException raise:format:] + 112 -[UIViewController __supportedInterfaceOrientations] + 808 -[UIViewController __withSupportedInterfaceOrientation:apply:] + 48 -[UIViewController setInterfaceOrientation:] + 108 -[UIViewController viewDidMoveToWindow:shouldAppearOrDisappear:] + 268 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 1232 -[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 112 -[NSISEngine withBehaviors:performModifications:] + 84 -[UIView _postMovedFromSuperview:] + 672 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1904 -[_UIAlertControllerPresentationController presentationTransitionWillBegin] + 148 __80-[UIPresentationController _initViewHierarchyForPresentationSuperview:inWindow:]_block_invoke + 2008 [....]
Posted
by TH0MAS.
Last updated
.
Post not yet marked as solved
2 Replies
709 Views
Hi, I use device-local speech recognition for speech input. Now some iOS 15 upgraded devices return the new error domain / code kLSRErrorDomain, code 201 (previously the errors were mostly in kAFAssistantErrorDomain). Has anybody an idea what it means and how to fix it? Thanks!
Posted
by TH0MAS.
Last updated
.
Post not yet marked as solved
3 Replies
471 Views
Hi, I see for a certain low percentage of usage a crash in a routine that is dispatched async to the main thread - for multiple iOS Versions. Has anybody an idea what might be the reason? Thanks! EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000a275a9dec libobjc.A.dylib 0x1a005a2e4 objc_opt_class + 16 1 UIKitCore 0x18ded3408 -[UIImageView isAnimating] + 48 2 UIKitCore 0x18ded37f8 -[UIImageView setBackgroundColor:] + 56 3 SomeApp 0x1042abc10 -[SomeView updateViewWithImage] + yyy (SomeView.m:yyy) (void) updateViewWithImage {} // Lots of geometry calculation removed if (_logoView &amp;&amp; self.logoImage) { // crash here: _logoView.backgroundColor = [UIColor clearColor]; _logoView.frame = CGRectMake(0, round((self.frame.size.height - imgHeight) / 2), round(imgWidth), round(imgHeight)); _logoView.image = self.logoImage; } }
Posted
by TH0MAS.
Last updated
.