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

[Bug]: 5.4.0 jdk.internal.misc.Unsafe.unpark

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

Transsion Infinix HOT 50 Pro
Vivo Y17s
Vivo V30e

Relevant log output

main (runnable):tid=1 systid=8204 
#00 pc 0x4f3874 libart.so (art::DumpNativeStack + 108) (BuildId: eb4ec0f1d1c7267591d83fa87cb36390)
#01 pc 0x444858 libart.so (art::Thread::DumpStack const + 436) (BuildId: eb4ec0f1d1c7267591d83fa87cb36390)
#02 pc 0x444574 libart.so (art::DumpCheckpoint::Run + 120) (BuildId: eb4ec0f1d1c7267591d83fa87cb36390)
#03 pc 0x2d6c08 libart.so (art::Thread::RunCheckpointFunction + 144) (BuildId: eb4ec0f1d1c7267591d83fa87cb36390)
#04 pc 0x43caf8 libart.so (artTestSuspendFromCode + 256) (BuildId: eb4ec0f1d1c7267591d83fa87cb36390)
#05 pc 0x32deec libart.so (art_quick_test_suspend + 156) (BuildId: eb4ec0f1d1c7267591d83fa87cb36390)
       at jdk.internal.misc.Unsafe.unpark(Native method)
       at java.util.concurrent.locks.LockSupport.unpark(LockSupport.java:181)
       at java.util.concurrent.locks.AbstractQueuedSynchronizer.signalNext(AbstractQueuedSynchronizer.java:645)
       at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueuedSynchronizer.java:1060)
       at java.util.concurrent.locks.ReentrantLock.unlock(ReentrantLock.java:494)
       at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.offer(ScheduledThreadPoolExecutor.java:1171)
       at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.add(ScheduledThreadPoolExecutor.java:1181)
       at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.add(ScheduledThreadPoolExecutor.java:953)
       at java.util.concurrent.ScheduledThreadPoolExecutor.delayedExecute(ScheduledThreadPoolExecutor.java:388)
       at java.util.concurrent.ScheduledThreadPoolExecutor.schedule(ScheduledThreadPoolExecutor.java:610)
       at java.util.concurrent.ScheduledThreadPoolExecutor.execute(ScheduledThreadPoolExecutor.java:760)
       at java.util.concurrent.Executors$DelegatedExecutorService.execute(Executors.java:715)
       at com.google.android.gms.cloudmessaging.zzp.onServiceConnected(com.google.android.gms:play-services-cloud-messaging@@17.2.0:3)
       at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:2240)
       at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:2279)
       at android.os.Handler.handleCallback(Handler.java:958)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loopOnce(Looper.java:243)
       at android.os.Looper.loop(Looper.java:338)
       at android.app.ActivityThread.main(ActivityThread.java:8506)
       at java.lang.reflect.Method.invoke(Native method)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1064)

Code of Conduct

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

laraibsaghir0 avatar Nov 26 '25 06: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