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

SEGFileStorage dataFromJSON crash #1055

Open
atereshkov opened this issue Jul 24, 2023 · 0 comments
Open

SEGFileStorage dataFromJSON crash #1055

atereshkov opened this issue Jul 24, 2023 · 0 comments

Comments

@atereshkov
Copy link

Hi, we've noticed a crash in our app in production with the following stacktrace:

SIGABRT (#0): Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'NaN number in JSON write'.

0   CoreFoundation                      0x000000018104e288 __exceptionPreprocess + 220
1   libobjc.A.dylib                     0x0000000199d7e744 objc_exception_throw + 60
2   Foundation                          0x00000001827f3458 _writeJSONValue + 836
3   Foundation                          0x000000018285dcbc ___writeJSONObject_block_invoke + 388
4   CoreFoundation                      0x0000000180ff51b8 __NSDICTIONARY_IS_CALLING_OUT_TO_A_BLOCK__ + 24
5   CoreFoundation                      0x000000018102b4cc -[__NSFrozenDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:] + 192
6   Foundation                          0x00000001827dedc8 _writeJSONObject + 524
7   Foundation                          0x000000018285dcbc ___writeJSONObject_block_invoke + 388
8   CoreFoundation                      0x0000000180ff51b8 __NSDICTIONARY_IS_CALLING_OUT_TO_A_BLOCK__ + 24
9   CoreFoundation                      0x000000018102b4cc -[__NSFrozenDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:] + 192
10  Foundation                          0x00000001827dedc8 _writeJSONObject + 524
11  Foundation                          0x0000000182884d9c ___writeJSONArray_block_invoke + 260
12  CoreFoundation                      0x0000000180fc2564 __NSARRAY_IS_CALLING_OUT_TO_A_BLOCK__ + 24
13  CoreFoundation                      0x00000001810497f4 -[__NSSingleObjectArrayI enumerateObjectsWithOptions:usingBlock:] + 92
14  Foundation                          0x0000000182805200 _writeJSONArray + 356
15  Foundation                          0x0000000182855c7c -[_NSJSONWriter dataWithRootObject:options:] + 88
16  Foundation                          0x0000000182822a04 +[NSJSONSerialization dataWithJSONObject:options:error:] + 120
17  Segment                             0x0000000104adc968 -[SEGFileStorage dataFromJSON:] + 64
18  Segment                             0x0000000104adc8b8 -[SEGFileStorage setJSON:forKey:] + 200
19  Segment                             0x0000000104ae5164 -[SEGSegmentIntegration persistQueue] + 84
20  Segment                             0x0000000104ae4dc0 __34-[SEGSegmentIntegration sendData:]_block_invoke_2 + 84
21  Segment                             0x0000000104ae96a4 __seg_dispatch_specific_block_invoke + 36
22  libdispatch.dylib                   0x0000000180cb3e6c _dispatch_call_block_and_release + 32
23  libdispatch.dylib                   0x0000000180cb5a30 _dispatch_client_callout + 20
24  libdispatch.dylib                   0x0000000180cbd124 _dispatch_lane_serial_drain + 668
25  libdispatch.dylib                   0x0000000180cbdc80 _dispatch_lane_invoke + 392
26  libdispatch.dylib                   0x0000000180cc8500 _dispatch_workloop_worker_thread + 648
27  libsystem_pthread.dylib             0x00000001f10390bc _pthread_wqthread + 288
28  libsystem_pthread.dylib             0x00000001f1038e5c start_wqthread + 8

Analytics version: 4.1.4
iOS version: 15.6.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant