这个调试时才出现错误有谁知道原因吗?

xieyongbao 2016-11-27 01:53:22
A/art: art/runtime/jdwp/jdwp_event.cc:661] Check failed: Thread::Current() != GetDebugThread() (Thread::Current()=0xabb30400, GetDebugThread()=0xabb30400) Expected event thread
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] "JDWP" prio=5 tid=4 WaitingForDebuggerSend
A/art: art/runtime/runtime.cc:422] | group="" sCount=0 dsCount=0 obj=0x12c32a60 self=0xabb30400
A/art: art/runtime/runtime.cc:422] | sysTid=3096 nice=0 cgrp=default sched=0/0 handle=0xb2150920
A/art: art/runtime/runtime.cc:422] | state=R schedstat=( 0 0 0 ) utm=4 stm=1 core=1 HZ=100
A/art: art/runtime/runtime.cc:422] | stack=0xb2054000-0xb2056000 stackSize=1014KB
A/art: art/runtime/runtime.cc:422] | held mutexes= "abort lock"
A/art: art/runtime/runtime.cc:422] native: #00 pc 00572f1e /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+238)
A/art: art/runtime/runtime.cc:422] native: #01 pc 0053f30e /system/lib/libart.so (_ZNK3art6Thread9DumpStackERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMap+526)
A/art: art/runtime/runtime.cc:422] native: #02 pc 0053c30b /system/lib/libart.so (_ZNK3art6Thread4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMap+75)
A/art: art/runtime/runtime.cc:422] native: #03 pc 00527f13 /system/lib/libart.so (_ZNK3art10AbortState10DumpThreadERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEPNS_6ThreadE+67)
A/art: art/runtime/runtime.cc:422] native: #04 pc 00527ce7 /system/lib/libart.so (_ZNK3art10AbortState4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+615)
A/art: art/runtime/runtime.cc:422] native: #05 pc 0051822b /system/lib/libart.so (_ZN3art7Runtime5AbortEPKc+155)
A/art: art/runtime/runtime.cc:422] native: #06 pc 0011a5b3 /system/lib/libart.so (_ZN3art10LogMessageD1Ev+1747)
A/art: art/runtime/runtime.cc:422] native: #07 pc 0039b74d /system/lib/libart.so (_ZN3art4JDWP9JdwpState24AcquireJdwpTokenForEventEy+733)
A/art: art/runtime/runtime.cc:422] native: #08 pc 0039acf3 /system/lib/libart.so (_ZN3art4JDWP9JdwpState29SendRequestAndPossiblySuspendEPNS0_9ExpandBufENS0_17JdwpSuspendPolicyEy+211)
A/art: art/runtime/runtime.cc:422] native: #09 pc 003a0ec9 /system/lib/libart.so (_ZN3art4JDWP9JdwpState16PostClassPrepareEPNS_6mirror5ClassE+1705)
A/art: art/runtime/runtime.cc:422] native: #10 pc 001c2a85 /system/lib/libart.so (_ZN3art3Dbg16PostClassPrepareEPNS_6mirror5ClassE+53)
A/art: art/runtime/runtime.cc:422] native: #11 pc 001689fc /system/lib/libart.so (_ZN3art11ClassLinker11DefineClassEPNS_6ThreadEPKcjNS_6HandleINS_6mirror11ClassLoaderEEERKNS_7DexFileERKNS9_8ClassDefE+1116)
A/art: art/runtime/runtime.cc:422] native: #12 pc 0043d6c0 /system/lib/libart.so (_ZN3artL25DexFile_defineClassNativeEP7_JNIEnvP7_jclassP8_jstringP8_jobjectS7_S7_+448)
A/art: art/runtime/runtime.cc:422] native: #13 pc 001c5352 /system/framework/x86/boot-core-libart.oat (???)
A/art: art/runtime/runtime.cc:422] at dalvik.system.DexFile.defineClassNative(Native method)
A/art: art/runtime/runtime.cc:422] at dalvik.system.DexFile.defineClass(DexFile.java:296)
A/art: art/runtime/runtime.cc:422] at dalvik.system.DexFile.loadClassBinaryName(DexFile.java:289)
A/art: art/runtime/runtime.cc:422] at dalvik.system.DexPathList.findClass(DexPathList.java:418)
A/art: art/runtime/runtime.cc:422] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:54)
A/art: art/runtime/runtime.cc:422] at com.android.tools.fd.runtime.IncrementalClassLoader$DelegateClassLoader.findClass(IncrementalClassLoader.java:90)
A/art: art/runtime/runtime.cc:422] at com.android.tools.fd.runtime.IncrementalClassLoader.findClass(IncrementalClassLoader.java:62)
A/art: art/runtime/runtime.cc:422] at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
A/art: art/runtime/runtime.cc:422] at java.lang.ClassLoader.loadClass(ClassLoader.java:367)
A/art: art/runtime/runtime.cc:422] at java.lang.ClassLoader.loadClass(ClassLoader.java:367)
A/art: art/runtime/runtime.cc:422] at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
A/art: art/runtime/runtime.cc:422] Dumping all threads without appropriate locks held: thread list lock mutator lock

A/art: art/runtime/runtime.cc:422] "Profile Saver" prio=5 tid=11 Native
A/art: art/runtime/runtime.cc:422] | group="" sCount=1 dsCount=0 obj=0x12c52160 self=0xa9290600
A/art: art/runtime/runtime.cc:422] | sysTid=3103 nice=-10 cgrp=default sched=0/0 handle=0xabd7f920
A/art: art/runtime/runtime.cc:422] | state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=0 HZ=100
A/art: art/runtime/runtime.cc:422] | stack=0xabc83000-0xabc85000 stackSize=1014KB
A/art: art/runtime/runtime.cc:422] | held mutexes=
A/art: art/runtime/runtime.cc:422] kernel: futex_wait_queue_me+0xcd/0x113
A/art: art/runtime/runtime.cc:422] kernel: futex_wait+0xc1/0x194
A/art: art/runtime/runtime.cc:422] kernel: do_futex+0x9b/0x740
A/art: art/runtime/runtime.cc:422] kernel: SyS_futex+0xaf/0xf6
A/art: art/runtime/runtime.cc:422] kernel: sysenter_do_call+0x12/0x22
A/art: art/runtime/runtime.cc:422] native: #00 pc ffffe424 [vdso] (__kernel_vsyscall+16)
A/art: art/runtime/runtime.cc:422] native: #01 pc 0001e258 /system/lib/libc.so (syscall+40)
A/art: art/runtime/runtime.cc:422] native: #02 pc 0011d8c8 /system/lib/libart.so (_ZN3art17ConditionVariable9TimedWaitEPNS_6ThreadExi+200)
A/art: art/runtime/runtime.cc:422] native: #03 pc 003c9497 /system/lib/libart.so (_ZN3art12ProfileSaver3RunEv+199)
A/art: art/runtime/runtime.cc:422] native: #04 pc 003cb66a /system/lib/libart.so (_ZN3art12ProfileSaver21RunProfileSaverThreadEPv+106)
A/art: art/runtime/runtime.cc:422] native: #05 pc 00075082 /system/lib/libc.so (_ZL15__pthread_startPv+210)
A/art: art/runtime/runtime.cc:422] native: #06 pc 0002029e /system/lib/libc.so (__start_thread+30)
A/art: art/runtime/runtime.cc:422] native: #07 pc 0001e076 /system/lib/libc.so (__bionic_clone+70)
A/art: art/runtime/runtime.cc:422] (no managed stack frames)
A/art: art/runtime/runtime.cc:422]
A/art: art/runtime/runtime.cc:422] "Thread-3" prio=5 tid=12 Native
A/art: art/runtime/runtime.cc:422] | group="" sCount=1 dsCount=0 obj=0x12c76af0 self=0xb2f0c300
A/art: art/runtime/runtime.cc:422] | sysTid=3104 nice=0 cgrp=default sched=0/0 handle=0x9a8fa920
A/art: art/runtime/runtime.cc:422] | state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=0 HZ=100
A/art: art/runtime/runtime.cc:422] | stack=0x9a7f8000-0x9a7fa000 stackSize=1038KB
A/art: art/runtime/runtime.cc:422] | held mutexes=
A/art: art/runtime/runtime.cc:422] kernel: __skb_recv_datagram+0x198/0x1ef
A/art: art/runtime/runtime.cc:422] kernel: skb_recv_datagram+0x28/0x2a
A/art: art/runtime/runtime.cc:422] kernel: unix_accept+0x48/0xe6
A/art: art/runtime/runtime.cc:422] kernel: SyS_accept4+0xfa/0x1b4
A/art: art/runtime/runtime.cc:422] kernel: SyS_socketcall+0x1b9/0x1db
A/art: art/runtime/runtime.cc:422] kernel: sysenter_do_call+0x12/0x22
A/art: art/runtime/runtime.cc:422] native: #00 pc ffffe422 [vdso] (__kernel_vsyscall+14)
A/art: art/runtime/runtime.cc:422] native: #01 pc 000778b9 /system/lib/libc.so (__accept4+25)
A/art: art/runtime/runtime.cc:422] native: #02 pc 00000ce3 /system/lib/libnetd_client.so (???)
A/art: art/runtime/runtime.cc:422] native: #03 pc 0001ef17 /system/lib/libc.so (accept4+55)
A/art: art/runtime/runtime.cc:422] native: #04 pc 0001eed6 /system/lib/libc.so (accept+54)
A/art: art/runtime/runtime.cc:422] native: #05 pc 00023808 /system/lib/libjavacore.so (???)
A/art: art/runtime/runtime.cc:422] native: #06 pc 0029ab3c /system/framework/x86/boot-core-libart.oat (???)
A/art: art/runtime/runtime.cc:422] at libcore.io.Posix.accept(Native method)
A/art: art/runtime/runtime.cc:422] at libcore.io.BlockGuardOs.accept(BlockGuardOs.java:64)
A/art: art/runtime/runtime.cc:422] at android.system.Os.accept(Os.java:43)
A/art: art/runtime/runtime.cc:422] at android.net.LocalSocketImpl.accept(LocalSocketImpl.java:336)
A/art: art/runtime/runtime.cc:422] at android.net.LocalServerSocket.accept(LocalServerSocket.java:90)
A/art: art/runtime/runtime.cc:422] at com.android.tools.fd.runtime.Server$SocketServerThread.run(Server.java:150)
A/art: art/runtime/runtime.cc:422] at java.lang.Thread.run(Thread.java:761)
A/art: art/runtime/runtime.cc:422]
A/art: art/runtime/runtime.cc:422]
A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 3096 (JDWP)

[ 11-27 03:32:28.331 1205: 1205 W/ ]
debuggerd: handling request: pid=3089 uid=10074 gid=10074 tid=3096
Disconnected from the target VM, address: 'localhost:8606', transport: 'socket'
...全文
2386 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
Fate_my 2017-12-01
  • 打赏
  • 举报
回复
https://stackoverflow.com/questions/40618803/android-app-crashes-when-launched-in-debug-mode
fu_ma_ye 2017-10-02
  • 打赏
  • 举报
回复
楼主,这个问题到底是什么原因,现在有思路吗? 我遇到了类似的问题
枕霞旧友 2017-05-22
  • 打赏
  • 举报
回复
5楼正解
ladd_li 2017-05-11
  • 打赏
  • 举报
回复
Check failed: Thread::Current() != GetDebugThread() 报这个错的,原因没有看懂,但是问题解决了,如下图,将标红对勾去掉,就好了。亲自试的,绝对可以。:
Cancel-Delete 2016-12-27
  • 打赏
  • 举报
回复
解决了能否说一声方法
Cyz、404 2016-12-08
  • 打赏
  • 举报
回复
兄弟,你解决没有,我的也这样,根本不知道那出了问题!!
tcmakebest 2016-11-28
  • 打赏
  • 举报
回复
第一行的 Thread::Current() != GetDebugThread() 貌似是不允许调试的代码, 是不是第三方库代码进行了限制.
xieyongbao 2016-11-27
  • 打赏
  • 举报
回复
错误信息比较长,就截取了头部和尾部

80,337

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧