Woocommerce-ios: Core Data Crash in TracksProvider

Created on 3 Jan 2019  路  2Comments  路  Source: woocommerce/woocommerce-ios

Here is the crash log:

Thread 0 name:
Thread 0 Crashed:
0   libsystem_kernel.dylib          0x00000001a64fb104 __pthread_kill + 8
1   libsystem_pthread.dylib         0x00000001a657b948 pthread_kill$VARIANT$armv81 + 296 (pthread.c:1492)
2   libsystem_c.dylib               0x00000001a6452e1c __abort + 152 (abort.c:131)
3   libsystem_c.dylib               0x00000001a6452d84 abort + 152 (abort.c:102)
4   AutomatticTracks                0x000000010489dbbc -[TracksContextManager managedObjectContext] + 23484 (TracksContextManager.m:63)
5   AutomatticTracks                0x000000010489dbfc -[TracksContextManager managedObjectContext] + 23548 (TracksContextManager.m:0)
6   AutomatticTracks                0x00000001048a1390 -[TracksEventService initWithContextManager:] + 37776 (TracksEventService.m:19)
7   AutomatticTracks                0x00000001048a1cb8 -[TracksService initWithContextManager:] + 40120 (TracksService.m:76)
8   WooCommerce                     0x000000010456ab44 TracksProvider.init() + 256836 (TracksProvider.swift:17)
9   WooCommerce                     0x0000000104606c98 globalinit_07_C669C0B24F6E27AE6468382D85808285A_func277 + 896152 (WooAnalytics.swift:11)
10  libdispatch.dylib               0x00000001a639e484 _dispatch_client_callout + 16 (object.m:511)
11  libdispatch.dylib               0x00000001a636e234 _dispatch_once_callout + 28 (once.c:52)
12  libswiftCore.dylib              0x00000001066bde18 0x1063fc000 + 2891288
13  WooCommerce                     0x000000010459396c specialized AppDelegate.setupAnalytics() + 424300 (AppDelegate.swift:217)
14  WooCommerce                     0x0000000104594004 specialized AppDelegate.application(_:willFinishLaunchingWithOptions:) + 425988 (AppDelegate.swift:69)
15  WooCommerce                     0x00000001045929a0 @objc AppDelegate.application(_:willFinishLaunchingWithOptions:) + 420256 (<compiler-generated>:0)
16  UIKitCore                       0x00000001d3b29d34 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 240 (UIApplication.m:1998)
17  UIKitCore                       0x00000001d3b2b548 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3340 (UIApplication.m:2393)
18  UIKitCore                       0x00000001d3b30f94 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1552 (UIApplication.m:3808)
19  UIKitCore                       0x00000001d33cc8f4 __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActi... + 784 (_UICanvasLifecycleMonitor.m:174)
20  UIKitCore                       0x00000001d33d5574 +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 160 (_UICanvas.m:775)
21  UIKitCore                       0x00000001d33cc570 -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivatio... + 240 (_UICanvasLifecycleMonitor.m:152)
22  UIKitCore                       0x00000001d33ccf10 -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 1076 (_UICanvasLifecycleMonitor.m:229)
23  UIKitCore                       0x00000001d33cb010 __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 772 (_UIApplicationCanvas.m:0)
24  UIKitCore                       0x00000001d33cacbc -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 432 (_UIApplicationCanvas.m:158)
25  UIKitCore                       0x00000001d33cfe7c __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff... + 220 (_UICanvasLifecycleSettingsDiffAction.m:156)
26  UIKitCore                       0x00000001d33d0ddc _performActionsWithDelayForTransitionContext + 112 (_UICanvasSettingsDiffAction.m:34)
27  UIKitCore                       0x00000001d33cfd34 -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:from... + 248 (_UICanvasLifecycleSettingsDiffAction.m:130)
28  UIKitCore                       0x00000001d33d4c20 -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 368 (_UICanvas.m:701)
29  UIKitCore                       0x00000001d3b2f48c -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 540 (UIApplication.m:3372)
30  UIKitCore                       0x00000001d371a1fc -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 364 (UIApplicationSceneClientAgent.m:41)
31  FrontBoardServices              0x00000001a939b9d4 -[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 444 (FBSSceneImpl.m:442)
32  FrontBoardServices              0x00000001a93a679c __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 260 (FBSWorkspace.m:558)
33  FrontBoardServices              0x00000001a93a5e94 __40-[FBSWorkspace _performDelegateCallOut:]_block_invoke + 64 (FBSWorkspace.m:501)
34  libdispatch.dylib               0x00000001a639e484 _dispatch_client_callout + 16 (object.m:511)
35  libdispatch.dylib               0x00000001a63753e0 _dispatch_block_invoke_direct$VARIANT$armv81 + 216 (queue.c:459)
36  FrontBoardServices              0x00000001a93daa9c __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 40 (FBSSerialQueue.m:156)
37  FrontBoardServices              0x00000001a93da728 -[FBSSerialQueue _performNext] + 416 (FBSSerialQueue.m:188)
38  FrontBoardServices              0x00000001a93dad44 -[FBSSerialQueue _performNextFromRunLoopSource] + 56 (FBSSerialQueue.m:222)
39  CoreFoundation                  0x00000001a68f51f0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24 (CFRunLoop.c:1980)
40  CoreFoundation                  0x00000001a68f5170 __CFRunLoopDoSource0 + 88 (CFRunLoop.c:2015)
41  CoreFoundation                  0x00000001a68f4a54 __CFRunLoopDoSources0 + 176 (CFRunLoop.c:2051)
42  CoreFoundation                  0x00000001a68ef920 __CFRunLoopRun + 1040 (CFRunLoop.c:2922)
43  CoreFoundation                  0x00000001a68ef1f0 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3247)
44  GraphicsServices                0x00000001a8b68584 GSEventRunModal + 100 (GSEvent.c:2245)
45  UIKitCore                       0x00000001d3b32d40 UIApplicationMain + 212 (UIApplication.m:4347)
46  WooCommerce                     0x0000000104532284 main + 25220 (AppDelegate.swift:14)
47  libdyld.dylib                   0x00000001a63aebb4 start + 4

The crash appears to be related to Core Data and triggered by AppDelegate.setupAnalytics() called from AppDelegate.application(_:willFinishLaunchingWithOptions:) in

Fabric link: http://crashes.to/s/789def1f677 (Note: Fabric is currently resymbolicating this since there were missing dSYMs). There have been 3 crashes (each a different user).

This seems to have been introduced in 0.14. Although TracksProvider.swift hasn't been updated since October, the AutomatticTracks pod was updated in 0.13.

bug crash

All 2 comments

Updated description to point to correct Fabric URL

I still can't reproduce this one. I'm going to leave it open for the time being but will remove it from MVLP. #571 should help us if this one continues.

Was this page helpful?
0 / 5 - 0 ratings