sparrowcode / PermissionsKit

Universal API for request permission and get its statuses.
https://x.com/sparrowcode_ios
MIT License
5.64k stars 462 forks source link

Fatal Exception - Invalid size {0, 0} #213

Closed JMCPH closed 3 years ago

JMCPH commented 4 years ago

I'm experiencing a crash, but unfortunately I'm not able to reproduce it.

The issue consists of the SPPermissions.SPPermissionsDialogView having an invalid size of {0, 0}.

Crash report Fatal Exception: NSInternalInconsistencyException Invalid size {0, 0} for item <SPPermissions.SPPermissionsDialogView: 0x104d1a8e0; frame = (207 537.6; 0 0); gestureRecognizers = <NSArray: 0x281555170>; layer = <CALayer: 0x281d45100>> in Dynamics

Stacktrace

Fatal Exception: NSInternalInconsistencyException
0  CoreFoundation                 0x187a725ac __exceptionPreprocess
1  libobjc.A.dylib                0x19baec42c objc_exception_throw
2  CoreFoundation                 0x18797b1b4 -[CFPrefsSearchListSource addManagedSourceForIdentifier:user:]
3  Foundation                     0x188cd97bc -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
4  UIKitCore                      0x189d9670c -[UIDynamicAnimator _registerBodyForItem:]
5  UIKitCore                      0x189da96d4 -[UISnapBehavior _associate]
6  UIKitCore                      0x189d93b1c -[UIDynamicAnimator _registerBehavior:]
7  UIKitCore                      0x189d938f0 -[UIDynamicAnimator addBehavior:]
8  SPPermissions                  0x1012bc338 partial apply for closure #3 in closure #1 in SPPermissionsDialogController.present(on:) (<compiler-generated>)
9  SPPermissions                  0x1012b8488 partial apply for closure #1 in static SPPermissionsDelay.wait(_:closure:) (<compiler-generated>)
10 SPPermissions                  0x1012b48bc thunk for @escaping @callee_guaranteed () -> () (<compiler-generated>)
11 libdispatch.dylib              0x187670ac8 _dispatch_client_callout
12 libdispatch.dylib              0x187673d60 _dispatch_continuation_pop
13 libdispatch.dylib              0x187685328 _dispatch_source_invoke
14 libdispatch.dylib              0x18767df34 _dispatch_main_queue_callback_4CF
15 CoreFoundation                 0x1879ef1e4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
16 CoreFoundation                 0x1879e93b4 __CFRunLoopRun
17 CoreFoundation                 0x1879e84bc CFRunLoopRunSpecific
18 GraphicsServices               0x19e46d820 GSEventRunModal
19 UIKitCore                      0x18a38c734 -[UIApplication _run]
20 UIKitCore                      0x18a391e10 UIApplicationMain
ivanvorobei commented 3 years ago

Sorry for long answer, you have it anymore?