usabilla-u4a-ios-swift-sdk icon indicating copy to clipboard operation
usabilla-u4a-ios-swift-sdk copied to clipboard

Usabilla crashes at CampaignManager.fetchCampaignStatusForEventEngine

Open dyang opened this issue 2 years ago • 0 comments

This might be related to #240, but the crashlogs look rather different so I'm filing this separately.

The app I'm working on uses Usabilla 6.12.0. Recently I'm getting crashes in CampaignManager.fetchCampaignStatusForEventEngine, e.g.:

Crashed: com.usabilla.u4a.storage
0  libsystem_platform.dylib       0x60bc _os_unfair_lock_recursive_abort + 36
1  libsystem_platform.dylib       0xa18 _os_unfair_lock_lock_slow + 280
2  libobjc.A.dylib                0x69ec lookUpImpOrForward + 120
3  libobjc.A.dylib                0x23e4 _objc_msgSend_uncached + 68
4  Usabilla                       0xe9fa8 specialized AppMetaData.init() + 19 (AppMetaData.swift:19)
5  Usabilla                       0x126fa0 closure #1 in variable initialization expression of static AppCrash.RecieveSignal + 4380307360 (<compiler-generated>:4380307360)
6  libsystem_platform.dylib       0x1c10 _sigtramp + 56
7  libsystem_pthread.dylib        0x73bc pthread_kill + 268
8  libsystem_c.dylib              0x20524 abort + 168
9  libsystem_malloc.dylib         0x1ca04 _malloc_put + 550
10 libsystem_malloc.dylib         0x1cc9c malloc_zone_error + 100
11 libsystem_malloc.dylib         0x170dc nanov2_allocate_from_block + 568
12 libsystem_malloc.dylib         0x16164 nanov2_allocate + 128
13 libsystem_malloc.dylib         0x16080 nanov2_malloc + 64
14 libsystem_malloc.dylib         0x6024 _malloc_zone_malloc + 156
15 libsystem_c.dylib              0x6f88 _vasprintf + 200
16 libsystem_c.dylib              0x93c8 asprintf + 68
17 libobjc.A.dylib                0x1c400 copySwiftV1MangledName(char const*, bool) + 324
18 libobjc.A.dylib                0x5d14 getClassExceptSomeSwift(char const*) + 40
19 libobjc.A.dylib                0x4538 look_up_class + 92
20 Foundation                     0x1a00c NSClassFromString + 196
21 Foundation                     0x37958 _decodeObjectBinary + 1636
22 Foundation                     0x1cbec _decodeObject + 184
23 Foundation                     0x3bdbc -[NSKeyedUnarchiver decodeObjectForKey:] + 176
24 Foundation                     0x2c4dc -[NSCoder __tryDecodeObjectForKey:error:decodeBlock:] + 104
25 Foundation                     0xd640 -[NSCoder decodeTopLevelObjectForKey:error:] + 112
26 Foundation                     0xf8548 +[NSKeyedUnarchiver unarchiveTopLevelObjectWithData:error:] + 116
27 libswiftFoundation.dylib       0x54048 static NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(_:) + 164
28 Usabilla                       0xfb2ec specialized closure #1 in UBFileStorageDAO.read(id:) + 4380127980
29 Usabilla                       0x1034f0 partial apply for specialized closure #1 in UBFileStorageDAO.read(id:) + 4380161264
30 Usabilla                       0xd9ab4 thunk for @callee_guaranteed () -> () + 4379990708 (<compiler-generated>:4379990708)
31 Usabilla                       0xd9ad4 thunk for @escaping @callee_guaranteed () -> () + 4379990740 (<compiler-generated>:4379990740)
32 libdispatch.dylib              0x3a30 _dispatch_client_callout + 20
33 libdispatch.dylib              0x12c90 _dispatch_lane_barrier_sync_invoke_and_complete + 56
34 Usabilla                       0xf7268 specialized UBFileStorageDAO.readAll() + 111 (UBFileStorageDAO.swift:111)
35 Usabilla                       0xfeb10 CampaignManager.fetchCampaignStatusForEventEngine(eventName:completion:) + 200 (CampaignManager.swift:200)
36 Usabilla                       0xb4810 specialized static UsabillaInternal.sendEvent(event:) + 4379838480 (UsabillaInternal.swift:4379838480)
37 <app>                          0x1d7578 BaseVC.viewWillAppear(_:) + 97 (BaseVC.swift:97)
38 <app>                          0x1d76e4 @objc BaseVC.viewWillAppear(_:) + 4368512740 (<compiler-generated>:4368512740)
39 <app>                          0x110ddc MyEnergyOverviewContainerVC.viewWillAppear(_:) + 91 (MyEnergyOverviewContainerVC.swift:91)
40 <app>                          0x110ec8 @objc MyEnergyOverviewContainerVC.viewWillAppear(_:) + 4367699656 (<compiler-generated>:4367699656)
41 UIKitCore                      0x1ab288 -[UIViewController _setViewAppearState:isAnimating:] + 664
42 UIKitCore                      0x2d952c -[UIViewController __viewWillAppear:] + 120
43 UIKitCore                      0x2aac28 -[UINavigationController _startTransition:fromViewController:toViewController:] + 788
44 UIKitCore                      0x4d5748 -[UINavigationController _startDeferredTransitionIfNeeded:] + 868
45 UIKitCore                      0x3aae1c -[UINavigationController __viewWillLayoutSubviews] + 168
46 UIKitCore                      0x2d25dc -[UILayoutContainerView layoutSubviews] + 228
47 UIKitCore                      0x18c17c -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2592
48 QuartzCore                     0x407fc CA::Layer::layout_if_needed(CA::Transaction*) + 532
49 QuartzCore                     0x32c60 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 136
50 QuartzCore                     0x475b4 CA::Context::commit_transaction(CA::Transaction*, double, double*) + 452
51 QuartzCore                     0x504a8 CA::Transaction::commit() + 704
52 QuartzCore                     0x323a0 CA::Transaction::flush_as_runloop_observer(bool) + 88
53 UIKitCore                      0x53e6e0 _UIApplicationFlushCATransaction + 72
54 UIKitCore                      0x7d8d5c _UIUpdateSequenceRun + 84
55 UIKitCore                      0xe5fedc schedulerStepScheduledMainSection + 144
56 UIKitCore                      0xe5f6a4 runloopSourceCallback + 92
57 CoreFoundation                 0xbb414 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
58 CoreFoundation                 0xcc1a0 __CFRunLoopDoSource0 + 208
59 CoreFoundation                 0x5694 __CFRunLoopDoSources0 + 268
60 CoreFoundation                 0xb05c __CFRunLoopRun + 828
61 CoreFoundation                 0x1ebc8 CFRunLoopRunSpecific + 600
62 GraphicsServices               0x1374 GSEventRunModal + 164
63 UIKitCore                      0x514b58 -[UIApplication _run] + 1100
64 UIKitCore                      0x296090 UIApplicationMain + 364
65 <app>                          0x50ec main + 17 (main.swift:17)
66 ???                            0x105069da4 (Missing)

The crash happened on an iPhone 12 Pro + iOS 15.6.1. Please let me know if I shall provide anything else.

Thanks!

dyang avatar Sep 13 '22 07:09 dyang