Skip to content

[Bug]: [OneSignalRequest urlRequest] Crash #1367

@danhalliday

Description

@danhalliday

What happened?

iOS app crashed in production with a stack trace showing OneSignal frames.

Steps to reproduce?

No idea. This is a remote crash report from Crashlytics.

What did you expect to happen?

The library should not cause a crash, regardless of what I may be doing wrong in using it.

OneSignal iOS SDK version

5.1.0

iOS version

11 or below

Specific iOS version

* 17.2.1
* 17.1.0

Relevant log output

Crashed: com.apple.root.default-qos
0  libsystem_kernel.dylib         0x9fbc __pthread_kill + 8
1  libsystem_pthread.dylib        0x5680 pthread_kill + 268
2  libsystem_c.dylib              0x75b90 abort + 180
3  libsystem_malloc.dylib         0x26200 malloc_vreport + 908
4  libsystem_malloc.dylib         0x264a8 malloc_zone_error + 104
5  libsystem_malloc.dylib         0x1dac8 nanov2_guard_corruption_detected + 44
6  libsystem_malloc.dylib         0x7e78 nanov2_find_block_and_allocate + 402
7  CoreFoundation                 0x26a8 _CFRuntimeCreateInstance + 448
8  CoreFoundation                 0x2134 __CFStringCreateImmutableFunnel3 + 1940
9  CoreFoundation                 0x9d2d0 _CFURLComponentsCreateWithStringInternal + 1872
10 Foundation                     0x650d8 -[__NSConcreteURLComponents initWithString:encodingInvalidCharacters:] + 116
11 Foundation                     0x64d88 -[NSURL(NSURL) initWithString:relativeToURL:encodingInvalidCharacters:] + 284
12 Foundation                     0x64c48 +[NSURL(NSURL) URLWithString:relativeToURL:] + 44
13 OneSignalCore                  0x6cac -[OneSignalRequest urlRequest] + 128
14 OneSignalCore                  0xd828 -[OneSignalClient prettyPrintDebugStatementWithRequest:] + 256
15 OneSignalCore                  0xd410 -[OneSignalClient validRequest:] + 56
16 OneSignalCore                  0xc814 -[OneSignalClient executeRequest:onSuccess:onFailure:] + 460
17 OneSignalUser                  0x1bc78 block_destroy_helper.32 + 21760
18 OneSignalUser                  0x1c9cc block_destroy_helper.32 + 25172
19 OneSignalOSCore                0x8e90 __swift_instantiateConcreteTypeFromMangledName + 4288
20 OneSignalOSCore                0x8190 __swift_instantiateConcreteTypeFromMangledName + 960
21 OneSignalOSCore                0x81f4 __swift_instantiateConcreteTypeFromMangledName + 1060
22 libdispatch.dylib              0x4300 _dispatch_client_callout + 20
23 libdispatch.dylib              0x77b8 _dispatch_continuation_pop + 600
24 libdispatch.dylib              0x1b5c0 _dispatch_source_latch_and_call + 420
25 libdispatch.dylib              0x1a190 _dispatch_source_invoke + 832
26 libdispatch.dylib              0x72a4 _dispatch_queue_override_invoke + 504
27 libdispatch.dylib              0x15be4 _dispatch_root_queue_drain + 392
28 libdispatch.dylib              0x163ec _dispatch_worker_thread2 + 156
29 libsystem_pthread.dylib        0x1928 _pthread_wqthread + 228
30 libsystem_pthread.dylib        0x1a04 start_wqthread + 8

Code of Conduct

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

Metadata

Metadata

Assignees

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