-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
Android FlatUIImplementation: Attempt to invoke virtual method PipelineDraweeControllerBuilderSupplier.get()' on a null object reference #14786
Comments
+1 But the behaviour is really strange, sometimes it not occurs at all and after reload command usually disappears and everything is rendered as expected |
We're experiencing the same problem. It seems that a race condition occurs somewhere at the start of the app. The FlatUIImplementation is kind of critical to us, without it the overall app experience decreases significantly. Any updates on this issue? |
Finally found a solution to solve the problem for me. It seems like it is somewhere here at FlatUIImplementation.java and likely described in a comment. But the solution is to init Fresco before this method execution. So, I've added Example
Hope this will help |
@aahz it help me. |
Hi there! This issue is being closed because it has been inactive for a while. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we're automatically closing issues after a period of inactivity. Please do not take it personally! If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:
If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution. |
Is this a bug report?
Yes
Have you read the Bugs section of the Contributing to React Native Guide?
Yes
Environment
react-native -v
: react-native: 0.46.0-rc.2node -v
: v7.4.0npm -v
: 4.0.5yarn --version
(if you use Yarn): 0.24.5Then, specify:
Steps to Reproduce
Either
git clone https://github.com/jevakallio/FlatUIImplementationBugRepro.git
yarn
react-native run-android
(with device or emulator connected)Or, manually:
react-native init BleedingEdge --version [email protected]
rm .babelrc
to work around [0.46] Packager fails: Unknown plugin "transform-runtime" #14530react-native run-android
Expected Behavior
Renders the empty
react-native init
template project.Actual Behavior
I get the following redbox error (screenshot below):
react-native run-android
, the error only occurs occasionallyImage
elements in the repro app, so Fresco error is surprisingThe last stack trace on the React Native side is at https://github.com/facebook/react-native/blob/master/ReactAndroid/src/main/java/com/facebook/react/flat/RCTImageViewManager.java#L52
Reproducible Demo
https://github.com/jevakallio/FlatUIImplementationBugRepro
The text was updated successfully, but these errors were encountered: