Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes in SDK #45

Open
nesium opened this issue Mar 13, 2023 · 3 comments
Open

Crashes in SDK #45

nesium opened this issue Mar 13, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@nesium
Copy link

nesium commented Mar 13, 2023

Hi there. I've discovered two different crashes in our reports. I can't tell how they were triggered though since the crashes were collected anonymously.

Incident Identifier: FC7B2B95-350A-4848-8ACE-3DB7FAA788D9
Hardware Model:      iPhone15,3
AppStoreTools:       14C17
AppVariant:          1:iPhone15,3:16
Beta:                YES
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]

Date/Time:           2023-03-03 20:43:14.9185 -0500
Launch Time:         2023-03-03 17:23:27.6421 -0500
OS Version:          iPhone OS 16.4 (20E5223e)
Release Type:        Beta
Baseband Version:    1.66.01
Report Version:      104

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x00000001b4ba369c
Termination Reason: SIGNAL 5 Trace/BPT trap: 5
Terminating Process: exc handler [601]

Triggered by Thread:  0


Thread 0 name:
Thread 0 Crashed:
0   Foundation                    	0x00000001b4ba369c __DataStorage.init(bytes:length:) + 240 (<compiler-generated>:0)
1   Foundation                    	0x00000001b4baf878 closure #2 in Data.init<A>(_:) + 88 (Data.swift:0)
2   libswiftCore.dylib            	0x00000001b447b494 String.UTF8View.withContiguousStorageIfAvailable<A>(_:) + 108 (StringGuts.swift:0)
3   libswiftCore.dylib            	0x00000001b447b034 protocol witness for Sequence.withContiguousStorageIfAvailable<A>(_:) in conformance String.UTF8View + 24 (<compiler-generated>:0)
4   libswiftCore.dylib            	0x00000001b45eb458 dispatch thunk of Sequence.withContiguousStorageIfAvailable<A>(_:) + 32 (:-1)
5   Foundation                    	0x00000001b4bb9d2c specialized Data.init<A>(_:) + 668 (Data.swift:2099)
6   Foundation                    	0x00000001b4b7909c StringProtocol.data(using:allowLossyConversion:) + 252 (<compiler-generated>:0)
7   XXX                          	0x00000001015630e8 HttpClient.getRequestData(events:) + 480 (HttpClient.swift:79)
8   XXX                          	0x00000001015610cc HttpClient.upload(events:completion:) + 24 (HttpClient.swift:25)
9   XXX                          	0x00000001015610cc EventPipeline.flush(completion:) + 1996 (EventPipeline.swift:65)
10  XXX                          	0x0000000101561c60 closure #1 in EventPipeline.init(amplitude:) + 52 (EventPipeline.swift:31)
11  XXX                          	0x0000000101561c60 partial apply for closure #1 in EventPipeline.init(amplitude:) + 68 (<compiler-generated>:0)
12  XXX                          	0x0000000101568508 closure #1 in QueueTimer.init(interval:queue:handler:) + 64 (QueueTimer.swift:38)
13  XXX                          	0x0000000101568508 partial apply for closure #1 in QueueTimer.init(interval:queue:handler:) + 84 (<compiler-generated>:0)
14  XXX                          	0x00000001015679c8 thunk for @escaping @callee_guaranteed () -> () + 28 (<compiler-generated>:0)
15  libdispatch.dylib             	0x00000001c19e0f48 _dispatch_client_callout + 20 (object.m:560)
16  libdispatch.dylib             	0x00000001c19e43cc _dispatch_continuation_pop + 504 (inline_internal.h:2633)
17  libdispatch.dylib             	0x00000001c19f7908 _dispatch_source_invoke + 1588 (source.c:596)
18  libdispatch.dylib             	0x00000001c19ef620 _dispatch_main_queue_drain + 756 (inline_internal.h:0)
19  libdispatch.dylib             	0x00000001c19ef31c _dispatch_main_queue_callback_4CF + 44 (queue.c:7916)
20  CoreFoundation                	0x00000001ba5a9d18 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16 (CFRunLoop.c:1780)
21  CoreFoundation                	0x00000001ba58b650 __CFRunLoopRun + 1992 (CFRunLoop.c:3147)
22  CoreFoundation                	0x00000001ba5904dc CFRunLoopRunSpecific + 612 (CFRunLoop.c:3418)
23  GraphicsServices              	0x00000001f606a35c GSEventRunModal + 164 (GSEvent.c:2196)
24  UIKitCore                     	0x00000001bc925864 -[UIApplication _run] + 888 (UIApplication.m:3773)
25  UIKitCore                     	0x00000001bc9254c8 UIApplicationMain + 340 (UIApplication.m:5363)
26  libswiftUIKit.dylib           	0x00000001c2f9e0b0 UIApplicationMain(_:_:_:_:) + 104 (UIKit.swift:538)
27  XXX                          	0x0000000100e09088 specialized static UIApplicationDelegate.main() + 80 (<compiler-generated>:15)
28  XXX                          	0x0000000100e09088 static AppDelegate.$main() + 88 (AppDelegate.swift:0)
29  XXX                          	0x0000000100e09088 main + 104
30  dyld                          	0x00000001da2dbdec start + 2220 (dyldMain.cpp:1165)

...

Thread 3 name:
Thread 3:
0   libswiftCore.dylib            	0x00000001b46c1270 swift_slowAlloc.cold.1 + 16 (Heap.cpp:81)
1   libswiftCore.dylib            	0x00000001b4615e8c swift_slowAlloc + 120 (Debug.h:50)
2   libswiftCore.dylib            	0x00000001b4616050 swift_allocObject + 64 (HeapObject.cpp:139)
3   libswiftCore.dylib            	0x00000001b4470e84 _allocateStringStorage(codeUnitCapacity:) + 180 (StringStorage.swift:235)
4   libswiftCore.dylib            	0x00000001b45a8818 specialized static __StringStorage.create(initializingFrom:codeUnitCapacity:isASCII:) + 52 (StringStorage.swift:310)
5   libswiftCore.dylib            	0x00000001b44625d4 _StringGuts.prepareForAppendInPlace(totalCount:otherUTF8Count:) + 240 (<compiler-generated>:0)
6   libswiftCore.dylib            	0x00000001b446277c _StringGuts.append(_:) + 220 (StringGutsRangeReplaceable.swift:230)
7   XXX                          	0x0000000101562ffc DefaultStringInterpolation.write(_:) + 16 (<compiler-generated>:0)
8   XXX                          	0x0000000101562ffc protocol witness for TextOutputStream.write(_:) in conformance DefaultStringInterpolation + 16 (<compiler-generated>:0)
9   XXX                          	0x0000000101562ffc specialized String.write<A>(to:) + 16 (<compiler-generated>:0)
10  XXX                          	0x0000000101562ffc specialized protocol witness for TextOutputStreamable.write<A>(to:) in conformance String + 16 (<compiler-generated>:0)
11  XXX                          	0x0000000101562ffc specialized DefaultStringInterpolation.appendInterpolation<A>(_:) + 16 (HttpClient.swift:0)
12  XXX                          	0x0000000101562ffc HttpClient.getRequestData(events:) + 244
13  XXX                          	0x00000001015610cc HttpClient.upload(events:completion:) + 24 (HttpClient.swift:25)
14  XXX                          	0x00000001015610cc EventPipeline.flush(completion:) + 1996 (EventPipeline.swift:65)
15  XXX                          	0x000000010156089c EventPipeline.put(event:completion:) + 696 (EventPipeline.swift:42)
16  XXX                          	0x0000000101565508 closure #1 in PersistentStorageResponseHandler.handleBadRequestResponse(data:) + 12 (PersistentStorageResponseHandler.swift:88)
17  XXX                          	0x0000000101565508 specialized Sequence.forEach(_:) + 12 (<compiler-generated>:0)
18  XXX                          	0x0000000101565508 PersistentStorageResponseHandler.handleBadRequestResponse(data:) + 3236 (PersistentStorageResponseHandler.swift:87)
19  XXX                          	0x0000000101565bb0 PersistentStorageResponseHandler.handle(result:) + 424 (PersistentStorageResponseHandler.swift:139)
20  XXX                          	0x0000000101565d60 protocol witness for ResponseHandler.handle(result:) in conformance PersistentStorageResponseHandler + 24 (<compiler-generated>:0)
21  XXX                          	0x00000001015616ec closure #1 in EventPipeline.flush(completion:) + 292 (EventPipeline.swift:72)
22  XXX                          	0x0000000101562bb8 closure #1 in HttpClient.upload(events:completion:) + 292 (HttpClient.swift:35)
23  XXX                          	0x0000000101562308 thunk for @escaping @callee_guaranteed @Sendable (@guaranteed Data?, @guaranteed NSURLResponse?, @guaranteed Error?) -> () + 148 (<compiler-generated>:0)
24  CFNetwork                     	0x00000001bb54593c __40-[__NSURLSessionLocal taskForClassInfo:]_block_invoke + 484 (LocalSession.mm:718)
25  CFNetwork                     	0x00000001bb555624 __49-[__NSCFLocalSessionTask _task_onqueue_didFinish]_block_invoke_2 + 164 (LocalSessionTask.mm:544)
26  libdispatch.dylib             	0x00000001c19df3bc _dispatch_call_block_and_release + 32 (init.c:1518)
27  libdispatch.dylib             	0x00000001c19e0f48 _dispatch_client_callout + 20 (object.m:560)
28  libdispatch.dylib             	0x00000001c19e85d0 _dispatch_lane_serial_drain + 668 (inline_internal.h:2633)
29  libdispatch.dylib             	0x00000001c19e913c _dispatch_lane_invoke + 436 (queue.c:3940)
30  libdispatch.dylib             	0x00000001c19f3cdc _dispatch_workloop_worker_thread + 648 (queue.c:6875)
31  libsystem_pthread.dylib       	0x000000021a58dddc _pthread_wqthread + 288 (pthread.c:2618)
32  libsystem_pthread.dylib       	0x000000021a58db7c start_wqthread + 8 (:-1)

...

Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x000000016eff9ed8   x2: 0x0000000000008000   x3: 0x0000000000000000
    x4: 0x0000000003000001   x5: 0x0000000000000003   x6: 0x0000000000000000   x7: 0x0000000000000000
    x8: 0x0000000210d1ff6c   x9: 0x000000000000000c  x10: 0xffffffffffffc000  x11: 0x0000000000000000
   x12: 0x0000000000000050  x13: 0x00000000001ff800  x14: 0x00000000000007fb  x15: 0x00000000ed81d891
   x16: 0xfffffffffffffff1  x17: 0x0000000212186850  x18: 0x0000000000000000  x19: 0x0000000000005748
   x20: 0x0000000286276d00  x21: 0x00000003d7ff4020  x22: 0x0000000286276d10  x23: 0x0000000000005748
   x24: 0x00000003d7ff4020  x25: 0x00000002121199e8  x26: 0x00000001600f4728  x27: 0x00000001600f48a0
   x28: 0x000000016effa130   fp: 0x000000016effa040   lr: 0x9b510001b4ba3614
    sp: 0x000000016effa020   pc: 0x00000001b4ba369c cpsr: 0x40001000
   esr: 0xf2000001 (Breakpoint) brk 1

Incident Identifier: 6B8E313C-6947-4A62-9283-10D5E7268EAE
Hardware Model:      iPhone11,8
AppStoreTools:       14C17
AppVariant:          1:iPhone11,8:14
Beta:                YES
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]


Date/Time:           2023-03-03 16:51:20.1381 +0800
Launch Time:         2023-03-03 16:47:46.8714 +0800
OS Version:          iPhone OS 14.7.1 (18G82)
Release Type:        User
Baseband Version:    3.04.01
Report Version:      104

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x000000000000000c
VM Region Info: 0xc is not in any region.  Bytes before following region: 4372348916
      REGION TYPE                 START - END      [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      __TEXT                   1049cc000-1049d0000 [   16K] r-x/r-x SM=COW  ...XXX.app/XXX

Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [4023]
Triggered by Thread:  0

Thread 0 name:
Thread 0 Crashed:
0   libobjc.A.dylib               	0x00000001a132cd40 AutoreleasePoolPage::AutoreleasePoolPage(AutoreleasePoolPage*) + 88 (NSObject-internal.h:96)
1   libobjc.A.dylib               	0x00000001a132cb18 AutoreleasePoolPage::autoreleaseFullPage(objc_object*, AutoreleasePoolPage*) + 64 (NSObject.mm:759)
2   libobjc.A.dylib               	0x00000001a132c99c objc_object::rootAutorelease2() + 112 (NSObject.mm:1071)
3   Foundation                    	0x000000018daa9b70 -[NSString(NSPathUtilities) lastPathComponent] + 300 (NSPathUtilities.m:1101)
4   libswiftFoundation.dylib      	0x00000001902d13c0 URL.lastPathComponent.getter + 28
5   XXX                          	0x0000000105120258 closure #2 in PersistentStorage.getEventFiles(includeUnfinished:) + 20 (PersistentStorage.swift:219)
6   XXX                          	0x0000000105120258 specialized _merge<A>(low:mid:high:buffer:by:) + 1004 (<compiler-generated>:0)
7   XXX                          	0x000000010511fbb0 specialized UnsafeMutableBufferPointer._mergeTopRuns(_:buffer:by:) + 444 (<compiler-generated>:0)
8   XXX                          	0x000000010511f654 specialized closure #1 in UnsafeMutableBufferPointer._stableSortImpl(by:) + 1812
9   XXX                          	0x000000010511eeb8 specialized UnsafeMutableBufferPointer._stableSortImpl(by:) + 224 (<compiler-generated>:0)
10  XXX                          	0x000000010511ed78 specialized MutableCollection<>.sort(by:) + 108 (<compiler-generated>:0)
11  XXX                          	0x000000010511bfa8 PersistentStorage.getEventFiles(includeUnfinished:) + 1224
12  XXX                          	0x000000010511b870 closure #1 in PersistentStorage.read<A>(key:) + 196 (PersistentStorage.swift:57)
13  XXX                          	0x0000000105121944 partial apply for closure #1 in PersistentStorage.read<A>(key:) + 24 (<compiler-generated>:0)
14  libswiftDispatch.dylib        	0x00000001a1e37e04 partial apply for thunk for @callee_guaranteed () -> (@out A, @error @owned Error) + 28 (<compiler-generated>:0)
15  libswiftDispatch.dylib        	0x00000001a1e37f48 thunk for @callee_guaranteed () -> (@out A, @error @owned Error)partial apply + 16
16  libswiftDispatch.dylib        	0x00000001a1e36278 closure #1 in closure #1 in OS_dispatch_queue._syncHelper<A>(fn:execute:rescue:) + 168 (Queue.swift:319)
17  libswiftDispatch.dylib        	0x00000001a1e37d08 partial apply for thunk for @callee_guaranteed () -> () + 28 (<compiler-generated>:0)
18  libswiftDispatch.dylib        	0x00000001a1e35f30 thunk for @escaping @callee_guaranteed () -> () + 28 (<compiler-generated>:0)
19  libdispatch.dylib             	0x000000018c41381c _dispatch_client_callout + 20 (object.m:559)
20  libdispatch.dylib             	0x000000018c422d5c _dispatch_sync_invoke_and_complete_recurse + 68 (queue.c:998)
21  libdispatch.dylib             	0x000000018c4227b4 _dispatch_sync_f_slow + 176 (queue.c:1749)
22  libswiftDispatch.dylib        	0x00000001a1e36d18 implicit closure #2 in implicit closure #1 in OS_dispatch_queue.sync<A>(execute:) + 180
23  libswiftDispatch.dylib        	0x00000001a1e374ac partial apply for implicit closure #2 in implicit closure #1 in OS_dispatch_queue.sync<A>(execute:) + 56 (<compiler-generated>:0)
24  libswiftDispatch.dylib        	0x00000001a1e360b0 OS_dispatch_queue._syncHelper<A>(fn:execute:rescue:) + 372 (Queue.swift:317)
25  libswiftDispatch.dylib        	0x00000001a1e368a0 OS_dispatch_queue.sync<A>(execute:) + 168 (Queue.swift:369)
26  XXX                          	0x000000010511b798 PersistentStorage.read<A>(key:) + 80 (PersistentStorage.swift:53)
27  XXX                          	0x000000010511e2b0 protocol witness for Storage.read<A>(key:) in conformance PersistentStorage + 20 (<compiler-generated>:0)
28  XXX                          	0x0000000105128c40 EventPipeline.flush(completion:) + 832 (EventPipeline.swift:55)
29  XXX                          	0x00000001051161e4 AmplitudeDestinationPlugin.flush() + 40 (AmplitudeDestinationPlugin.swift:42)
30  XXX                          	0x0000000105122a80 closure #1 in Amplitude.flush() + 12 (Amplitude.swift:226)
31  XXX                          	0x0000000105122a80 closure #1 in Timeline.apply(_:) + 12 (Timeline.swift:129)
32  XXX                          	0x0000000105122a80 specialized Sequence.forEach(_:) + 12 (<compiler-generated>:0)
33  XXX                          	0x0000000105122a80 specialized Timeline.apply(_:) + 344 (Timeline.swift:128)
34  XXX                          	0x000000010511a708 Amplitude.flush() + 12 (Amplitude.swift:224)
35  XXX                          	0x000000010511a708 Amplitude.onExitForeground() + 12 (Amplitude.swift:287)
36  XXX                          	0x000000010511a708 specialized AmplitudeDestinationPlugin.applicationDidEnterBackground(application:) + 92 (IOSLifecycleMonitor.swift:102)
37  XXX                          	0x000000010511a67c AmplitudeDestinationPlugin.applicationDidEnterBackground(application:) + 4 (<compiler-generated>:0)
38  XXX                          	0x000000010511a67c protocol witness for IOSLifecycle.applicationDidEnterBackground(application:) in conformance AmplitudeDestinationPlugin + 20
39  XXX                          	0x0000000105123048 closure #1 in IOSLifecycleMonitor.didEnterBackground(notification:) + 112 (IOSLifecycleMonitor.swift:88)
40  XXX                          	0x0000000105123048 closure #1 in Timeline.apply(_:) + 112 (Timeline.swift:129)
41  XXX                          	0x0000000105123048 specialized Sequence.forEach(_:) + 112 (<compiler-generated>:0)
42  XXX                          	0x0000000105123048 specialized Timeline.apply(_:) + 448 (Timeline.swift:128)
43  XXX                          	0x000000010511a3ec specialized Timeline.apply(_:) + 8 (<compiler-generated>:0)
44  XXX                          	0x000000010511a3ec IOSLifecycleMonitor.didEnterBackground(notification:) + 16 (IOSLifecycleMonitor.swift:262)
45  XXX                          	0x000000010511a3ec IOSLifecycleMonitor.notificationResponse(notification:) + 340 (IOSLifecycleMonitor.swift:54)
46  XXX                          	0x000000010511a4a4 @objc IOSLifecycleMonitor.notificationResponse(notification:) + 48 (<compiler-generated>:0)
47  CoreFoundation                	0x000000018c781684 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 28 (CFNotificationCenter.c:706)
48  CoreFoundation                	0x000000018c78162c ___CFXRegistrationPost_block_invoke + 52 (CFNotificationCenter.c:173)
49  CoreFoundation                	0x000000018c780b98 _CFXRegistrationPost + 440 (CFNotificationCenter.c:198)
50  CoreFoundation                	0x000000018c780558 _CFXNotificationPost + 716 (CFNotificationCenter.c:1071)
51  Foundation                    	0x000000018da8745c -[NSNotificationCenter postNotificationName:object:userInfo:] + 64 (NSNotification.m:575)
52  UIKitCore                     	0x000000018f223610 __47-[UIApplication _applicationDidEnterBackground]_block_invoke + 316 (UIApplication.m:6588)
53  UIKitCore                     	0x000000018eafc9e4 +[UIViewController _performWithoutDeferringTransitionsAllowingAnimation:actions:] + 164 (UIViewController.m:7039)
54  UIKitCore                     	0x000000018f2233a8 -[UIApplication _applicationDidEnterBackground] + 144 (UIApplication.m:6576)
55  UIKitCore                     	0x000000018e870164 __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke_2 + 908 (_UISceneLifecycleMultiplexer.m:719)
56  UIKitCore                     	0x000000018edd8458 _UIScenePerformActionsWithLifecycleActionMask + 104 (_UISceneLifecycleState.m:109)
57  UIKitCore                     	0x000000018e86fd3c __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 224 (_UISceneLifecycleMultiplexer.m:549)
58  UIKitCore                     	0x000000018e86f744 -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 300 (_UISceneLifecycleMultiplexer.m:498)
59  UIKitCore                     	0x000000018e86fb4c -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 768 (_UISceneLifecycleMultiplexer.m:548)
60  UIKitCore                     	0x000000018e86f388 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 340 (_UISceneLifecycleMultiplexer.m:454)
61  UIKitCore                     	0x000000018e69b0c4 -[UIScene _invalidate] + 804 (UIScene.m:689)
62  UIKitCore                     	0x000000018f4963b4 -[UIWindowScene _invalidate] + 52 (UIWindowScene.m:268)
63  UIKitCore                     	0x000000018f2199f4 -[UIApplication workspace:willDestroyScene:withTransitionContext:completion:] + 208 (UIApplication.m:3741)
64  UIKitCore                     	0x000000018ed0f708 -[UIApplicationSceneClientAgent scene:willInvalidateWithEvent:completion:] + 388 (UIApplicationSceneClientAgent.m:61)
65  FrontBoardServices            	0x000000019bdf8794 -[FBSScene _callOutQueue_agent_willDestroyWithTransitionContext:completion:] + 284 (FBSScene.m:452)
66  FrontBoardServices            	0x000000019be25b04 __84-[FBSWorkspaceScenesClient _queue_invalidateScene:withTransitionContext:completion:]_block_invoke_2 + 128 (FBSWorkspaceScenesClient.m:574)
67  FrontBoardServices            	0x000000019be076a4 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 240 (FBSWorkspace.m:355)
68  FrontBoardServices            	0x000000019be25958 __84-[FBSWorkspaceScenesClient _queue_invalidateScene:withTransitionContext:completion:]_block_invoke + 332 (FBSWorkspaceScenesClient.m:573)
69  libdispatch.dylib             	0x000000018c41381c _dispatch_client_callout + 20 (object.m:559)
70  libdispatch.dylib             	0x000000018c41730c _dispatch_block_invoke_direct + 268 (queue.c:468)
71  FrontBoardServices            	0x000000019be4bfa0 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 48 (FBSSerialQueue.m:184)
72  FrontBoardServices            	0x000000019be4bc30 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 448 (FBSSerialQueue.m:227)
73  FrontBoardServices            	0x000000019be4c184 -[FBSSerialQueue _performNextFromRunLoopSource] + 32 (FBSSerialQueue.m:258)
74  CoreFoundation                	0x000000018c7a0990 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 (CFRunLoop.c:1967)
75  CoreFoundation                	0x000000018c7a088c __CFRunLoopDoSource0 + 208 (CFRunLoop.c:2011)
76  CoreFoundation                	0x000000018c79fb90 __CFRunLoopDoSources0 + 268 (CFRunLoop.c:2048)
77  CoreFoundation                	0x000000018c799b70 __CFRunLoopRun + 820 (CFRunLoop.c:2925)
78  CoreFoundation                	0x000000018c799308 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3242)
79  GraphicsServices              	0x00000001a3e1c734 GSEventRunModal + 164 (GSEvent.c:2259)
80  UIKitCore                     	0x000000018f21775c -[UIApplication _run] + 1072 (UIApplication.m:3269)
81  UIKitCore                     	0x000000018f21cfcc UIApplicationMain + 168 (UIApplication.m:4740)
82  libswiftUIKit.dylib           	0x00000001a059e24c UIApplicationMain(_:_:_:_:) + 104 (UIKit.swift:528)
83  XXX                          	0x00000001049d1088 specialized static UIApplicationDelegate.main() + 80 (<compiler-generated>:15)
84  XXX                          	0x00000001049d1088 static AppDelegate.$main() + 88 (AppDelegate.swift:0)
85  XXX                          	0x00000001049d1088 main + 104
86  libdyld.dylib                 	0x000000018c455cf8 start + 4 (:-1)

...

Thread 6 name:
Thread 6:
0   libsystem_kernel.dylib        	0x00000001baa131a8 kevent_id + 8 (:-1)
1   libdispatch.dylib             	0x000000018c434fc8 _dispatch_kq_poll + 232 (event_kevent.c:750)
2   libdispatch.dylib             	0x000000018c435a84 _dispatch_event_loop_wait_for_ownership + 440 (event_kevent.c:2203)
3   libdispatch.dylib             	0x000000018c422bec __DISPATCH_WAIT_FOR_QUEUE__ + 348 (queue.c:1657)
4   libdispatch.dylib             	0x000000018c422798 _dispatch_sync_f_slow + 148 (queue.c:1738)
5   libswiftDispatch.dylib        	0x00000001a1e36d18 implicit closure #2 in implicit closure #1 in OS_dispatch_queue.sync<A>(execute:) + 180
6   libswiftDispatch.dylib        	0x00000001a1e374ac partial apply for implicit closure #2 in implicit closure #1 in OS_dispatch_queue.sync<A>(execute:) + 56 (<compiler-generated>:0)
7   libswiftDispatch.dylib        	0x00000001a1e360b0 OS_dispatch_queue._syncHelper<A>(fn:execute:rescue:) + 372 (Queue.swift:317)
8   libswiftDispatch.dylib        	0x00000001a1e368a0 OS_dispatch_queue.sync<A>(execute:) + 168 (Queue.swift:369)
9   XXX                          	0x000000010511e28c PersistentStorage.write(key:value:) + 40 (PersistentStorage.swift:32)
10  XXX                          	0x000000010511e28c protocol witness for Storage.write(key:value:) in conformance PersistentStorage + 60 (<compiler-generated>:31)
11  XXX                          	0x0000000105128684 EventPipeline.put(event:completion:) + 160 (EventPipeline.swift:39)
12  XXX                          	0x000000010512d508 closure #1 in PersistentStorageResponseHandler.handleBadRequestResponse(data:) + 12 (PersistentStorageResponseHandler.swift:88)
13  XXX                          	0x000000010512d508 specialized Sequence.forEach(_:) + 12 (<compiler-generated>:0)
14  XXX                          	0x000000010512d508 PersistentStorageResponseHandler.handleBadRequestResponse(data:) + 3236 (PersistentStorageResponseHandler.swift:87)
15  XXX                          	0x000000010512dbb0 PersistentStorageResponseHandler.handle(result:) + 424 (PersistentStorageResponseHandler.swift:139)
16  XXX                          	0x000000010512dd60 protocol witness for ResponseHandler.handle(result:) in conformance PersistentStorageResponseHandler + 24 (<compiler-generated>:0)
17  XXX                          	0x00000001051296ec closure #1 in EventPipeline.flush(completion:) + 292 (EventPipeline.swift:72)
18  XXX                          	0x000000010512abb8 closure #1 in HttpClient.upload(events:completion:) + 292 (HttpClient.swift:35)
19  XXX                          	0x000000010512a308 thunk for @escaping @callee_guaranteed @Sendable (@guaranteed Data?, @guaranteed NSURLResponse?, @guaranteed Error?) -> () + 148 (<compiler-generated>:0)
20  CFNetwork                     	0x000000018ce4b3dc __40-[__NSURLSessionLocal taskForClassInfo:]_block_invoke + 540 (LocalSession.mm:687)
21  CFNetwork                     	0x000000018ce5d768 __49-[__NSCFLocalSessionTask _task_onqueue_didFinish]_block_invoke + 244 (LocalSessionTask.mm:584)
22  libdispatch.dylib             	0x000000018c411a84 _dispatch_call_block_and_release + 32 (init.c:1466)
23  libdispatch.dylib             	0x000000018c41381c _dispatch_client_callout + 20 (object.m:559)
24  libdispatch.dylib             	0x000000018c41b004 _dispatch_lane_serial_drain + 620 (inline_internal.h:2557)
25  libdispatch.dylib             	0x000000018c41bc34 _dispatch_lane_invoke + 456 (queue.c:3862)
26  libdispatch.dylib             	0x000000018c4264bc _dispatch_workloop_worker_thread + 764 (queue.c:6589)
27  libsystem_pthread.dylib       	0x00000001d84967a4 _pthread_wqthread + 276 (pthread.c:2436)
28  libsystem_pthread.dylib       	0x00000001d849d74c start_wqthread + 8 (:-1)

...

Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x00000001077fd000   x2: 0x0000000000000000   x3: 0x0000000000800000
    x4: 0x0000000000000000   x5: 0x0000000000000000   x6: 0x0000000000000001   x7: 0x0000000000000000
    x8: 0x0000000000000038   x9: 0x00000001066878c0  x10: 0x0000000000000000  x11: 0x000000000000010a
   x12: 0x0000000021455341  x13: 0x0000000000000001  x14: 0x00000000000007fb  x15: 0x00000001eeed0960
   x16: 0xfffffffffffffff4  x17: 0x00000001d848d3ec  x18: 0x0000000107f65370  x19: 0x0000000000000000
   x20: 0x00000001077fd000  x21: 0x00000001066879a0  x22: 0x00000000a1a1a1a1  x23: 0x0000000000000004
   x24: 0x000000011c69f0e8  x25: 0x00000001ef6ee718  x26: 0x000000011c69ef48  x27: 0x00000001074e0bb0
   x28: 0x500000028b0725c0   fp: 0x000000016b430170   lr: 0x6d409681a132cb18
    sp: 0x000000016b430140   pc: 0x00000001a132cd40 cpsr: 0x60000000
   esr: 0x92000046 (Data Abort) byte write Translation fault

Environment

  • SDK Version: 0.3.1
@nesium nesium added the bug Something isn't working label Mar 13, 2023
@levochkaa
Copy link

Experiencing the same issue

@justin-fiedler
Copy link
Collaborator

Hi @nesium & @levochkaa, thanks for submitting the issue. We will look into it and get back with an update.

In the meantime can you please try updating to the latest version of the SDK (0.4.2) and see if that helps with the issue?

@levochkaa
Copy link

@justin-fiedler At the moment we are using 0.4.8 and we still get crashes

Crashed: com.apple.main-thread
0  libswiftCore.dylib             0x477b80 swift_slowAlloc.cold.1 + 16
1  libswiftCore.dylib             0x3d7d40 swift_slowAlloc + 120
2  libswiftCore.dylib             0x3d7f04 swift_allocObject + 64
3  libswiftCore.dylib             0x2289e8 _allocateStringStorage(codeUnitCapacity:) + 180
4  libswiftCore.dylib             0x365684 specialized static __StringStorage.create(initializingFrom:codeUnitCapacity:isASCII:) + 56
5  libswiftCore.dylib             0x2181a4 _StringGuts.prepareForAppendInPlace(totalCount:otherUTF8Count:) + 232
6  libswiftCore.dylib             0x2183c4 _StringGuts.append(_:) + 220
7  ArtWorkout                     0x2126b4 HttpClient.getRequestData(events:) + 70 (HttpClient.swift:70)
8  ArtWorkout                     0x21078c EventPipeline.flush(completion:) + 25 (HttpClient.swift:25)
9  ArtWorkout                     0x20fc40 closure #1 in EventPipeline.init(amplitude:) + 31 (EventPipeline.swift:31)
10 ArtWorkout                     0x218a2c closure #1 in QueueTimer.init(interval:once:queue:handler:) + 38 (QueueTimer.swift:38)
11 ArtWorkout                     0x218a64 thunk for @escaping @callee_guaranteed () -> () + 28 (<compiler-generated>:28)
12 libdispatch.dylib              0x3f88 _dispatch_client_callout + 20
13 libdispatch.dylib              0x7418 _dispatch_continuation_pop + 504
14 libdispatch.dylib              0x1aa58 _dispatch_source_invoke + 1588
15 libdispatch.dylib              0x12748 _dispatch_main_queue_drain + 756
16 libdispatch.dylib              0x12444 _dispatch_main_queue_callback_4CF + 44
17 CoreFoundation                 0x9a6c8 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
18 CoreFoundation                 0x7c02c __CFRunLoopRun + 2036
19 CoreFoundation                 0x80eb0 CFRunLoopRunSpecific + 612
20 GraphicsServices               0x1368 GSEventRunModal + 164
21 UIKitCore                      0x3a1668 -[UIApplication _run] + 888
22 UIKitCore                      0x3a12cc UIApplicationMain + 340
23 libswiftUIKit.dylib            0x35308 UIApplicationMain(_:_:_:_:) + 104
24 ArtWorkout                     0x6d5c main + 124 (TuistAssets+ArtWorkout.swift:124)
25 ???                            0x1f5eb8960 (Missing)
Crashed: com.apple.main-thread
0  Foundation                     0x4172fc __DataStorage.init(bytes:length:) + 240
1  Foundation                     0x42dc70 specialized Data._Representation.init(_:) + 104
2  Foundation                     0x4241d0 closure #2 in Data.init<A>(_:) + 40
3  libswiftCore.dylib             0x233ef0 String.UTF8View.withContiguousStorageIfAvailable<A>(_:) + 128
4  libswiftCore.dylib             0x2339fc protocol witness for Sequence.withContiguousStorageIfAvailable<A>(_:) in conformance String.UTF8View + 24
5  libswiftCore.dylib             0x3adfa0 dispatch thunk of Sequence.withContiguousStorageIfAvailable<A>(_:) + 32
6  Foundation                     0x42eb6c specialized Data.init<A>(_:) + 652
7  Foundation                     0x3e9188 StringProtocol.data(using:allowLossyConversion:) + 252
8  ArtWorkout                     0x2127b8 HttpClient.getRequestData(events:) + 79 (HttpClient.swift:79)
9  ArtWorkout                     0x21078c EventPipeline.flush(completion:) + 25 (HttpClient.swift:25)
10 ArtWorkout                     0x20fc40 closure #1 in EventPipeline.init(amplitude:) + 31 (EventPipeline.swift:31)
11 ArtWorkout                     0x218a2c closure #1 in QueueTimer.init(interval:once:queue:handler:) + 38 (QueueTimer.swift:38)
12 ArtWorkout                     0x218a64 thunk for @escaping @callee_guaranteed () -> () + 28 (<compiler-generated>:28)
13 libdispatch.dylib              0x3f88 _dispatch_client_callout + 20
14 libdispatch.dylib              0x7418 _dispatch_continuation_pop + 504
15 libdispatch.dylib              0x1aa58 _dispatch_source_invoke + 1588
16 libdispatch.dylib              0x12748 _dispatch_main_queue_drain + 756
17 libdispatch.dylib              0x12444 _dispatch_main_queue_callback_4CF + 44
18 CoreFoundation                 0x9a6c8 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
19 CoreFoundation                 0x7c02c __CFRunLoopRun + 2036
20 CoreFoundation                 0x80eb0 CFRunLoopRunSpecific + 612
21 GraphicsServices               0x1368 GSEventRunModal + 164
22 UIKitCore                      0x3a1668 -[UIApplication _run] + 888
23 UIKitCore                      0x3a12cc UIApplicationMain + 340
24 libswiftUIKit.dylib            0x35308 UIApplicationMain(_:_:_:_:) + 104
25 ArtWorkout                     0x6d5c main + 124 (TuistAssets+ArtWorkout.swift:124)
26 ???                            0x1f5eb8960 (Missing)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants