应用随机崩溃与A / libc中:致命的信号11 [英] App randomly crashes with A/libc: fatal signal 11

查看:644
本文介绍了应用随机崩溃与A / libc中:致命的信号11的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

让我的应用程序开始随机致命信号11崩溃(随机活动,一些人似乎更往往比其他做,但我还没有找到一个模式还)。我不知道为什么,它没有这样做之前,我的code并没有改变太多,主要是,同样的code正常工作的我的同事。我厌倦了做来解决它:

so my app started randomly crashing with Fatal Signal 11 (on random activities, some seem to do it more often than other but I haven't found a pattern yet). I have no idea why, it didn't do it before and my code didn't change that much and mainly, the same code works fine for my colleague. what I tired to do to fix it:

  • 重新启动我的机器
  • 在三重检查一切都在我的code
  • 在运行gradlew清洁和重建的一切
  • 检查从VCS的旧版本(我敢肯定的了)
  • 检查从VCS的旧版本到​​一个完全新的项目
  • 使用不同版本的Andr​​oid(4.1-4.3)
  • 使用不同的仿真器(常规AVD及放大器; genymotion)

坦率地说,我所有的想法,有我的机器上没有变化(甚至没有Windows更新),在code无重大变化(我试图恢复只是为了安全起见),没有变化JVM,Android的工作室没有更新的错误完全是随机的。

Quite frankly I'm all out of ideas, there was no change on my machine (not even windows updates), no major change in the code (and I tried reverting just to be safe), no change in JVM, Android Studio didn't have an update and the error is completely random.

感谢您的任何想法...

thanks for any ideas...

的崩溃报告:

.debug A/libc﹕ Fatal signal 11 (SIGSEGV) at 0x97e2c9c4 (code=2), thread 1768 (.smartpos.debug)
11-25 12:37:20.092      103-103/? I/DEBUG﹕ *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
11-25 12:37:20.092      103-103/? I/DEBUG﹕ Build fingerprint: 'generic/vbox86p/vbox86p:4.3/JLS36G/eng.buildbot.20131113.022613:userdebug/test-keys'
11-25 12:37:20.092      103-103/? I/DEBUG﹕ Revision: '0'
11-25 12:37:20.092      103-103/? I/DEBUG﹕ pid: 1768, tid: 1768, name: .smartpos.debug  >>> .debug <<<
11-25 12:37:20.092      103-103/? I/DEBUG﹕ signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 97e2c9c4
11-25 12:37:20.196      103-103/? I/DEBUG﹕ eax 97e2c034  ebx b6191ccc  ecx b8aea200  edx 00000264
11-25 12:37:20.200      103-103/? I/DEBUG﹕ esi a56b0b58  edi a56b0b58
11-25 12:37:20.200      103-103/? I/DEBUG﹕ xcs 00000073  xds 0000007b  xes 0000007b  xfs 00000000  xss 0000007b
11-25 12:37:20.200      103-103/? I/DEBUG﹕ eip b60ae6fc  ebp 97e2c000  esp bfe452e0  flags 00210282
11-25 12:37:20.200      103-103/? I/DEBUG﹕ backtrace:
11-25 12:37:20.200      103-103/? I/DEBUG﹕ #00  pc 000de6fc  /system/lib/libdvm.so (dvmResolveString+124)
11-25 12:37:20.200      103-103/? I/DEBUG﹕ #01  pc 0002a3d7  /system/lib/libdvm.so
11-25 12:37:20.200      103-103/? I/DEBUG﹕ #02  pc 00277767  /dev/ashmem/dalvik-heap (deleted)
11-25 12:37:20.200      103-103/? I/DEBUG﹕ #03  pc 0003b322  /system/lib/libdvm.so (dvmMterpStd(Thread*)+66)
11-25 12:37:20.200      103-103/? I/DEBUG﹕ #04  pc 000369e9  /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+217)
11-25 12:37:20.200      103-103/? I/DEBUG﹕ #05  pc 000b9f62  /system/lib/libdvm.so (dvmInvokeMethod(Object*, Method const*, ArrayObject*, ArrayObject*, ClassObject*, bool)+1634)
11-25 12:37:20.200      103-103/? I/DEBUG﹕ #06  pc 000ce9e0  /system/lib/libdvm.so (Dalvik_java_lang_reflect_Method_invokeNative(unsigned int const*, JValue*)+288)
11-25 12:37:20.200      103-103/? I/DEBUG﹕ #07  pc 00173058  /system/lib/libdvm.so
11-25 12:37:20.200      103-103/? I/DEBUG﹕ #08  pc 00005eff  <unknown>
11-25 12:37:20.200      103-103/? I/DEBUG﹕ #09  pc 0003b322  /system/lib/libdvm.so (dvmMterpStd(Thread*)+66)
11-25 12:37:20.200      103-103/? I/DEBUG﹕ #10  pc 000369e9  /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+217)
11-25 12:37:20.200      103-103/? I/DEBUG﹕ #11  pc 000bacf7  /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, char*)+759)
11-25 12:37:20.200      103-103/? I/DEBUG﹕ #12  pc 0007774d  /system/lib/libdvm.so (CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, char*)+109)
11-25 12:37:20.200      103-103/? I/DEBUG﹕ #13  pc 0005d3ea  /system/lib/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+42)
11-25 12:37:20.200      103-103/? I/DEBUG﹕ #14  pc 0005eaac  /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*)+924)
11-25 12:37:20.200      103-103/? I/DEBUG﹕ #15  pc 00001017  /system/bin/app_process (main+567)
11-25 12:37:20.200      103-103/? I/DEBUG﹕ #16  pc 0000cedc  /system/lib/libc.so (__libc_init+108)
11-25 12:37:20.200      103-103/? I/DEBUG﹕ #17  pc 00000a91  /system/bin/app_process (_start+97)

更新:

看来问题是与x86图像(包括AVD和genymotion),如果我用胳膊像一切似乎工作。我会尽量挖掘更深,提交错误报告时,我有更多的时间。现在看来我必须要有耐心的慢慢的手臂图片:/

it seems the problem is with the x86 images (both AVD and genymotion) if I use arm image everything seems to work. I'll try to dig in deeper and submit a bug report when I have more time. for now it seems I have to be patient with the slow slow arm images :/

推荐答案

要小心,如果你正在使用GSON和序列化 android.location.Location 的对象,我得到这个错误,我固定它取代 android.location.Location 我在位置包装。

be careful if you are using gson and you serialize android.location.Location objects, I got this error and I fixed it replacing android.location.Location with my on Location wrapper.

这篇关于应用随机崩溃与A / libc中:致命的信号11的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆