Iterable / swift-sdk

Iterable's iOS SDK. Receive and track pushes to Iterable from your iOS app.
https://iterable.com/
MIT License
86 stars 71 forks source link

Issues with EXC_BAD_ACCESS KERN_INVALID_ADDRESS #577

Open deivitaka opened 1 year ago

deivitaka commented 1 year ago

A couple of crashes occur in OfflineRequestProcessor

Log 1

iPhone XS Max - iOS 15.6.1

Crashed: pendingTasks 0 libswiftCore.dylib 0x20e9d8 _StringObject.getSharedUTF8Start() + 20 1 libswiftCore.dylib 0x20ea08 _StringObject.sharedUTF8.getter + 24 2 libswiftCore.dylib 0x206d68 StringGuts.append(:) + 1248 3 myapp 0x7e7d6c closure #1 in OfflineRequestProcessor.NotificationListener.addPendingTask(taskId:) + 330 (OfflineRequestProcessor.swift:330) 4 myapp 0x811440 thunk for @escaping @callee_guaranteed () -> () + 2479728 (:2479728) 5 libdispatch.dylib 0x1e6c _dispatch_call_block_and_release + 32 6 libdispatch.dylib 0x3a30 _dispatch_client_callout + 20 7 libdispatch.dylib 0xb124 _dispatch_lane_serial_drain + 668 8 libdispatch.dylib 0xbc80 _dispatch_lane_invoke + 392 9 libdispatch.dylib 0x16500 _dispatch_workloop_worker_thread + 648 10 libsystem_pthread.dylib 0x10bc _pthread_wqthread + 288 11 libsystem_pthread.dylib 0xe5c start_wqthread + 8

Log 2

iPhone 11 Pro Max - iOS 16.0.0

Crashed: NSManagedObjectContext 0x282059450 0 libswiftCore.dylib 0x41f634 swiftunknownObjectWeakLoadStrong + 16 1 myapp 0x7eb9b0 specialized OfflineRequestProcessor.sendIterableRequest(requestGenerator:successHandler:failureHandler:identifier:) + 256 (:256) 2 myapp 0x7e9310 protocol witness for RequestProcessorProtocol.track(event:dataFields:onSuccess:onFailure:) in conformance OfflineRequestProcessor + 2315584 (:2315584) 3 myapp 0x7ff990 closure #1 in RequestHandler.track(event:dataFields:onSuccess:onFailure:) + 147 (RequestHandler.swift:147) 4 myapp 0x8007cc partial apply for closure #1 in RequestHandler.sendUsingRequestProcessor(closure:) + 2411004 (:2411004) 5 myapp 0x800820 partial apply for specialized closure #1 in Pending<>.flatMap<A, B>(:) + 173 (Pending.swift:173) 6 myapp 0x79f6d4 partial apply for specialized thunk for @escaping @callee_guaranteed (@in_guaranteed A) -> () + 2013444 (:2013444) 7 myapp 0x79da9c specialized Pending.onSuccess(block:) + 50 (Pending.swift:50) 8 myapp 0x8002bc RequestHandler.sendUsingRequestProcessor(closure:) + 25 (Pending.swift:25) 9 myapp 0x80a2f8 specialized static IterableAPI.track(event:dataFields:) + 142 (RequestHandler.swift:142)