-
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] Regression with animated gifs in react native 0.43 - hard crash #13345
Comments
We're seeing this as well. I've attached the stack trace below. I tried blindly updating fresco to 1.2.0 on the off chance that might fix it, but no beans
|
just to make this clear: the app crashes completely. It's really serious. |
Thirded. Hard crash on 0.43. |
fixed by updating dependencies from 0.11.0 to 0.14.1 compile 'com.facebook.fresco:animated-base-support:0.14.1' maybe the doc is outdated. |
I can confirm that fresco 0.14.1 works indeed. Weird thing is that v 1.2 doesn't. PR for docs: #13419 |
@AndrewJack proposed to use 1.0.1 - which seems to work as well. |
|
Upgrading to fresco 1.0.1 fixed for us. Thanks everyone! |
…13345 Summary: Thanks for submitting a PR! Please read these instructions carefully: React Native crashes hard on fresco 0.11.0 - see facebook#13345 Repro case in facebook#13345 Closes facebook#13419 Differential Revision: D4913258 Pulled By: javache fbshipit-source-id: 8beb55102e0f2d362c77698a35ea7d57fdcba48d
…13345 Summary: Thanks for submitting a PR! Please read these instructions carefully: React Native crashes hard on fresco 0.11.0 - see facebook#13345 Repro case in facebook#13345 Closes facebook#13419 Differential Revision: D4913258 Pulled By: javache fbshipit-source-id: 8beb55102e0f2d362c77698a35ea7d57fdcba48d
* upgraded to RN 0.43.4 and most other dependencies * Fixed style issues caused by native-base in some components * deleted ‘home’ page (was not used anywhere) * Made BadNavigationScreen into a Functional Component * Replaced all the native-base view and text with react-native view and text * Removed duplicate permissions from AndroidManifest * fixed ‘next’ button style in uploadLookScreen * Added missing binding in addItemScreen constructor * fixed clear button * Fixed gif issue (facebook/react-native#13345) * Aligned Gllu.Button text * aligned report and back button in profile screen * fixed LikeView alignment * Fixed incorrect styling of LikeView * fix look screen keys bug * Removed weird gap in bottom of comments view * ios changes for rn0.40 * fixed empty view style issues in Notifications/Followers & Following screens * App loads react modules correctly. (Still have to deal with Flurry bug) * Fixed iOS flurry bug (resolved react-native-config version straight form sources instead of fork) * fixed missing config files in build.gradle
* upgraded to RN 0.43.4 with broken dependencies * Fixed style issues cause by native-base in some components (will be fully fixed in future commit) * deleted ‘home’ page (was not used anywhere) * Removed some native-base redundant form components * handled some parts of sign-in and splash screen to be “native-base less” * Made BadNavigationScreen into a Functional Component * Fixed native-base issues in activation page * fixed native-base issues in signup page * Replaced all the native-base view and text with react-native view and text * Animations look AWESOME * Refactored most of the flow of uploadLook * tiny refactor for brands autocomplete * Fixed native-base style issues in uploadLook (all stages) * fixed native-base issues with profilescreen & settings screen * Fixed broken react-native-video * fixed disappearing list views * Updated package son for RN0.43 * Removed duplicate permissions from AndroidManifest * fixed ‘next’ button style in uploadLookScreen * Added missing binding in addItemScreen constructor * fixed clear button * Fixed gif issue (facebook/react-native#13345) * Aligned Gllu.Button text * aligned report and back button in profile screen * fixed LikeView alignment * Fixed incorrect styling of LikeView * fix look screen keys bug * Removed weird gap in bottom of comments view * ios changes for rn0.40 * fixed empty view style issues in Notifications/Followers & Following screens * App loads react modules correctly. (Still have to deal with Flurry bug) * Fixed iOS flurry bug (resolved react-native-config version straight form sources instead of fork) * fixed missing config files in build.gradle * Feature/native android camera component (#208) * - Integrate camera native component * -Change default record circle button. - Force default front camera. - Crop image after stillshot. - Set crop aspect ratio to 9:16 * - Change cropper action bar background. - Remove unnecessary buttons. - Add flip horizontal button. - Remove image preview screen. - Fix taking photos on some devices. * - Fix video stretching. - Video preview now showed full screen * Remove from gitignore * - Remove rotate button. - Fix landscape camera crash (disable landscape) * - Add trimer library * Trim Video settings * Integrate video trimming in entire flow
Tried to use the recommended (02.09.2017) compile 'com.facebook.fresco:animated-base-support:1.3.0' with RN 0.45 and it crashed, but tested it succesfully with the newer release RN 0.48. Downgraded my app in RN to fresco 1.0.1 as mentioned above and gif works in RN 0.45 . Maybe this could be mentioned somewhere in a more official place? |
I am using RN 0.50.3 |
The crash log I am getting is:
|
UPDATE: If I add:
... to the dependencies block of |
I tried every combination, the following setup is the only working one:
|
this way: compile 'com.facebook.fresco:animated-gif:1.3.0' |
Description
After the upgrade to react native 0.43 from 0.42 our app crashes hard on the display of animated gifs.
Reproduction Steps and Sample Code
In http://facebook.github.io/react-native/releases/0.43/docs/image.html#gif-and-webp-support-on-android you describe how to use animated gifs with react native. Basically it's adding one line to
android/app/build.gradle
:and then just using the Image tag.
As a repro we did that on top of hello world sample:
For repro:
npm install
react-native run-android
Additional Information
The text was updated successfully, but these errors were encountered: