-
Notifications
You must be signed in to change notification settings - Fork 3.1k
WebView recently started crashing on Android on some devices #430
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
Comments
@lukebaker I can confirm that the crashes is related. we where seeing the |
@christianbach @lukebaker this crash also happens on Samsung S8 Android 8 with similar error " Edited: the fix is working under WebView with other components. But does not fix the issue if I have the single webView for the entire screen. |
@malonguwa do you really need to wrap the webview with |
@dlindstrm cos when I navigate to my webViewScreen and then click the back button on the left top l, the app crash..... and I guess it is related to the webView component, cos this only happens when navigate back from the WebViewScreen, if no webView everything works well, but this walk around does not work in my case |
Let's keep all discussion to #429! This will probably help get this solved faster 💯 |
This solved the issue for me. I was getting a random crash only on android when I navigate back from a screen that was using webview in react navigation. Only thing I was getting from error log in Android Studio was |
@gamingumar Same, using |
Still still persists in Hermes engine. Had to disable it also enable hardwareAcceleration on android. |
no, there is nothing related to Hermes engine, it is just an Chrome bug, using |
`const Nav = createStackNavigator({
);` |
This works:
This still crashes:
If your WebView needs to be full screen just use |
Moved to #429. |
Starting on March 14, our app started seeing crash reports from users that have this backtrace:
Our last release was on February 7, so we haven't introduced any changes. Additionally, it doesn't appear to be related to the content that we're showing as all the content we've been showing for the past month also shows the problem.
I was able to duplicate it on the following:
The WebView is inside of a ScrollView with other non-WebView components. On screen load the WebView is visible, but if we scroll down so that the WebView content is fully off the screen, the app will crash.
If I remove the
overflow: "hidden"
fix, the app will not crash, but the WebView doesn't render properly within the content. Setting the style of the WebView to includeopacity: 0.99
also does not render the content properly (i.e., it still needs whatever theoverflow: "hidden"
fix does).Here is what I see in logcat:
I wonder if it is related to #429, but that description does not fit what I see exactly.
The text was updated successfully, but these errors were encountered: