-
-
Notifications
You must be signed in to change notification settings - Fork 526
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] screens + scrollview + webview crash #214
Comments
I've got a very similar issue, when navigation from a Screen with a WebView the app crashes. |
I can confirm crashes like that on Android using a setup like yours. It produces Signal 11 errors |
If we add "androidHardwareAccelerationDisabled" to the WebView tag, we get the following Error. I/services.chedr: Background concurrent copying GC freed 99321(4MB) AllocSpace objects, 56(972KB) LOS objects, 38% free, 9MB/15MB, paused 1.053ms total 195.928ms |
+1 |
1 similar comment
+1 |
this is the expo link: https://snack.expo.io/@jekiwijaya/react-native-screens-webview |
enableScreens() |
Does the issue still exist in v. 2.4.0? |
This issue exists in v. 2.4.0 |
I found the main code cause this crash is below method inside Screen.java
if the webview set androidHardwareAccelerationDisabled={true} would temporarily fix it
|
This issue still exists in version 2.7.0. Setting |
I can also confirm that this happens with 2.7.0. A temporary fix as already mentioned is |
any updates? |
I am closing this issue to keep the discussion about |
androidHardwareAccelerationDisabled worked for me, thanks a lot |
thanks |
I have 2 Screens:
enableScreens
Crash can be avoided by using one of the following 3 fixes (you only need one):
Some Context
There is another issue which is not exactly the same but nearly. You can find it here:
react-native-webview/issues/429
But that issue is not exactly the same, because the people in that thread tell, that it was fixed in chrome 73 or 75 (different comments).
So I started a new thread here, because I use chrome 78 and detect this behaviour only in combination scrollview + webview + react-native-screens + stacknavigator.
Environment to reproduce:
Here is the code:
Be aware, when you test this code with expo-sdk35 you cannot use
enableScreens
. You must use the legacy codeuseScreens
.The text was updated successfully, but these errors were encountered: