问题描述
今天我遇到了一个错误,因为我的 Android 应用程序正在通过 SIGNAL 11.
Today I faced an error due to which my Android application is getting by SIGNAL 11.
此错误通常是由于 Android 内部存储未经授权访问内存区域而发生的.一些可能的场景是 Web 访问、网络通信、服务器图像下载等.我的是浏览器加载url的情况!
This error usually occurs due to unauthorized memory area access by Android internal storage. Some of the possible scenarios are web access, network communication, server image downloading and such. Mine was the case of browser load url!
http://bootloader.wikidot.com/linux:android:crashlog
我需要在扫描二维码后启动浏览器.
I need to launch the browser after a QR code scan.
应用程序一直在流畅地扫描和启动浏览器,但在尝试相同步骤 15-20 次后出现问题..
Application was keep on scanning and launching the browser fluently but the issue occurs after 15-20 attempts of same steps..
我研究了很多,发现它发生在Android Native库中的MEMORY ERROR..通常是当android内部存储系统尝试访问未知的内存区域时.
I researched a lot and found that its the MEMORY ERROR which occurs in Android Native libraries.. usually when an unknown memory area is tried to access by the android internal storage system.
最后我透露,当我在Android应用程序设置部分看到我的应用程序内存使用情况时,我发现缓存已经达到了10 MB..
Finally I revealed that when I saw my application memory usage in the Android application setting section, i found that the cache has been reached to 10 MB..
推荐答案
调用webview.clearCache();
和webView2.destroyDrawingCache();
这应该可以解决问题.
这篇关于SIGNAL 11 SIGSEGV 崩溃 Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!