-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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 crashes when any form of ScrollView exists in signed production build "app-release.apk" #17358
Comments
I've got same thing on iOS on react-native 0.48.3, and actually suddenly I have bunch of warning at the beginning
|
I think your issue goes back to the previous thread you were on.... Not this bug. |
I've got the same error as you on production build, but at the same time these errors appear on development build. I don't know if it's related. |
Closing issue for I am closing the issue I created today for this one. |
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
Environment:
OS: Windows 10
Node: 8.9.1
Yarn: 1.3.2
npm: 5.5.1
Watchman: Not Found
Xcode: N/A
Android Studio: Version 3.0.0.0 AI-171.4408382
Packages: (wanted => installed)
react: 16.0.0 => 16.0.0
react-native: 0.51.0 => 0.51.0
Steps to Reproduce
GitHub issue 353891887
Expected Behavior
I expected that the release version would work as the debug version did.
Actual Behavior
Signed apk crashes when any screen which has any version of ScrollView in it's render.
The problem is this:
this._subscribableSubscriptions.forEach
fails because the "this._subscribableSubscriptions" is null (and should not be).
Here is where the error occurs: in Subscribable.js
(..\node_modules\react-native\Libraries\Components\Subscribable.js)
This is the original code.
Here is where i removed the failing call. I have confirmed that this._subscribableSubscriptions returns a null and crashes when the forEach() is called.
Following removing the offending code, the app no longer crashes on startup.
FROM LOGCAT:
Reproducible Demo
Because the app crashes on a production build here is a simple App.js file.
This demo can be reproduced by:
NOTE: but probably not important. When I build my app (either my own app or the test app), I must run gradlew assembleRelease twice, it always fails the first time. I think it needs to reset the transform cache.
ADDITIONAL NOTE: From what the other person who has seen this said, when reducing the version of React-native to 49.5 the problem goes away.
The text was updated successfully, but these errors were encountered: