携帯電話はdebugテストに入ることができなくて、直接フラッシュバックの解決方法

15491 ワード

デバッグ時に次のエラーが発生しました。

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'

理由は次の2つです.
  • 最初はこれがinstandRunのスイッチがオンになって、オフにすればいい、
  • の2つ目は、本体がデバッグ可能な印刷出力スイッチがオンになっていないため、印刷結果が得られない、
  • である.
  • 詳細リファレンスマシンはデバッグできません