无法调试,致命信号6(SIGABRT)在0x00007c37处(代码=-6)

5
我遇到了以下情况,无法调试安卓应用程序。我可以运行它,但无法调试它。我开始了一个全新的项目,复制了一切,它能够工作(也就是说能够调试),但又出现了这个问题。我在模拟器和手机上都尝试了,但没有效果。我使用的是Android Studio 0.5.1。
它在最开始就失败了。我觉得它没有进入MainActivity。当应用程序启动时,我收到“不幸的是,btbnie已停止工作”的消息。
感谢任何帮助/指导...
    03-19 21:10:24.334  31799-31799/com.learn.btnine.btbnine I/System.out? Sending WAIT chunk
    03-19 21:10:24.334  31799-31799/com.learn.btnine.btbnine W/ActivityThread? Application com.learn.btnine.btbnine is waiting for the debugger on port 8100...
    03-19 21:10:25.034  31799-31809/com.learn.btnine.btbnine I/art? Debugger is active
    03-19 21:10:25.144  31799-31799/com.learn.btnine.btbnine I/System.out? Debugger has connected
    03-19 21:10:25.144  31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
    03-19 21:10:25.344  31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
    03-19 21:10:25.544  31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
    03-19 21:10:25.744  31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
    03-19 21:10:25.944  31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
    03-19 21:10:26.144  31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
    03-19 21:10:26.344  31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
    03-19 21:10:26.544  31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
    03-19 21:10:26.754  31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
    03-19 21:10:26.954  31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
    03-19 21:10:27.154  31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
    03-19 21:10:27.354  31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
    03-19 21:10:27.554  31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
    03-19 21:10:27.754  31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
    03-19 21:10:27.954  31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
    03-19 21:10:28.154  31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
    03-19 21:10:28.354  31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
    03-19 21:10:28.554  31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
    03-19 21:10:28.754  31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
    03-19 21:10:28.954  31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
    03-19 21:10:29.154  31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...


    03-19 21:10:29.364  31799-31799/com.learn.btnine.btbnine I/System.out? debugger has settled (1455)
    03-19 21:10:29.504  31799-31809/com.learn.btnine.btbnine A/art? art/runtime/stack.cc:322] Expected: java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) Found: java.lang.Class java.lang.Class.classForName(java.lang.String, boolean, java.lang.ClassLoader)
    03-19 21:10:29.524  31799-31809/com.learn.btnine.btbnine A/art? art/runtime/stack.cc:322] Expected: java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) Found: java.lang.Class java.lang.Class.classForName(java.lang.String, boolean, java.lang.ClassLoader)
    03-19 21:10:29.524  31799-31809/com.learn.btnine.btbnine A/art? art/runtime/runtime.cc:203] Runtime aborting --- recursively, so no thread-specific detail!
    03-19 21:10:29.524  31799-31809/com.learn.btnine.btbnine A/art? art/runtime/runtime.cc:203]
    03-19 21:10:29.524  31799-31809/com.learn.btnine.btbnine A/libc? Fatal signal 6 (SIGABRT) at 0x00007c37 (code=-6), thread 31809 (JDWP)

如果你在Dalvik上运行而不是ART上运行,它能正常工作吗? - Scott Barta
不,我也试过了。 - Musa
我现在正好遇到了同样的问题,当运行时它按预期工作,但是在尝试调试我的应用程序时会崩溃并显示相同的错误消息。你找到解决这个问题的方法了吗? - CyberDandy
1个回答

1
我遇到了同样的问题:ClassLoader错误后跟随SIGABRT,但只有在调试器运行时才会出现。
对我来说,从ART切换到Dalvik解决了这个问题。

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接