14.2 C
New York
Sunday, September 8, 2024

ios – iPad Crash :Anticipated a popover view, discovered (null)


I received a crash with the next stack hint:

*** Terminating app resulting from uncaught exception 'NSInternalInconsistencyException', motive:Anticipated a popover view, discovered (null)
Final Exception Backtrace:
0 CoreFoundation ___exceptionPreprocess (in CoreFoundation) 176
1 libobjc.A.dylib objc::DenseMap, objc::DenseMap, objc::DenseMapInfo, objc::element::DenseMapPair>, objc::DenseMapValueInfo<:densemap const="" objc::objcassociation="" objc::densemapvalueinfo="">, objc::DenseMapInfo, objc::element::DenseMapPair>>, objc::DenseMapInfo>, obj (in libobjc.A.dylib) 451
2 Basis -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] (in Basis) 187
3 UIKitCore -[_UIModernPopoverAnimationController animateTransition:] (in UIKitCore) 1575
4 UIKitCore ____UIViewControllerTransitioningRunCustomTransition_block_invoke_3 (in UIKitCore) 51
5 UIKitCore +[UIKeyboardSceneDelegate _pinInputViewsForKeyboardSceneDelegate:onBehalfOfResponder:duringBlock:] (in UIKitCore) 95
6 UIKitCore ____UIViewControllerTransitioningRunCustomTransition_block_invoke_2 (in UIKitCore) 195
7 UIKitCore +[UIView(Animation) _setAlongsideAnimations:toRunByEndOfBlock:] (in UIKitCore) 179
8 UIKitCore __UIViewControllerTransitioningRunCustomTransition (in UIKitCore) 483
9 UIKitCore ___56-[UIPresentationController runTransitionForCurrentState]_block_invoke_3 (in UIKitCore) 1583
10 UIKitCore -[_UIAfterCACommitBlock run] (in UIKitCore) 71
11 UIKitCore -[_UIAfterCACommitQueue flush] (in UIKitCore) 163
12 libdispatch.dylib __dispatch_call_block_and_release (in libdispatch.dylib) 31
13 libdispatch.dylib __dispatch_client_callout (in libdispatch.dylib) 19
14 libdispatch.dylib __dispatch_main_queue_drain (in libdispatch.dylib) 987
15 libdispatch.dylib __dispatch_runloop_queue_handle_dispose (in libdispatch.dylib) 1891
16 CoreFoundation ___CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ (in CoreFoundation) 15
17 CoreFoundation ___CFRunLoopRun (in CoreFoundation) 1995
18 CoreFoundation -[NSDictionary enumerateKeysAndObjectsUsingBlock:] (in CoreFoundation) 1123
19 GraphicsServices ___GSKeyboardClassInitialize (in GraphicsServices) 203
20 UIKitCore -[UIApplication _run] (in UIKitCore) 887
21 UIKitCore -[UICollectionView _reconfigureCell:forItemAtIndexPath:] (in UIKitCore) 1431
22 AppName primary (in AppName) (primary.m:20) 55
23 dyld 0x00000001ae4a5e4c 71846EAC-EE65-3697-BF7D-790B6A07DCDB + 249420
Thread 0 Crashed:
0 AppName _UncaughtExceptionHandler (in AppName) (BDPanSecurityGuiderManager+IgnoringCrash.m:19) 12
1 AppName _bd_ad_handle_exception(NSException*) (in AppName) 84
2 CoreFoundation ___handleUncaughtException (in CoreFoundation) 660
3 libobjc.A.dylib _objc_terminate() (in libobjc.A.dylib) 132
4 AppName hmdBU_cpp_terminate_handle() (in AppName) (HMDBUCrashDetectCPP.mm:118) 4
5 libc++abi.dylib std::__terminate(void (*)()) (in libc++abi.dylib) 16
6 libc++abi.dylib __cxxabiv1::(nameless namespace)::InitByteGlobalMutex<__cxxabiv1::(nameless namespace)::LibcppMutex, __cxxabiv1::(nameless namespace)::LibcppCondVar, __cxxabiv1::(nameless namespace)::GlobalStatic<__cxxabiv1::(nameless namespace)::LibcppMutex>::occasion, __cxxabiv1::(nameless namespace)::GlobalStatic<__cxxabiv1::(nameless namespace)::LibcppCondVar>::occasion, &__cxxabiv1::(nameless namespace)::PlatformThreadID()>::LockGuard::~LockGuard() (in libc++abi.dylib) 212
7 libdispatch.dylib __dispatch_client_callout (in libdispatch.dylib) 40
8 libdispatch.dylib __dispatch_main_queue_drain (in libdispatch.dylib) 988
9 libdispatch.dylib __dispatch_runloop_queue_handle_dispose (in libdispatch.dylib) 1892
10 CoreFoundation ___CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ (in CoreFoundation) 16
11 CoreFoundation ___CFRunLoopRun (in CoreFoundation) 1996
12 CoreFoundation -[NSDictionary enumerateKeysAndObjectsUsingBlock:] (in CoreFoundation) 1124
13 GraphicsServices ___GSKeyboardClassInitialize (in GraphicsServices) 204
14 UIKitCore -[UIApplication _run] (in UIKitCore) 888
15 UIKitCore -[UICollectionView _reconfigureCell:forItemAtIndexPath:] (in UIKitCore) 1432
16 AppName primary (in AppName) (primary.m:20) 56
17 0x0000000000000000 0x1ae4a5e4c 0x0 + 7219076684

There is no such thing as a clear stack hint for this info, so I do not know what the reason for the crash is. The related codes I consider are as follows, however they do not appear to have a lot issues

+ (void)openFileShareExtensionWithURL:(NSURL *)url
                 navigationController:(UIViewController *)vc {
    FileOpenHelper *helper = [[FileOpenHelper alloc] init];
    docInteractionController = [UIDocumentInteractionController interactionControllerWithURL:url];
    docInteractionController.delegate = helper;
    CGRect body;
    if ([UIDevice currentDevice].isiPad) {
        body = CGRectMake(CGRectGetWidth(vc.view.body) / 2.0, [BHStyles topNavInsetHeight] + 10, 0, 0);
    } else {
        body = vc.view.bounds;
    }
    BOOL r = [docInteractionController presentOptionsMenuFromRect:frame
                                                           inView:vc.view
                                                         animated:YES];
    
    if (!r) {
        [SVProgressHUD showErrorWithStatus:NSLocalizedString(@"Storage_NoSupport", nil) duration:1.5f];
    }
}

I attempted to breed, however to no avail.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles