Skip to content

[Bug]: ANR com.onesignal.core.internal.preferences.PreferenceStoreFix.ensureNoObfuscatedPrefStore #1803

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

Open
2 of 3 tasks
cubicme opened this issue Apr 12, 2025 · 1 comment

Comments

@cubicme
Copy link

cubicme commented Apr 12, 2025

What happened?

Got an ANR on production on Samsung and Transsion devices using version 5.2.9
Android versions 11, 12, 13

I see there's a similar issue on another repo OneSignal/OneSignal-Unity-SDK#740

Steps to reproduce?

Not sure as it's on prod but based on the message could be after calling `OneSignal.User.addTag`

What did you expect to happen?

No ANR

React Native OneSignal SDK version

5.2.9

Which platform(s) are affected?

  • iOS
  • Android

Relevant log output

Stracktrace from crashlytics:


          main (waiting):tid=1 systid=11767 
       at java.lang.Object.wait(Native method)
       at java.lang.Object.wait(Object.java:405)
       at java.lang.Object.wait(Object.java:543)
       at android.app.SharedPreferencesImpl.awaitLoadedLocked(SharedPreferencesImpl.java:283)
       at android.app.SharedPreferencesImpl.contains(SharedPreferencesImpl.java:357)
       at com.onesignal.core.internal.preferences.PreferenceStoreFix.ensureNoObfuscatedPrefStore(PreferenceStoreFix.kt:42)
       at com.onesignal.internal.OneSignalImp.initWithContext(OneSignalImp.kt:198)
       at com.onesignal.OneSignal.initWithContext(OneSignal.kt:208)
       at com.onesignal.notifications.receivers.BootUpReceiver.onReceive(BootUpReceiver.kt:40)
       at android.app.ActivityThread.handleReceiver(ActivityThread.java:4894)
       at android.app.ActivityThread.-$$Nest$mhandleReceiver(unavailable)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2420)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loopOnce(Looper.java:226)
       at android.os.Looper.loop(Looper.java:313)
       at android.app.ActivityThread.main(ActivityThread.java:8762)
       at java.lang.reflect.Method.invoke(Native method)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)

Code of Conduct

  • I agree to follow this project's Code of Conduct
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

2 participants
@cubicme and others