admin管理员组文章数量:1394987
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.
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.
Share Improve this question asked Jun 28, 2021 at 7:27 Bhaskar JoshiBhaskar Joshi 4431 gold badge9 silver badges19 bronze badges 6- if the error should occur in android emulator, then test it on a real device. android emulators seem to have multiple isses with hardware acceleration. – rmunge Commented Jul 11, 2021 at 17:29
- Have you tried to clean the Gradle and generate the build? – Jignesh Mayani Commented Jul 13, 2021 at 6:24
- 2 do you have any native(cpp library) ? – CodeWithVikas Commented Jul 16, 2021 at 14:23
- I am facing the same issue: I am using "realm": "^10.9.1", in a “React Native application” to save some “Feed Array” data in realmDB, before closing my application. – ArefinDe Commented Nov 1, 2021 at 9:28
- @Bhaskar Joshi have you found any solution for this – Sudharsan Palanisamy Commented Oct 10, 2022 at 5:31
2 Answers
Reset to default 4Might 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./react-native-webview/react-native-webview/issues/811#issuement-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 .
本文标签:
版权声明:本文标题:javascript - Alibc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x20 in tid 8890 (RenderThread), pid 8833 - Stac 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744110534a2591272.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论