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

[Bug]: 5.4.0 android.os.MessageQueue.nativePollOnce

Open laraibsaghir0 opened this issue 1 year ago • 1 comments

What happened?

Alot of ANRs are being logged in Firebase Analytics.

Steps to reproduce?

Many users face ANR when the app runs. There are no specific steps to reproduce this issue.

What did you expect to happen?

No ANR in my app.

OneSignal Android SDK version

5.4.0

Android version

14, 15

Specific Android models

Oppo Reno12 F/FS 5G
Samsung Galaxy A13
Samsung Galaxy S25
Oneplus OnePlus 9 5G
Samsung Galaxy A06
Google Pixel 7a
Oppo A78
Vivo Vivo Y22
Transsion HOT 50 Pro+
Motorola Motorola Edge 50 Fusion
Xiaomi Redmi Note 13
Oneplus OnePlus 9 Pro 5G
And there are many many more devices

Relevant log output

main (native):tid=1 systid=10591 
#00 pc 0x99000 libc.so (syscall + 32) (BuildId: d1a98b526f2f94260a53c3055979a4f6)
#01 pc 0x201230 libart.so (art::ConditionVariable::WaitHoldingLocks + 136) (BuildId: eb4ec0f1d1c7267591d83fa87cb36390)
#02 pc 0x60f4a0 libart.so (art::JNI<false>::CallObjectMethodV + 1452) (BuildId: eb4ec0f1d1c7267591d83fa87cb36390)
#03 pc 0xe3994 libandroid_runtime.so (_JNIEnv::CallObjectMethod + 124) (BuildId: 5ba6d244d60f0e4e50205e34eeba39e2)
#04 pc 0x151344 libandroid_runtime.so (android::NativeDisplayEventReceiver::dispatchVsync + 68) (BuildId: 5ba6d244d60f0e4e50205e34eeba39e2)
#05 pc 0xdcbc8 libgui.so (android::DisplayEventDispatcher::handleEvent + 280) (BuildId: 04c7a281f87354f1bb048c1cd7cdc401)
#06 pc 0x18b6c libutils.so (android::Looper::pollInner + 1252) (BuildId: 267ba2041a69a401110f388720a8e47b)
#07 pc 0x18624 libutils.so (android::Looper::pollOnce + 124) (BuildId: 267ba2041a69a401110f388720a8e47b)
#08 pc 0x18eaa8 libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce + 48) (BuildId: 5ba6d244d60f0e4e50205e34eeba39e2)
       at android.os.MessageQueue.nativePollOnce(Native method)
       at android.os.MessageQueue.next(MessageQueue.java:350)
       at android.os.Looper.loopOnce(Looper.java:187)
       at android.os.Looper.loop(Looper.java:368)
       at android.app.ActivityThread.main(ActivityThread.java:8839)
       at java.lang.reflect.Method.invoke(Native method)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:572)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)

Code of Conduct

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

laraibsaghir0 avatar Nov 26 '25 05:11 laraibsaghir0

Thanks for sharing the stack trace. Based on the information provided, this crash does not appear to be related to the OneSignal SDK. We’ll go ahead and close this issue. If you discover additional logs or evidence that link the problem to OneSignal, feel free to reopen the issue and we’ll be happy to take another look.

jinliu9508 avatar Dec 02 '25 20:12 jinliu9508