-
Notifications
You must be signed in to change notification settings - Fork 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
WebView on Android Crashes Randomly #1838
Comments
I'm facing the same problem. I'm already in the last version 11.2.3 |
@lcaccavaro I think I fixed it by handling the const [loaded,setLoaded] = useState(true);
/// in WebView
return loaded && <WebView
onRenderProcessGone={() => {
setLoaded(false);
setTimeout(()=> setLoaded(true),100)
}}
/>
... |
Thanks for your trying.. |
@lcaccavaro then your problem is different than mine because for me that app never crashed, only the WebView. Maybe run |
Please let me know if you can find something that can help.
|
@lcaccavaro The log you posted does not include a single line related to react native application. where did you get it from and how? |
I opened the app and before I got the error I started adb logcat |
Hi @ammarahm-ed , I just tried to run adb logcat filtering by ReactNative as you mentioned with the following command.
Did you see any problem with this SIGSEGV? Thanks for your help |
One update, I could fix disabling the following property in android manifest. I'm a little bit warning about that. Thanks. |
A new update.. I found that there is androidHardwareAccelerationDisabled prop in webview that resolved my problem and does not impact the rest of application. |
Here, when I have vimeo or youtube video embedded, using androidHardwareAccelerationDisabled={false} crashes sometimes with android 10. Using androidHardwareAccelerationDisabled={true} not crashes, but vimeo or youtube video not show image, only audio. My react-native-webview version is 11.2.3 |
maybe #1915 (comment) |
Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically |
androidHardwareAccelerationDisabled={true} |
|
Setting |
WebView on Android crashes sometimes in a strange way. The app keeps working normally however the WebView is not loaded and onError does not get called. Is there a way to handle this and reload the WebView.
To Reproduce:
I haven't found a way to reproduce the issue since it happens very randomly but is annoying because you have to restart the app.
Expected behavior:
The WebView should keep running normally.
Screenshots/Videos:
Here is the crashlog.
onError
is not fired either.Environment:
The text was updated successfully, but these errors were encountered: