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

[ANR]: com.onesignal.OneSignal$oneSignal$2.invoke ANR issue #756

Closed
1 task done
catalin-zambalic-ma opened this issue Jun 17, 2024 · 4 comments
Closed
1 task done

Comments

@catalin-zambalic-ma
Copy link

catalin-zambalic-ma commented Jun 17, 2024

What happened?

ANR

Steps to reproduce?

No reproduction steps.

What did you expect to happen?

No ANR encountered.

OneSignal Android SDK version

Unity OneSignal Android SDK v5.1.6

Android version

12

Specific Android models

Xiaomi Poco C50

Relevant log output

main (runnable):tid=1 systid=20940 
       at com.onesignal.OneSignal$oneSignal$2.invoke(OneSignal.kt:196)
       at com.onesignal.OneSignal$oneSignal$2.invoke(OneSignal.kt:195)
       at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
       at com.onesignal.OneSignal.getOneSignal(OneSignal.kt:195)
       at com.onesignal.OneSignal.initWithContext(OneSignal.kt:208)
       at com.onesignal.notifications.receivers.FCMBroadcastReceiver.onReceive(FCMBroadcastReceiver.kt:26)
       at android.app.ActivityThread.handleReceiver(ActivityThread.java:4348)
       at android.app.ActivityThread.access$1700(ActivityThread.java:253)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2101)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loopOnce(Looper.java:201)
       at android.os.Looper.loop(Looper.java:288)
       at android.app.ActivityThread.main(ActivityThread.java:7886)
       at java.lang.reflect.Method.invoke(Native method)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:568)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1045)

Code of Conduct

  • I agree to follow this project's Code of Conduct
@catalin-zambalic-ma catalin-zambalic-ma changed the title [Bug]: com.onesignal.OneSignal$oneSignal$2.invoke ANR issue [ANR]: com.onesignal.OneSignal$oneSignal$2.invoke ANR issue Jun 17, 2024
@jkasten2
Copy link
Member

@catalin-zambalic-ma can you let know the number of times you are seeing this ANR and or the percentages of devices?

Do you see any other ANR stacktraces with OneSignal in it?

@catalin-zambalic-ma
Copy link
Author

I didn't found any other ANR stacktraces related to OneSignal.
Until now, looks like a rare case, we encountered it on a specific device, an looks that when the app was in background.
I will keep updated the thread with more data, in case I gather more info.
image

@jkasten2 jkasten2 transferred this issue from OneSignal/OneSignal-Android-SDK Aug 28, 2024
@jkasten2
Copy link
Member

@catalin-zambalic-ma we fixed a number of ANRs in the OneSignal-Unity-SDK 5.1.8 release. Can you try it out a let us know if it fully resolves this specific ANR?

@shepherd-l
Copy link
Contributor

Closing due to inactivity. If you are still having issues, please open a new issue with updated information

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

3 participants