Skip to content
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

Silent Crash On Android 12, No Log On Sentry Or Node #245

Closed
putuoka opened this issue Sep 14, 2022 · 4 comments
Closed

Silent Crash On Android 12, No Log On Sentry Or Node #245

putuoka opened this issue Sep 14, 2022 · 4 comments
Assignees
Labels

Comments

@putuoka
Copy link

putuoka commented Sep 14, 2022

Bug description:
Silent crash without log error on emulator pixel 2 api 31 Android 12. Video https://youtu.be/wtrPaFkw7ss

To Reproduce:

  1. Clone this repo
  2. go to demo folder and do yarn install/npm install
  3. edit app.js file change source from HTML into this source={{uri: 'https://www.google.com'}}
  4. run npx react-native run-android
  5. scroll up and down inside the page till frozen and crash happen

Source (static HTML or url):

Expected behavior:

Screenshots/Videos:
https://youtu.be/wtrPaFkw7ss

image

Environment:

  • OS: Windows 10
  • OS version:
  • react-native version: 0.69.1
  • react-native-webview version: 11.22.7
  • react-native-autoheight-webview version: ../
@dennispassway
Copy link

I'm also experiencing this issue. On the native stack I get the following stacktrace:

signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x20
Cause: null pointer dereference
    x0  0000000000000000  x1  0000007316618c8c  x2  0000000000000000  x3  0000000000000000
    x4  0000000000000078  x5  0000000000000438  x6  00000000000004b7  x7  0000000000000000
    x8  0000000000000000  x9  0000000000000000  x10 0000000000000000  x11 0000000200000004
    x12 0000000000000000  x13 00000073164525d0  x14 0000007316750708  x15 000000000000002e
    x16 000000730edcb7d0  x17 0000007313fe8b40  x18 0000006fd19e2000  x19 0000000000000000
    x20 0000000000000000  x21 0000000000000000  x22 0000000000000000  x23 0000000000000000
    x24 0000000000000000  x25 0000000000000000  x26 0000000000000000  x27 0000000000000000
    x28 0000000000000000  x29 0000006fd1b75bd0
    lr  00000073168ee65c  sp  0000006fd1b75bd0  pc  0000007316809d74  pst 0000000020001000
backtrace:
      #00 pc 0000000000409d74  /system/lib64/libhwui.so (SkSurface::getCanvas()+16)

@BrijeshMakwana18
Copy link

Try adding opacity: 0.99 in styles or try adding minHeight: 1

@BrijeshMakwana18
Copy link

I had the similar issue and I was not able to identify the root cause from any kind of logs then I tried this solution and it worked. I have already raised Pull Request if that works.

#246

@putuoka
Copy link
Author

putuoka commented Sep 23, 2022

sorry I have to close this issue because it has been successfully resolved. the issue is on scrollview overscroll. if you have webview inside scrollview add this overScrollMode="never"

ref: [Crash] WebView inside ScrollView crash on scroll end - Android https://lightrun.com/answers/react-native-webview-react-native-webview-crash-webview-inside-scrollview-crash-on-scroll-end---android

@putuoka putuoka closed this as completed Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants