Skip to content

Android crash at 1.21.5 #1443

@dimaischenko

Description

@dimaischenko

Describe the bug
After updating from 1.20.7 to 1.21.5, some Android devices started to crash.

I can't reproduce it myself; I only see it in Firebase and Google Developer Console for some users. Moreover, according to the logs, they don't even reach the screens that use components from react-native-keyboard-controller (only main app wrapping with <KeyboardProvider></KeyboardProvider>) for some, it happens a few seconds after the app starts.

Exception com.facebook.react.uimanager.IllegalViewOperationException:
  at com.facebook.react.uimanager.NativeViewHierarchyManager.resolveView (NativeViewHierarchyManager.java:99)
  at com.facebook.react.uimanager.UIManagerModule.resolveView (UIManagerModule.java:834)
  at com.reactnativekeyboardcontroller.modules.KeyboardControllerModuleImpl.viewPositionInWindow$lambda$4 (KeyboardControllerModuleImpl.kt:92)
  at com.reactnativekeyboardcontroller.modules.KeyboardControllerModuleImpl.$r8$lambda$bd9deIMiMRivaubKGW1JeM5kJtQ (Unknown Source)
  at com.reactnativekeyboardcontroller.modules.KeyboardControllerModuleImpl$$ExternalSyntheticLambda1.run (D8$$SyntheticClass)
  at android.os.Handler.handleCallback (Handler.java:995)
  at android.os.Handler.dispatchMessage (Handler.java:103)
  at android.os.Looper.loopOnce (Looper.java:273)
  at android.os.Looper.loop (Looper.java:363)
  at android.app.ActivityThread.main (ActivityThread.java:10060)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:632)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:975)
  • Device: Samsung S24 Ultra
  • OS: Android 16
  • RN version: 0.79.6
  • RN architecture: old
  • JS engine: Hermes
  • Library version: 1.21.5

Metadata

Metadata

Assignees

Labels

🎯 crashLibrary triggers a crash of the app🤖 androidAndroid specific

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions