简体   繁体   中英

A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x20 in tid 8890 (RenderThread), pid 8833

I am getting a crash on some actions(navigating to a screen, open video player etc) in my react native app. I have logged the error in android stdio and it was as below:

A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x20 in tid 8890 
    (RenderThread), pid 8833

The crash is resolved by setting below in Android Manifest

 android:hardwareAccelerated="false"

But my react-native-video player is now showing black screen after setting android:hardwareAccelerated to false and I think it is not the best way to resolve it.

I don't know why I am getting this crash. I would be thankful for any help.

Might be a duplicate: React Native - Null pointer dereference after navigating to/from a page containing multiple tweets embedded inside their own WebViews

My app was crashing when I was navigating away from a screen which was using react-native-webview inside it.

My solution:

Example:

    <WebView
      style={{ opacity: 0.99 }}
    />

Others used androidHardwareAccelerationDisabled={true} , but it didn't work for me and can also cause performance issues.

Example:

    <WebView
      androidHardwareAccelerationDisabled
    />

Link to github discussion where I found the solution: https://github.com/react-native-webview/react-native-webview/issues/811#issuecomment-570813204

I have faced the same problem; was using "realm": "^10.9.1", in a “React Native application” to save some “Task Data” in realmDB.

Previously I was using "React-Navigation 5x" which have a dependency on react-native-reanimated . Now I have upgraded my code to "React-Navigation 6x", and removed old react-native-reanimated package version 2.0.0-rc.2 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM