繁体   English   中英

A/libc:致命信号 11 (SIGSEGV),代码 1 (SEGV_MAPERR),tid 8890 (RenderThread) 中的故障地址 0x20,pid 8833

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

我的 React 本机应用程序中的某些操作(导航到屏幕、打开视频播放器等)发生崩溃。 我已经在 android stdio 中记录了错误,如下所示:

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

通过在 Android Manifest 中设置以下来解决崩溃

 android:hardwareAccelerated="false"

但是在将 android:hardwareAccelerated 设置为 false 后,我的 react-native-video 播放器现在显示黑屏,我认为这不是解决它的最佳方法。

我不知道为什么我会崩溃。 如果有任何帮助,我将不胜感激。

可能是重复的: React Native - Null pointer dereference after navigating to/from a page containing multiple tweets embedded in their own WebViews

当我离开一个在其中使用react-native-webview的屏幕时,我的应用程序崩溃了。

我的解决方案:

例子:

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

其他人使用androidHardwareAccelerationDisabled={true} ,但它对我不起作用并且还会导致性能问题。

例子:

    <WebView
      androidHardwareAccelerationDisabled
    />

链接到我找到解决方案的 github 讨论: https://github.com/react-native-webview/react-native-webview/issues/811#issuecomment-570813204

我也遇到过同样的问题; 在“React Native 应用程序”中使用“realm”:“^10.9.1”在realmDB 中保存一些“任务数据”。

以前我使用“React-Navigation 5x”,它依赖于react-native-reanimated 现在我已将我的代码升级到“React-Navigation 6x”,并删除了旧的react-native -reanimated 版本 2.0.0-rc.2 。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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