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

标签 java android debugging runtime lang

我遇到了以下无法调试 android 应用程序的情况。我可以运行它但无法调试它。我开始了全新的项目,复制了所有内容并且它有效(意味着能够调试)但又得到了这个。我在模拟器和手机上都试过了,但无济于事。我正在使用 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)

最佳答案

我遇到了同样的事情:ClassLoader 错误后跟 SIGABRT,但仅在运行调试器时才发生。

对我来说,从 ART 切换到 Dalvik 解决了这个问题。

关于java - 无法调试,0x00007c37 处的致命信号 6 (SIGABRT)(代码=-6),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22521636/

相关文章:

java - XPath 2.0 中的函数 Reverse() : how can use it to evaluate an expression?

java - Android - TextView 中的标签

java - 帮助处理部分挂起的 j2ee 服务器的 Java 线程转储

c++ - Visual Studio 调试器正在卸载 DLL 的符号

java - 将CSS应用于javafx中webview内的内容

java - 为什么 loadfactor 是 0.75

android - 无法在 cordova 3.5.0 中添加 android 平台

android - 如何在android中制作ssh客户端

android - 动态 inflatedView 的问题

java - 使用 System.out.println 输出后可以更改一行吗?