Closed thiagodelmotte closed 6 years ago
Hy guys, all good?
Thank you guys for the support and this lovely pod. I am using in the my projects, and now, for the first time, I get an error in fabric/crashlytics.
Basically, there is a problem with the observer "applicationDidEnterBackground":
Fatal Exception: NSInvalidArgumentException -[SwiftyDrop.Drop applicationDidEnterBackground:]: unrecognized selector sent to instance 0x10d121300
I'm in the release 4.0.1 with Swift 4.
Do you guys have any clues about that?
Thank you so much!
# Organization: Thiago Delmotte’s Projects # Platform: ios # Version: 1.0 (22) # Issue #: 1 # Date: 2017-11-07T20:20:00Z # OS Version: 11.1.0 (15B93) # Device: iPhone 6s # RAM Free: 15.4% # Disk Free: 56.9% #0. Crashed: com.twitter.crashlytics.ios.exception 0 stuart 0x100d66d6c CLSProcessRecordAllThreads (CLSProcess.c:376) 1 stuart 0x100d66d6c CLSProcessRecordAllThreads (CLSProcess.c:376) 2 stuart 0x100d66c1c CLSProcessRecordAllThreads (CLSProcess.c:407) 3 stuart 0x100d56ab4 CLSHandler (CLSHandler.m:26) 4 stuart 0x100d64d44 __CLSExceptionRecord_block_invoke (CLSException.mm:199) 5 libdispatch.dylib 0x185fe5048 _dispatch_client_callout + 16 6 libdispatch.dylib 0x185fedae8 _dispatch_queue_barrier_sync_invoke_and_complete + 56 7 stuart 0x100d647dc CLSExceptionRecord (CLSException.mm:206) 8 stuart 0x100d64614 CLSExceptionRecordNSException (CLSException.mm:102) 9 stuart 0x100d64228 CLSTerminateHandler() (CLSException.mm:259) 10 libc++abi.dylib 0x1858a054c std::__terminate(void (*)()) + 16 11 libc++abi.dylib 0x1858a05b8 std::terminate() + 60 12 libobjc.A.dylib 0x1858b076c _destroyAltHandlerList + 10 13 libdispatch.dylib 0x185fe505c _dispatch_client_callout + 36 14 libdispatch.dylib 0x185fec6c8 _dispatch_block_invoke_direct$VARIANT$mp + 288 15 FrontBoardServices 0x188d419f4 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 36 16 FrontBoardServices 0x188d41698 -[FBSSerialQueue _performNext] + 404 17 FrontBoardServices 0x188d41c34 -[FBSSerialQueue _performNextFromRunLoopSource] + 56 18 CoreFoundation 0x18660a2e8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24 19 CoreFoundation 0x18660a268 __CFRunLoopDoSource0 + 88 20 CoreFoundation 0x186609af0 __CFRunLoopDoSources0 + 204 21 CoreFoundation 0x1866076c8 __CFRunLoopRun + 1048 22 CoreFoundation 0x186527fb8 CFRunLoopRunSpecific + 436 23 GraphicsServices 0x1883bff84 GSEventRunModal + 100 24 UIKit 0x18fafc2f4 UIApplicationMain + 208 25 stuart 0x100caca68 main (MainTabBarController.swift:10) 26 libdyld.dylib 0x18604a56c start + 4 -- Fatal Exception: NSInvalidArgumentException 0 CoreFoundation 0x186661d04 __exceptionPreprocess 1 libobjc.A.dylib 0x1858b0528 objc_exception_throw 2 CoreFoundation 0x18666f1c8 __methodDescriptionForSelector 3 UIKit 0x18fe5711c -[UIResponder doesNotRecognizeSelector:] 4 CoreFoundation 0x1866676b0 ___forwarding___ 5 CoreFoundation 0x18654d01c _CF_forwarding_prep_0 6 CoreFoundation 0x1865f40bc __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ 7 CoreFoundation 0x1865f365c _CFXRegistrationPost 8 CoreFoundation 0x1865f33c0 ___CFXNotificationPost_block_invoke 9 CoreFoundation 0x1866709c4 -[_CFXNotificationRegistrar find:object:observer:enumerator:] 10 CoreFoundation 0x18652a0c0 _CFXNotificationPost 11 Foundation 0x186f4b498 -[NSNotificationCenter postNotificationName:object:userInfo:] 12 UIKit 0x18fd04f6c __47-[UIApplication _applicationDidEnterBackground]_block_invoke 13 UIKit 0x18fe0e0bc +[UIViewController _performWithoutDeferringTransitions:] 14 UIKit 0x18fd04dc0 -[UIApplication _applicationDidEnterBackground] 15 UIKit 0x18ff97608 -[__UICanvasLifecycleMonitor_Compatability deactivateEventsOnly:withContext:forceExit:completion:] 16 UIKit 0x190712530 __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke 17 UIKit 0x19071235c -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] 18 UIKit 0x190484294 __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke 19 UIKit 0x19061b0ac _performActionsWithDelayForTransitionContext 20 UIKit 0x190484144 -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] 21 UIKit 0x19026a2d8 -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] 22 UIKit 0x19010cd68 -[UIApplicationSceneClientAgent scene:handleEvent:withCompletion:] 23 FrontBoardServices 0x188d0e20c __80-[FBSSceneImpl updater:didUpdateSettings:withDiff:transitionContext:completion:]_block_invoke.362 24 libdispatch.dylib 0x185fe5048 _dispatch_client_callout 25 libdispatch.dylib 0x185fec6c8 _dispatch_block_invoke_direct$VARIANT$mp 26 FrontBoardServices 0x188d419f4 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ 27 FrontBoardServices 0x188d41698 -[FBSSerialQueue _performNext] 28 FrontBoardServices 0x188d41c34 -[FBSSerialQueue _performNextFromRunLoopSource] 29 CoreFoundation 0x18660a2e8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ 30 CoreFoundation 0x18660a268 __CFRunLoopDoSource0 31 CoreFoundation 0x186609af0 __CFRunLoopDoSources0 32 CoreFoundation 0x1866076c8 __CFRunLoopRun 33 CoreFoundation 0x186527fb8 CFRunLoopRunSpecific 34 GraphicsServices 0x1883bff84 GSEventRunModal 35 UIKit 0x18fafc2f4 UIApplicationMain 36 stuart 0x100caca68 main (MainTabBarController.swift:10) 37 libdyld.dylib 0x18604a56c start #0. Crashed: com.twitter.crashlytics.ios.exception 0 stuart 0x100d66d6c CLSProcessRecordAllThreads (CLSProcess.c:376) 1 stuart 0x100d66d6c CLSProcessRecordAllThreads (CLSProcess.c:376) 2 stuart 0x100d66c1c CLSProcessRecordAllThreads (CLSProcess.c:407) 3 stuart 0x100d56ab4 CLSHandler (CLSHandler.m:26) 4 stuart 0x100d64d44 __CLSExceptionRecord_block_invoke (CLSException.mm:199) 5 libdispatch.dylib 0x185fe5048 _dispatch_client_callout + 16 6 libdispatch.dylib 0x185fedae8 _dispatch_queue_barrier_sync_invoke_and_complete + 56 7 stuart 0x100d647dc CLSExceptionRecord (CLSException.mm:206) 8 stuart 0x100d64614 CLSExceptionRecordNSException (CLSException.mm:102) 9 stuart 0x100d64228 CLSTerminateHandler() (CLSException.mm:259) 10 libc++abi.dylib 0x1858a054c std::__terminate(void (*)()) + 16 11 libc++abi.dylib 0x1858a05b8 std::terminate() + 60 12 libobjc.A.dylib 0x1858b076c _destroyAltHandlerList + 10 13 libdispatch.dylib 0x185fe505c _dispatch_client_callout + 36 14 libdispatch.dylib 0x185fec6c8 _dispatch_block_invoke_direct$VARIANT$mp + 288 15 FrontBoardServices 0x188d419f4 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 36 16 FrontBoardServices 0x188d41698 -[FBSSerialQueue _performNext] + 404 17 FrontBoardServices 0x188d41c34 -[FBSSerialQueue _performNextFromRunLoopSource] + 56 18 CoreFoundation 0x18660a2e8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24 19 CoreFoundation 0x18660a268 __CFRunLoopDoSource0 + 88 20 CoreFoundation 0x186609af0 __CFRunLoopDoSources0 + 204 21 CoreFoundation 0x1866076c8 __CFRunLoopRun + 1048 22 CoreFoundation 0x186527fb8 CFRunLoopRunSpecific + 436 23 GraphicsServices 0x1883bff84 GSEventRunModal + 100 24 UIKit 0x18fafc2f4 UIApplicationMain + 208 25 stuart 0x100caca68 main (MainTabBarController.swift:10) 26 libdyld.dylib 0x18604a56c start + 4 #1. com.apple.uikit.eventfetch-thread 0 libsystem_kernel.dylib 0x186158bc4 mach_msg_trap + 8 1 libsystem_kernel.dylib 0x186158a3c mach_msg + 72 2 CoreFoundation 0x186609c74 __CFRunLoopServiceMachPort + 196 3 CoreFoundation 0x186607840 __CFRunLoopRun + 1424 4 CoreFoundation 0x186527fb8 CFRunLoopRunSpecific + 436 5 Foundation 0x186f516e4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304 6 Foundation 0x186f70afc -[NSRunLoop(NSRunLoop) runUntilDate:] + 96 7 UIKit 0x19065b2f4 -[UIEventFetcher threadMain] + 136 8 Foundation 0x187052860 __NSThread__start__ + 996 9 libsystem_pthread.dylib 0x18628c31c _pthread_body + 308 10 libsystem_pthread.dylib 0x18628c1e8 _pthread_body + 310 11 libsystem_pthread.dylib 0x18628ac28 thread_start + 4 #2. com.twitter.crashlytics.ios.MachExceptionServer 0 libsystem_kernel.dylib 0x186158bc4 mach_msg_trap + 8 1 libsystem_kernel.dylib 0x186158a3c mach_msg + 72 2 stuart 0x100d51990 CLSMachExceptionServer (CLSMachException.c:180) 3 libsystem_pthread.dylib 0x18628c31c _pthread_body + 308 4 libsystem_pthread.dylib 0x18628c1e8 _pthread_body + 310 5 libsystem_pthread.dylib 0x18628ac28 thread_start + 4 #3. Thread 0 libsystem_kernel.dylib 0x186179dbc __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x18628afa0 _pthread_wqthread + 884 2 libsystem_pthread.dylib 0x18628ac20 start_wqthread + 4 #4. com.apple.NSURLConnectionLoader 0 libsystem_kernel.dylib 0x186158bc4 mach_msg_trap + 8 1 libsystem_kernel.dylib 0x186158a3c mach_msg + 72 2 CoreFoundation 0x186609c74 __CFRunLoopServiceMachPort + 196 3 CoreFoundation 0x186607840 __CFRunLoopRun + 1424 4 CoreFoundation 0x186527fb8 CFRunLoopRunSpecific + 436 5 CFNetwork 0x186c92264 +[NSURLConnection(Loader) _resourceLoadLoop:] + 404 6 Foundation 0x187052860 __NSThread__start__ + 996 7 libsystem_pthread.dylib 0x18628c31c _pthread_body + 308 8 libsystem_pthread.dylib 0x18628c1e8 _pthread_body + 310 9 libsystem_pthread.dylib 0x18628ac28 thread_start + 4 #5. Thread 0 libsystem_pthread.dylib 0x18628ac1c start_wqthread + 122 #6. Thread 0 libsystem_kernel.dylib 0x186179dbc __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x18628afa0 _pthread_wqthread + 884 2 libsystem_pthread.dylib 0x18628ac20 start_wqthread + 4 #7. Thread 0 libsystem_pthread.dylib 0x18628ac1c start_wqthread + 122 #8. BKSAssertionClientMultiplexer 0 libsystem_kernel.dylib 0x18617a800 kevent_id + 8 1 libdispatch.dylib 0x1860008f8 _dispatch_kq_poll + 204 2 libdispatch.dylib 0x185ffff0c _dispatch_event_loop_poke$VARIANT$mp + 412 3 BaseBoard 0x188b34c0c -[BSBaseXPCClient _sendMessage:withReplyHandler:waitForReply:waitDuration:] + 416 4 AssertionServices 0x188b87b74 -[BKSAssertionClientMultiplexer sendEvent:withAssertionType:forEventType:responseHandler:] + 272 5 AssertionServices 0x188b85134 -[BKSAssertion _clientQueue_invalidate:] + 172 6 libdispatch.dylib 0x185fe5048 _dispatch_client_callout + 16 7 libdispatch.dylib 0x185fedae8 _dispatch_queue_barrier_sync_invoke_and_complete + 56 8 AssertionServices 0x188b84ecc -[BKSAssertion invalidate] + 84 9 UIKit 0x18fae4d0c -[_UIBackgroundTaskInfo invalidate] + 44 10 UIKit 0x18fd18ea0 -[UIApplication _endBackgroundTask:] + 84 11 stuart 0x100d7c3d4 -[ANSActivity endAndInvalidateBackgroundTask] (ANSActivity.m:150) 12 stuart 0x100d7c288 -[ANSActivity end] (ANSActivity.m:128) 13 stuart 0x100d78a50 -[ANSActivityOperation main] (ANSActivityOperation.m:36) 14 Foundation 0x186f5d620 -[__NSOperationInternal _start:] + 848 15 Foundation 0x18702f004 __NSOQSchedule_f + 404 16 libdispatch.dylib 0x185fe5048 _dispatch_client_callout + 16 17 libdispatch.dylib 0x185fed3d4 _dispatch_continuation_pop$VARIANT$mp + 428 18 libdispatch.dylib 0x185febcd4 _dispatch_async_redirect_invoke$VARIANT$mp + 604 19 libdispatch.dylib 0x185ff21c8 _dispatch_root_queue_drain + 596 20 libdispatch.dylib 0x185ff1f10 _dispatch_worker_thread3 + 120 21 libsystem_pthread.dylib 0x18628b120 _pthread_wqthread + 1268 22 libsystem_pthread.dylib 0x18628ac20 start_wqthread + 4
Well, I think I got the solution and I also made a PR for you guys. I've made some tests here and It's fixed for me! @morizotter
I merged the pr and release 4.0.2. Thanks! @thiagodelmotte
Hy guys, all good?
Thank you guys for the support and this lovely pod. I am using in the my projects, and now, for the first time, I get an error in fabric/crashlytics.
Basically, there is a problem with the observer "applicationDidEnterBackground":
Fatal Exception: NSInvalidArgumentException -[SwiftyDrop.Drop applicationDidEnterBackground:]: unrecognized selector sent to instance 0x10d121300
I'm in the release 4.0.1 with Swift 4.
Do you guys have any clues about that?
Thank you so much!