Skip to content

[Bug]: EXC_BREAKPOINT fatal exception in OneSignalNotifications.m #1530

@trooperandz

Description

@trooperandz

What happened?

An unhandled, fatal exception was thrown in the OneSignalNofications.m file with the following breadcrumb being reported in Sentry (also see image attached):

EXC_BREAKPOINT: Exception 6, Code 1, Subcode 4364248544

Screenshot 2024-12-18 at 3 55 53 PM

Steps to reproduce?

I am not able to create a reproduction of the error as it happens intermittently and I do not know of a reliable way to recreate it.

What did you expect to happen?

I expect the exception to be fixed or handled in some way instead of causing a fatal crash.

OneSignal iOS SDK version

Release 5.2.8

iOS version

17

Specific iOS version

* iOS 18.1.1
Note: I noticed that there is no 18x option above; is this due to official support or does the template need to be updated?

Relevant log output

system

    exception
        stack-trace
            frame (marked in-app by stack trace rule (family:native package:**/Containers/Bundle/Application/** +app))
                filename
                    <compiler-generated>
                function
                    value
            frame (marked in-app by stack trace rule (family:native package:**/Containers/Bundle/Application/** +app))
                filename
                    onesignalusermanagerimpl.swift
                function
                    OneSignalUserManagerImpl.createNewUser
            frame (marked in-app by stack trace rule (family:native package:**/Containers/Bundle/Application/** +app))
                filename
                    onesignalusermanagerimpl.swift
                function
                    OneSignalUserManagerImpl._login
            frame (marked in-app by stack trace rule (family:native package:**/Containers/Bundle/Application/** +app))
                filename
                    onesignalusermanagerimpl.swift
                function
                    OneSignalUserManagerImpl.user.getter
            frame (marked in-app by stack trace rule (family:native package:**/Containers/Bundle/Application/** +app))
                filename
                    onesignalusermanagerimpl.swift
                function
                    OneSignalUserManagerImpl.setPushToken

frame (marked in-app by stack trace rule (family:native package:**/Containers/Bundle/Application/** +app))

    function
        OneSignalUserManagerImpl.removeAlias

frame (marked in-app by stack trace rule (family:native package:**/Containers/Bundle/Application/** +app))

    filename
        osnotificationsmanager.m
    function
        +[OSNotificationsManager sendPushTokenToDelegate]

frame (marked in-app by stack trace rule (family:native package:**/Containers/Bundle/Application/** +app))

    filename
        osnotificationsmanager.m
    function
        +[OSNotificationsManager didRegisterForRemoteNotifications:deviceToken:]

frame (marked in-app by stack trace rule (family:native package:**/Containers/Bundle/Application/** +app))

    filename
        uiapplicationdelegate+onesignalnotifications.m
    function
        -[OneSignalNotificationsAppDelegate oneSignalDidRegisterForRemoteNotifications:deviceToken:]

    frame
        function
            UIApplicationMain
    frame (marked in-app by stack trace rule (family:native package:**/Containers/Bundle/Application/** +app))
        filename
            main.m
        function
            main

type

    EXC_BREAKPOINT

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