Skip to content

[Bug]: After latest fix I got another crash reports on Crashlytics πŸ˜”Β #1526

@iballan

Description

@iballan

What happened?

Got a crash reports on Crashlytics for a feature that I dont even use in the app! InAppMessages

Fatal Exception: NSInvalidArgumentException
-[NSError objectForKeyedSubscript:]: unrecognized selector sent to instance 0x302bc2190

Steps to reproduce?

Most probably users are using the app offline.

What did you expect to happen?

To not crash

OneSignal iOS SDK version

Release 5.2.8

iOS version

17

Specific iOS version

* iOS 17 46%
* iOS 18 36%
* iOS 16 18%

Relevant log output

Fatal Exception: NSInvalidArgumentException
0  CoreFoundation                 0x83f20 __exceptionPreprocess
1  libobjc.A.dylib                0x16018 objc_exception_throw
2  CoreFoundation                 0x18d480 +[NSObject(NSObject) _copyDescription]
3  CoreFoundation                 0x20fb4 ___forwarding___
4  CoreFoundation                 0x208d0 _CF_forwarding_prep_0
5  OneSignalInAppMessages         0xba80 __77-[OSMessagingController attemptFetchWithRetries:rywData:attempts:retryLimit:]_block_invoke.90 + 320 (OSMessagingController.m:320)
6  OneSignalCore                  0x9e50 -[OneSignalClient handleJSONNSURLResponse:data:error:isAsync:withRequest:onSuccess:onFailure:] + 214 (OneSignalClient.m:214)
7  OneSignalCore                  0x9338 __54-[OneSignalClient executeRequest:onSuccess:onFailure:]_block_invoke + 110 (OneSignalClient.m:110)
8  myApp                        0x4e7a98 __InstrumentDataTaskWithRequestCompletionHandler_block_invoke_2 + 306 (FPRNSURLSessionInstrument.m:306)
9  myApp                        0x4e7a98 __InstrumentDataTaskWithRequestCompletionHandler_block_invoke_2 + 306 (FPRNSURLSessionInstrument.m:306)
10 CFNetwork                      0x6ac84 CFHTTPCookieCreateWithResponseHeaderFields
11 CFNetwork                      0x6aa58 CFHTTPCookieCreateWithResponseHeaderFields
12 libdispatch.dylib              0x213c _dispatch_call_block_and_release
13 libdispatch.dylib              0x3dd4 _dispatch_client_callout
14 libdispatch.dylib              0xb400 _dispatch_lane_serial_drain
15 libdispatch.dylib              0xbf64 _dispatch_lane_invoke
16 libdispatch.dylib              0x16cb4 _dispatch_root_queue_drain_deferred_wlh
17 libdispatch.dylib              0x16528 _dispatch_workloop_worker_thread
18 libsystem_pthread.dylib        0x4934 _pthread_wqthread
19 libsystem_pthread.dylib        0x10cc start_wqthread

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions