OneSignal-iOS-SDK icon indicating copy to clipboard operation
OneSignal-iOS-SDK copied to clipboard

Crashed: com.onesignal.notification.settings.ios10

Open samuelandkevin opened this issue 4 years ago • 8 comments

Description: I get Firebase crash information like this.

Environment

OneSignal version 2.15.3 2.Installed with CocoaPods 3.Project is in Swift

iPhone: Version: 14.1.0 Model: iPhone 11 Pro Max

Crashed: com.onesignal.notification.settings.ios10 0 libobjc.A.dylib 0x19f7a7978 objc_msgSend + 24 1 Premom 0x10136bfe8 __69-[OneSignalNotificationSettingsIOS10 getNotificationPermissionState:]_block_invoke_2 + 8783328 2 Premom 0x101374c78 -[OneSignalUNUserNotificationCenter onesignalGetNotificationSettingsWithCompletionHandler:] + 8819312 3 Premom 0x10136bf6c __69-[OneSignalNotificationSettingsIOS10 getNotificationPermissionState:]_block_invoke + 8783204 4 libdispatch.dylib 0x18b2bafd0 _dispatch_call_block_and_release + 32 5 libdispatch.dylib 0x18b2bcac8 _dispatch_client_callout + 20 6 libdispatch.dylib 0x18b2c3c08 _dispatch_lane_serial_drain + 580 7 libdispatch.dylib 0x18b2c4734 _dispatch_lane_invoke + 408 8 libdispatch.dylib 0x18b2ce528 _dispatch_workloop_worker_thread + 708 9 libsystem_pthread.dylib 0x1d35af908 _pthread_wqthread + 276 10 libsystem_pthread.dylib 0x1d35b677c start_wqthread + 8

samuelandkevin avatar Nov 12 '20 06:11 samuelandkevin

me too

Zain4994 avatar Nov 29 '20 12:11 Zain4994

Me too.

Is there any solution to this?

Unfortunately my app in production is facing a lot of crashes right now. Is there any solution to this?

JustDevelop avatar Jul 02 '21 12:07 JustDevelop

This is still an issue! Anyone have new developments on this?

JustDevelop avatar Aug 10 '21 09:08 JustDevelop

Any suggestions on how to solve this?

JustDevelop avatar Aug 10 '21 09:08 JustDevelop

I also see this crash on OneSignal 2.16.5.

iliaskarim avatar Aug 12 '21 20:08 iliaskarim

Hello I am investigating. @JustDevelop what version of OneSignal are you using? Has anyone been able to reproduce the issue?

emawby avatar Aug 19 '21 22:08 emawby

Firebase says,

The stack trace indicates that heap corruption may have caused your app to crash. Memory corruption can occur pretty easily from freeing a dangling pointer, a thread race, or bad pointer arithmetic. The important thing to keep in mind is that the resulting crash may happen long after the initial corruption. As a result, the stack trace for this crash might not provide any clues to the location of the bug in your code. However, you can still fix memory issues with tools from Apple. For speedy resolution of memory corruption issues, we recommend regularly auditing your app with Xcode’s memory debugging facilities: Visual Memory Debugger, Zombies Instrument, Address Sanitizer, Thread Sanitizer and malloc diagnostics.

It points to line 130 in UNUserNotificationCenter+OneSignal.m in any case. That would be [self onesignalGetNotificationSettingsWithCompletionHandler:wrapperBlock]; in - (void)onesignalGetNotificationSettingsWithCompletionHandler:(void(^)(UNNotificationSettings *settings))completionHandler for the version in question.

iliaskarim avatar Aug 20 '21 13:08 iliaskarim

Have you tried updating to the 3.X.X versions of the OneSignal SDK. Significants changes have been made to our implementation since the 2.16.5 version

emawby avatar Feb 28 '22 20:02 emawby

Closing due to inactivity

emawby avatar Mar 23 '23 17:03 emawby