segmentio / analytics-ios

The hassle-free way to integrate analytics into any iOS application.
https://segment.com/libraries/ios
MIT License
402 stars 334 forks source link

Crash in iOS app - Swift #1029

Open ragu-pdx opened 2 years ago

ragu-pdx commented 2 years ago

Receiving the following crash from some, but not all users. Unclear what is causing it since the crash is occurring on a background thread within the Segment library. App is running on latest iOS, application written in latest Swift, Cocoapods Analytics library install on 4.1.6 (latest).

Segment
-[SEGFileStorage dataFromJSON:] SEGFileStorage.m:232
Segment
-[SEGFileStorage setJSON:forKey:] SEGFileStorage.m:221
Segment
-[SEGSegmentIntegration persistQueue] SEGSegmentIntegration.m:477
Segment
-[SEGSegmentIntegration queuePayload:] SEGSegmentIntegration.m:314
Segment
-[SEGSegmentIntegration enqueueAction:dictionary:context:integrations:] SEGSegmentIntegration.m:303
Segment
__seg_dispatch_specific_block_invoke SEGUtils.m:494
libdispatch.dylib
_dispatch_call_block_and_release