Skip to content

Attempt to invoke virtual method 'void com.facebook.react.uimanager.ReactShadowNode.addChildAt(com.facebook.react.uimanager.ReactShadowNode, int)' on a null object reference #20078

Description

@xkrsz

Environment

  Unrecognized command 'info'
  Run react-native --help to see list of all available commands
  • react: 16.0.0-alpha.12
  • react-native: ^0.47.1

Description

I haven't found the exact source of this error, but all points to some sort of a race condition, where state changes before native code ends it's execution. This causes an app to crash.

Reproducible Demo

It's hard to create a consistent reproduction of this error, as it pops up randomly.

I'll attempt to post a PR fixing this error, although I'm not 100% sure it doesn't break anything. I welcome any advice or criticism if I'm making any wrong assumptions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions