-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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 WebView] Flickers (and sometimes) crashes with gifs #16529
Comments
May be related to #16445 |
I think this may be linked to Fresco. Looking for the version that was used back in 0.43.2. I'm having problems even with simple images. Not all of them, but seems like some jpgs (on http://) generate instant crashes. Below, an example
Stack Trace java.lang.RuntimeException: |
Follow up. It seems to be a caching problem. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions. |
I believe this line is your problem: If you remove this, I believe the flickering will disappear. I had the same issue and that seemed to solve it. This suggests this is a RN bug specific to how switching between the loading view and web view is handled. |
@tutoring |
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
Environment:
OS: Windows 10
Node: 6.11.4
Yarn: Not Found
npm: 3.10.10
Watchman: Not Found
Packages: (wanted => installed)
react-native: 0.48.4 => 0.48.4
react: 16.0.0-alpha.3 => 16.0.0-alpha.3
Target Platform: Android (7.0) [tested on an Galaxy S8]
Note: the problem did not exist on 0.43.2 but there have been a new Webview release by Google too.
There are absolutely no problems on Android 4.4 (Galaxy S3) nor Android 5.0 (Galaxy S6)
Steps to Reproduce
Expected Behavior
The webview displays the gif without problems.
(The gif in the code is just an example. There are problems with most gifs. Seems like GIFs when returned by Google are quicker to exhibit problems.)
Actual Behavior
After about a minute, the gif flickers badly, then the picture goes dark and there are sometimes crashes of the app.
Reproducible Demo
The text was updated successfully, but these errors were encountered: