我的应用程序在运行时运行正常,但是当我想调试以查看变量值时,应用程序崩溃了.完整的调试日志如下.我不知道纠正它的错误是什么.你能帮帮我们吗?我读了一些关于Disconnected from the target VM, address: 'localhost:8606', transport: 'socket'我的内容并禁用了ADB Integration并且没有帮助我.我试图清理,重建和再次运行项目,并没有帮助我.每次我尝试开始调试应用程序崩溃.
先感谢您!!
Connected to the target VM, address: 'localhost:8606', transport: 'socket'
I/System.out: waiting for debugger to settle...
I/System.out: debugger has settled (1421)
W/System: ClassLoader referenced unknown path: /data/app/com.example.rares.echipahandbaltema2-2/lib/x86
I/InstantRun: Instant Run Runtime started. Android package is com.example.rares.echipahandbaltema2, real application class is null.
W/System: ClassLoader referenced unknown path: /data/app/com.example.rares.echipahandbaltema2-2/lib/x86
W/art: Not able to initialize class for SetValues: java.lang.Class<com.example.rares.echipahandbaltema2.MainActivity$1>
W/art: Not able to initialize class for SetValues: java.lang.Class<com.example.rares.echipahandbaltema2.MainActivity$1>
I/art: Starting a …Run Code Online (Sandbox Code Playgroud) 我只是从Eclipse切换到Android Studio,发现了这种奇怪的行为.当我在方法的第一行添加断点时,我看不到参数值.我唯一能看到的是this参考.我要么必须进行一个调试步骤,要么将断点设置为第一个之后的一行,以查看参数值.
其他人有这个问题或知道这里出了什么问题?
在今天工作的时候,似乎突然间我再也无法调试我们的应用程序了.有趣的是,如果我正常运行应用程序它会工作得很好.为了澄清,我整个上午都在运行调试器而没有发生任何事故(除了偶尔的故障或崩溃).然后在午餐后它开始失败100%的时间.当然,我一整天都在做出改变,因此"似乎"在上面.所以,这里有一些相关的细节:
Android Studio 2.1.1(2016年4月28日版)
这个应用程序启动登录屏幕.然后,用户必须使用调用外部服务的用户名/密码进行身份验证.
我可以进入登录屏幕,但应用程序将始终在身份验证过程中的同一点崩溃.
这是堆栈跟踪:
05-24 14:56:25.764 2399-2745/com.mycomp.myapp.test E/Crashlytics: Failed to execute task.
java.lang.InterruptedException
at java.util.concurrent.FutureTask.awaitDone(FutureTask.java:375)
at java.util.concurrent.FutureTask.get(FutureTask.java:162)
at com.crashlytics.android.v.a(SourceFile:1936)
at com.crashlytics.android.v.uncaughtException(SourceFile:307)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)
05-24 14:56:25.764 2399-2745/com.mycomp.myapp.test E/AndroidRuntime: FATAL EXCEPTION: pool-5-thread-1
Process: com.mycomp.myapp.test, PID: 2399
java.lang.InterruptedException
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:1991)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2025)
at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:410)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1035)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1097)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:820)
Run Code Online (Sandbox Code Playgroud)
以下是我试图解决的问题:
到目前为止,没有任何作用.但是,我不能强调,如果我只是运行应用程序(播放按钮,^ R)并在同一设备上运行它,它工作得很好!登录没有问题.所以,它似乎不是一个代码问题.
此外,如果你查看堆栈跟踪,没有任何指向我们的项目.
有任何想法吗?
我的应用运行完美,没有任何问题.但是当我尝试调试它时,android studio冻结了.所以我收到消息"等待调试器",然后该消息消失,然后我在模拟器中只得到一个黑屏.我也收到了消息
SIGNAL = SIGABRT (signal SIGABRT)
Run Code Online (Sandbox Code Playgroud)
在变量选项卡下的调试窗口中.
我该如何解决?
我崩溃了,没有有用的logcat。无用的错误转储每次都会提及不同的Java源代码行。(通常在JSONObject.put中,但是确实有所不同)。这发生在某处onHandleIntent在IntentService...
A/art: art/runtime/jdwp/jdwp_event.cc:681] Check failed: threadId != 0u (threadId=0, 0u=0)
A/art: art/runtime/runtime.cc:422] Runtime aborting...
A/art: art/runtime/runtime.cc:422] Aborting thread:
A/art: art/runtime/runtime.cc:422] "Jit thread pool worker thread 0" prio=5 tid=2 WaitingForDebuggerSend (still starting up)
A/art: art/runtime/runtime.cc:422] | group="" sCount=0 dsCount=0 obj=0x0 self=0x7413c16000
A/art: art/runtime/runtime.cc:422] | sysTid=19272 nice=9 cgrp=default sched=0/0 handle=0x741ad02450
A/art: art/runtime/runtime.cc:422] | state=R schedstat=( 326115573 6002657 230 ) utm=26 stm=5 core=1 HZ=100
A/art: art/runtime/runtime.cc:422] | stack=0x741ac04000-0x741ac06000 stackSize=1021KB
A/art: art/runtime/runtime.cc:422] | held mutexes= "abort lock"
A/art: art/runtime/runtime.cc:422] native: …Run Code Online (Sandbox Code Playgroud)