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

[Bug]: 5.4.0 android::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 when I upgraded to one signal version 5.4.0.

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

Specific Android models

OnePlus 8T
Oppo Reno7/F21 Pro

Relevant log output

main (native):tid=1 systid=16938 
#00 pc 0xf14fc libc.so (__epoll_pwait + 12) (BuildId: d1a98b526f2f94260a53c3055979a4f6)
#01 pc 0x18748 libutils.so (android::Looper::pollInner + 192) (BuildId: 267ba2041a69a401110f388720a8e47b)
#02 pc 0x18624 libutils.so (android::Looper::pollOnce + 124) (BuildId: 267ba2041a69a401110f388720a8e47b)
#03 pc 0x18eaa8 libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce + 48) (BuildId: 5ba6d244d60f0e4e50205e34eeba39e2)
#04 pc 0x32e500 libart.so (art_quick_generic_jni_trampoline + 144) (BuildId: eb4ec0f1d1c7267591d83fa87cb36390)
#05 pc 0x2037dc8 memfd:jit-zygote-cache (android.os.MessageQueue.next + 216)
#06 pc 0x68a320 libart.so (nterp_helper + 4016) (BuildId: eb4ec0f1d1c7267591d83fa87cb36390)
#07 pc 0x2233c0 framework.jar (android.os.Looper.loopOnce + 12)
#08 pc 0x6893a4 libart.so (nterp_helper + 52) (BuildId: eb4ec0f1d1c7267591d83fa87cb36390)
#09 pc 0x223d58 framework.jar (android.os.Looper.loop + 192)
#10 pc 0x6893a4 libart.so (nterp_helper + 52) (BuildId: eb4ec0f1d1c7267591d83fa87cb36390)
#11 pc 0x1d3ad8 framework.jar (android.app.ActivityThread.main + 264)
#12 pc 0x317460 libart.so (art_quick_invoke_static_stub + 640) (BuildId: eb4ec0f1d1c7267591d83fa87cb36390)
#13 pc 0x311508 libart.so (_jobject* art::InvokeMethod<8> + 544) (BuildId: eb4ec0f1d1c7267591d83fa87cb36390)
#14 pc 0x5c82c8 libart.so (art::Method_invoke + 32) (BuildId: eb4ec0f1d1c7267591d83fa87cb36390)
#15 pc 0x32e500 libart.so (art_quick_generic_jni_trampoline + 144) (BuildId: eb4ec0f1d1c7267591d83fa87cb36390)
#16 pc 0x2d3495c memfd:jit-zygote-cache (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run + 124)
#17 pc 0x68b144 libart.so (nterp_helper + 7636) (BuildId: eb4ec0f1d1c7267591d83fa87cb36390)
#18 pc 0x52b30c framework.jar (com.android.internal.os.ZygoteInit.main + 836)
#19 pc 0x317460 libart.so (art_quick_invoke_static_stub + 640) (BuildId: eb4ec0f1d1c7267591d83fa87cb36390)
#20 pc 0x316100 libart.so (art::JValue art::InvokeWithVarArgs<_jmethodID*> + 800) (BuildId: eb4ec0f1d1c7267591d83fa87cb36390)
#21 pc 0x639868 libart.so (art::JNI<true>::CallStaticVoidMethodV + 156) (BuildId: eb4ec0f1d1c7267591d83fa87cb36390)
#22 pc 0xe3be8 libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod + 108) (BuildId: 5ba6d244d60f0e4e50205e34eeba39e2)
#23 pc 0xf040c libandroid_runtime.so (android::AndroidRuntime::start + 936) (BuildId: 5ba6d244d60f0e4e50205e34eeba39e2)
#24 pc 0x26a8 app_process64 (main + 1616) (BuildId: 331dd182f9578d3203adb26c165705dc)
#25 pc 0x955f8 libc.so (__libc_init + 108) (BuildId: d1a98b526f2f94260a53c3055979a4f6)
       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