android studio单步调试F7、F8程序闪退重启,F9跨步调试正常问题,同时SDK断点调试卡退问题处理方法

该问题出现在调整AS某些设置后出现,具体设置内容忘记了,所以没办法设置回去了,不仅仅是F7、F8使用不了,在导包、SDK原码中打断点debug也会出现类似异常,原因不明,具体问题异常信息如下:

A/art: art/runtime/jdwp/jdwp_handler.cc:1214] Check failed: modifier_count < 256 (modifier_count=271, 256=256) 
A/art: art/runtime/runtime.cc:422] Runtime aborting...
    art/runtime/runtime.cc:422] Aborting thread:
    art/runtime/runtime.cc:422] "JDWP" prio=5 tid=4 Runnable
    art/runtime/runtime.cc:422]   | group="" sCount=0 dsCount=0 obj=0x12c72310 self=0xc7c44300
    art/runtime/runtime.cc:422]   | sysTid=6285 nice=0 cgrp=default sched=0/0 handle=0xc2ab2920
    art/runtime/runtime.cc:422]   | state=R schedstat=( 207858906 1096661226 283 ) utm=6 stm=14 core=0 HZ=100
    art/runtime/runtime.cc:422]   | stack=0xc29b6000-0xc29b8000 stackSize=1014KB
    art/runtime/runtime.cc:422]   | held mutexes= "abort lock" "mutator lock"(shared held)
    art/runtime/runtime.cc:422]   native: #00 pc 0057515e  /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+238)
    art/runtime/runtime.cc:422]   native: #01 pc 0054144e  /system/lib/libart.so (_ZNK3art6Thread9DumpStackERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMap+526)
    art/runtime/runtime.cc:422]   native: #02 pc 0053e44b  /system/lib/libart.so (_ZNK3art6Thread4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMap+75)
    art/runtime/runtime.cc:422]   native: #03 pc 0052a003  /system/lib/libart.so (_ZNK3art10AbortState10DumpThreadERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEPNS_6ThreadE+67)
    art/runtime/runtime.cc:422]   native: #04 pc 00529cba  /system/lib/libart.so (_ZNK3art10AbortState4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+330)
    art/runtime/runtime.cc:422]   native: #05 pc 0051a30b  /system/lib/libart.so (_ZN3art7Runtime5AbortEPKc+155)
    art/runtime/runtime.cc:422]   native: #06 pc 0011a7b3  /system/lib/libart.so (_ZN3art10LogMessageD1Ev+1747)
    art/runtime/runtime.cc:422]   native: #07 pc 003a8474  /system/lib/libart.so (_ZN3art4JDWPL6ER_SetEPNS0_9JdwpStateEPNS0_7RequestEPNS0_9ExpandBufE+676)
    art/runtime/runtime.cc:422]   native: #08 pc 003a3fa4  /system/lib/libart.so (_ZN3art4JDWP9JdwpState14ProcessRequestEPNS0_7RequestEPNS0_9ExpandBufEPb+1044)
    art/runtime/runtime.cc:422]   native: #09 pc 003ac670  /system/lib/libart.so (_ZN3art4JDWP9JdwpState12HandlePacketEv+192)
    art/runtime/runtime.cc:422]   native: #10 pc 0067b033  /system/lib/libart.so (_ZN3art4JDWP12JdwpAdbState15ProcessIncomingEv+1139)
    art/runtime/runtime.cc:422]   native: #11 pc 003acad1  /system/lib/libart.so (_ZN3art4JDWP9JdwpState3RunEv+593)
    art/runtime/runtime.cc:422]   native: #12 pc 003abf50  /system/lib/libart.so (_ZN3art4JDWPL15StartJdwpThreadEPv+48)
    art/runtime/runtime.cc:422]   native: #13 pc 00075972  /system/lib/libc.so (_ZL15__pthread_startPv+210)
    art/runtime/runtime.cc:422]   native: #14 pc 0002031e  /system/lib/libc.so (__start_thread+30)
    art/runtime/runtime.cc:422]   native: #15 pc 0001e0f6  /system/lib/libc.so (__bionic_clone+70)
    art/runtime/runtime.cc:422] "main" prio=5 tid=1 Suspended
    art/runtime/runtime.cc:422]   | group="" sCount=2 dsCount=1 obj=0x74e144a0 self=0xc7c43400
    art/runtime/runtime.cc:422]   | sysTid=6278 nice=-10 cgrp=default sched=0/0 handle=0xc7ffe934
    art/runtime/runtime.cc:422]   | state=S schedstat=( 2708524176 2973911032 1425 ) utm=166 stm=103 core=0 HZ=100
    art/runtime/runtime.cc:422]   | stack=0xcf801000-0xcf803000 stackSize=8MB
    art/runtime/runtime.cc:422]   | held mutexes=
    art/runtime/runtime.cc:422]   kernel: get_futex_key+0x18e/0x350
    art/runtime/runtime.cc:422]   kernel: alloc_skb_with_frags+0x48/0x1d0
    art/runtime/runtime.cc:422]   kernel: futex_wait_queue_me+0xbc/0x140
    art/runtime/runtime.cc:422]   kernel: futex_wait+0xea/0x220
    art/runtime/runtime.cc:422]   kernel: futex_wake+0x66/0x130
    art/runtime/runtime.cc:422]   kernel: do_futex+0xcd/0x920
    art/runtime/runtime.cc:422]   kernel: fsnotify+0x2eb/0x470
    art/runtime/runtime.cc:422]   kernel: do_sync_write+0x5c/0x90
    art/runtime/runtime.cc:422]   kernel: SyS_futex+0x8c/0x150
    art/runtime/runtime.cc:422]   kernel: SyS_write+0x90/0xa0
    art/runtime/runtime.cc:422]   kernel: syscall_after_call+0x0/0x4
    art/runtime/runtime.cc:422]   native: #00 pc 00000c00  [vdso] (__kernel_vsyscall)
    art/runtime/runtime.cc:422]   at com.mapptts.ui.SetConnActivity.onBoClick(SetConnActivity.java:496)
    art/runtime/runtime.cc:422]   at com.mapptts.ui.base.BaseActivity.onClick(BaseActivity.java:132)
    art/runtime/runtime.cc:422]   at android.view.View.performClick(View.java:5637)
    art/runtime/runtime.cc:422]   at android.view.View$PerformClick.run(View.java:22429)
    art/runtime/runtime.cc:422]   at android.os.Handler.handleCallback(Handler.java:751)
    art/runtime/runtime.cc:422]   at android.os.Handler.dispatchMessage(Handler.java:95)
    art/runtime/runtime.cc:422]   at android.os.Looper.loop(Looper.java:154)
    art/runtime/runtime.cc:422]   at android.app.ActivityThread.main(ActivityThread.java:6146)
    art/runtime/runtime.cc:422]   at java.lang.reflect.Method.invoke!(Native method)
A/art: art/runtime/runtime.cc:422]   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:892)
    art/runtime/runtime.cc:422]   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:782)
    art/runtime/runtime.cc:422] 
A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 6285 (JDWP)
Disconnected from the target VM, address: 'localhost:55281', transport: 'socket'

 网上解决办法让设置Instant Run,但是对于AS高版本没有Instant Run,只有HotSwap,设置后没有什么反应,还是会出现上述异常,此方法设置步骤如下:

 以上方法没有解决我的问题,通过对网上解决方案的分析和问题出现的原因是AS设置修改后发生,因此大胆猜测该问题可能为AS设置问题导致,故对AS设置进行重置,重置后问题得解,具体操作页面如下:

希望我今天这个方法也能解决大家的问题。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值