ANR Due to StatusBar #48375
Labels
Component: StatusBar
Needs: Author Feedback
Needs: Repro
This issue could be improved with a clear list of steps to reproduce the issue.
Type: Too Old Version
Description
We are getting ANR while using StatusBar from react-native. We are using it in our App.tsx like following:
#00 pc 0x000000000005dd10 /apex/com.android.runtime/lib/bionic/libc.so (syscall+28)
#1 pc 0x00000000002106af /apex/com.android.art/lib/libart.so (art::ConditionVariable::WaitHoldingLocks+86)
#2 pc 0x000000000059d64d /apex/com.android.art/lib/libart.so (artJniMethodEnd+312)
#3 pc 0x00000000000a3d89 /apex/com.android.art/lib/libart.so (art_jni_method_end+8)
at android.os.BinderProxy.transactNative (Native method)
at android.os.BinderProxy.transact (BinderProxy.java:599)
at android.app.IActivityClientController$Stub$Proxy.setTaskDescription (IActivityClientController.java:2078)
at android.app.ActivityClient.setTaskDescription (ActivityClient.java:432)
at android.app.Activity.setTaskDescription (Activity.java:7531)
at android.app.Activity$1.updateStatusBarColor (Activity.java:1092)
at com.android.internal.policy.PhoneWindow.setStatusBarColor (PhoneWindow.java:3874)
at com.facebook.react.modules.statusbar.StatusBarModule$1.runGuarded (StatusBarModule.java:108)
at com.facebook.react.bridge.GuardedRunnable.run (GuardedRunnable.java:30)
at android.os.Handler.handleCallback (Handler.java:958)
at android.os.Handler.dispatchMessage (Handler.java:99)
at android.os.Looper.loopOnce (Looper.java:205)
at android.os.Looper.loop (Looper.java:294)
at android.app.ActivityThread.main (ActivityThread.java:8492)
at java.lang.reflect.Method.invoke (Native method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:640)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1026)
Looks like ANR is produced while setting color of status-bar.
Steps to reproduce
NA
React Native Version
0.71.13
Affected Platforms
Runtime - Android
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/Endagorion-Peter
Screenshots and Videos
NA
The text was updated successfully, but these errors were encountered: