react-native: NullPointerException at UIViewOperationQueue$1.run
Random crashes in UIViewOperationQueue$1.run across multiple device types and Android versions in production build. One similar issue here was closed without resolution https://github.com/facebook/react-native/issues/22867
Not really sure how to debug this further as it’s random, only on production, happening across Android versions, and I can’t reliably reproduce it.
Stack
java.lang.NullPointerException:
at com.facebook.react.uimanager.UIViewOperationQueue$1.run (UIViewOperationQueue.java:779)
at com.facebook.react.uimanager.UIViewOperationQueue.flushPendingBatches (UIViewOperationQueue.java:888)
at com.facebook.react.uimanager.UIViewOperationQueue.access$2200 (UIViewOperationQueue.java:42)
at com.facebook.react.uimanager.UIViewOperationQueue$DispatchUIFrameCallback.doFrameGuarded (UIViewOperationQueue.java:948)
at com.facebook.react.uimanager.GuardedFrameCallback.doFrame (GuardedFrameCallback.java:28)
at com.facebook.react.modules.core.ReactChoreographer$ReactChoreographerDispatcher.doFrame (ReactChoreographer.java:174)
at com.facebook.react.modules.core.ChoreographerCompat$FrameCallback$1.doFrame (ChoreographerCompat.java:84)
at android.view.Choreographer$CallbackRecord.run (Choreographer.java:909)
at android.view.Choreographer.doCallbacks (Choreographer.java:723)
at android.view.Choreographer.doFrame (Choreographer.java:655)
at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:897)
at android.os.Handler.handleCallback (Handler.java:789)
at android.os.Handler.dispatchMessage (Handler.java:98)
at android.os.Looper.loop (Looper.java:164)
at android.app.ActivityThread.main (ActivityThread.java:6944)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:327)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1374)
Package.json
{
"name": "myapp",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest",
"postinstall": "jetify"
},
"dependencies": {
"@bankify/react-native-animate-number": "^0.2.1",
"@invertase/react-native-apple-authentication": "^0.1.1",
"@react-native-community/async-storage": "^1.6.3",
"@react-native-community/google-signin": "^3.0.3",
"@react-native-community/netinfo": "^4.6.1",
"babel-plugin-rewrite-require": "^1.14.5",
"clevertap-react-native": "^0.3.6",
"date-fns": "^1.30.1",
"deepdash-es": "^4.2.17",
"fast-safe-stringify": "^2.0.7",
"instabug-reactnative": "^9.0.0",
"lodash": "^4.17.15",
"metro-react-native-babel-preset": "^0.57.0",
"mobx": "^5.15.0",
"mobx-react": "^6.1.4",
"mobx-state-tree": "^3.15.0",
"moment": "^2.24.0",
"react": "16.9.0",
"react-native": "^0.61.5",
"react-native-animatable": "^1.3.3",
"react-native-branch": "^4.2.1",
"react-native-code-push": "^5.7.0",
"react-native-confetti": "^0.1.0",
"react-native-countup": "^0.0.2",
"react-native-draggable-flatlist": "^1.1.9",
"react-native-easy-toast": "^1.2.0",
"react-native-exception-handler": "^2.10.8",
"react-native-fbsdk": "^1.1.1",
"react-native-firebase": "^5.6.0",
"react-native-firebase-test-lab": "^0.0.2",
"react-native-gesture-handler": "^1.5.1",
"react-native-os": "^1.2.5",
"react-native-particles": "^0.0.8",
"react-native-popover-view": "^2.0.5",
"react-native-portal": "^1.3.0",
"react-native-pose": "^0.9.1",
"react-native-reanimated": "^1.4.0",
"react-native-restart": "^0.0.13",
"react-native-screens": "^1.0.0-alpha.13",
"react-native-shimmer": "^0.5.0",
"react-native-sortable-listview": "^0.2.9",
"react-native-sound": "^0.11.0",
"react-native-svg": "^9.13.3",
"react-native-v8": ">=0.61.5-patch.0 <0.61.6",
"react-native-vector-icons": "^6.6.0",
"react-native-version-number": "^0.3.6",
"react-navigation": "^4.0.10",
"react-navigation-drawer": "^2.3.3",
"react-navigation-stack": "^1.10.3",
"react-navigation-tabs": "^2.6.0",
"rn-sprite-sheet": "^1.1.3",
"smartlook-react-native-wrapper": "=0.21.0",
"styled-components": "^4.4.1",
"tinycolor2": "^1.4.1"
},
"devDependencies": {
"@babel/core": "^7.7.4",
"@babel/plugin-proposal-decorators": "^7.7.4",
"@babel/runtime": "^7.7.4",
"@react-native-community/cli": "^3.0.4",
"@types/jest": "^24.0.23",
"@types/lodash": "^4.14.149",
"@types/moment": "^2.13.0",
"@types/react": "^16.9.13",
"@types/react-native": "^0.60.23",
"@types/react-native-fbsdk": "^1.0.0",
"@types/react-native-google-signin": "^1.0.2",
"@types/react-native-restart": "^0.0.0",
"@types/react-native-vector-icons": "^6.4.4",
"@types/react-navigation": "^3.4.0",
"@types/react-test-renderer": "^16.9.1",
"@types/styled-components": "^4.4.0",
"@types/tinycolor2": "^1.4.2",
"babel-jest": "^24.9.0",
"jest": "^24.9.0",
"prettier": "^1.19.1",
"react-test-renderer": "16.9.0",
"typescript": "^3.7.2"
},
"jest": {
"preset": "react-native"
},
"rnpm": {
"assets": [
"./assets/fonts"
]
},
"react-native": {
"os": "react-native-os"
}
}
React Native version: System: OS: macOS 10.15.1 CPU: (12) x64 Intel® Core™ i7-8750H CPU @ 2.20GHz Memory: 21.48 MB / 16.00 GB Shell: 5.7.1 - /bin/zsh Binaries: Node: 12.10.0 - ~/.nvm/versions/node/v12.10.0/bin/node Yarn: 1.19.2 - ~/.yarn/bin/yarn npm: 6.10.3 - ~/.nvm/versions/node/v12.10.0/bin/npm SDKs: iOS SDK: Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1 IDEs: Android Studio: 3.5 AI-191.8026.42.35.6010548 Xcode: 11.3.1/11C504 - /usr/bin/xcodebuild npmPackages: @react-native-community/cli: ^3.0.4 => 3.0.4 react: 16.9.0 => 16.9.0 react-native: ^0.61.5 => 0.61.5
Steps To Reproduce
Unknown. Crash is random on production build on Android. Unable to reproduce reliably.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 19 (2 by maintainers)
https://github.com/facebook/react-native/pull/38581
react-native 0.70 the issue still exists. According to Dynatrace logs there are no specific steps to reproduces, as app crashes in different places at different time