本文介绍了CookieManager.removeExpiredCookie崩溃在Android 4.1.2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
以下code崩溃,并在Android 4.1.2包括线程转储(在Sprint公司注二)。
CookieManager.getInstance()removeExpiredCookie。()
转储:
13 12-12:45:35.484 1551年至2908年/ com.example.myapp W / dalvikvm:在去codeIndirectRef无效的间接引用0x4276f3d8
12-12 13:45:35.484 2951至08年/ com.example.myapp E / dalvikvm:VM中止
12-12 13:45:35.484 2951至08年/ com.example.myapp A / libc中:致命的信号11(SIGSEGV)在0xdeadd00d(code = 1),螺纹2908(AsyncTask的#2)
12-12 13:45:35.584 16476-16476 /? I / DEBUG:*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** * **
12-12 13:45:35.584 16476-16476 /? I / DEBUG:建立指纹:三星/ t0ltespr / t0ltespr:4.1.2 / JZO54K / L900VPAMC2:用户/释放键
12-12 13:45:35.584 16476-16476 /? I / DEBUG:PID:1551 TID:2908,姓名:AsyncTask的#2 - ;>> com.example.myapp<<<
12-12 13:45:35.584 16476-16476 /? I / DEBUG:11(SIGSEGV),code 1(SEGV_MAPERR),故障地址deadd00d
12-12 13:45:35.659 16476-16476 /? I / DEBUG:R0,R1 00000000 00000000 R2 R3 deadd00d 00000000
12-12 13:45:35.659 16476-16476 /? I / DEBUG:R4 408c31a8 R5 0000020c R6 4276f3d8 R7 40863fbd
12-12 13:45:35.659 16476-16476 /? I / DEBUG:R8 4276f3d8 R9 40069a6c SL 58904738 FP 5fbfac84
12-12 13:45:35.659 16476-16476 /? I / DEBUG命令ip 00004000 SP 5fbfa960 LR 40033c95 PC 4085ee50 CPSR 60000030
12-12 13:45:35.659 16476-16476 /? I / DEBUG:D0 bff0000000000000 D1 bff0000000000000
12-12 13:45:35.659 16476-16476 /? I / DEBUG:D2 D3 410ca0004114a000 c2040000ffffffdf
12-12 13:45:35.659 16476-16476 /? I / DEBUG:D4 c2059800c2039800 D5 412000000000000a
12-12 13:45:35.659 16476-16476 /? I / DEBUG:D6 D7 c21c0000ffffffd9 4210000042100000
12-12 13:45:35.659 16476-16476 /? I / DEBUG:0000000000000000 D8 D9 0000000000000000
12-12 13:45:35.659 16476-16476 /? I / DEBUG:0000000000000000 D10 D11 0000000000000000
12-12 13:45:35.659 16476-16476 /? I / DEBUG:0000000000000000 D12 D13 0000000000000000
12-12 13:45:35.659 16476-16476 /? I / DEBUG:0000000000000000 D14 D15 0000000000000000
12-12 13:45:35.659 16476-16476 /? I / DEBUG:D16 D17 000000c1421a1640 000000c1427680c8
12-12 13:45:35.659 16476-16476 /? I / DEBUG:D18 D19 00000000006c9688 2000000840072f00
12-12 13:45:35.659 16476-16476 /? I / DEBUG:D20 D21 c038000000000000 3ff0000000000000
12-12 13:45:35.659 16476-16476 /? I / DEBUG:0000000000000000 D22 D23 3ff0000000000000
12-12 13:45:35.659 16476-16476 /? I / DEBUG:D24 D25 3ff0000000000000 0000000000000000
12-12 13:45:35.659 16476-16476 /? I / DEBUG:0000000000000000 D26 D27 0000000000000000
12-12 13:45:35.659 16476-16476 /? I / DEBUG:D28 D29 0000000000000029 0000000000000000
12-12 13:45:35.659 16476-16476 /? I / DEBUG:0000000000000000 D30 D31 0000000000000008
12-12 13:45:35.659 16476-16476 /? I / DEBUG:SCR 60000011
12-12 13:45:35.664 16476-16476 /? I / DEBUG:回溯:
12-12 13:45:35.664 16476-16476 /? I / DEBUG:#00件00045e50 /system/lib/libdvm.so(dvmAbort + 75)
12-12 13:45:35.664 16476-16476 /? I / DEBUG:#01件00049f9f /system/lib/libdvm.so(dvmDe codeIndirectRef(螺纹*,* _jobject)+ 210)
12-12 13:45:35.664 16476-16476 /? I / DEBUG:#02件0004ae3d /system/lib/libdvm.so
12-12 13:45:35.664 16476-16476 /? I / DEBUG:#03件00298e0d /system/lib/libwebcore.so
12-12 13:45:35.664 16476-16476 /? I / DEBUG:#04件0028cc6d /system/lib/libwebcore.so
12-12 13:45:35.664 16476-16476 /? I / DEBUG:#05件0028cd49 /system/lib/libwebcore.so
12-12 13:45:35.664 16476-16476 /? I / DEBUG:#06件002934d7 /system/lib/libwebcore.so
12-12 13:45:35.664 16476-16476 /? I / DEBUG:#07件0001deb0 /system/lib/libdvm.so(dvmPlatformInvoke + 112)
12-12 13:45:35.664 16476-16476 /? I / DEBUG:#08件0004d103 /system/lib/libdvm.so(dvmCallJNIMethod(无符号整型常量*,* JValue,方法常量*,螺纹*)+ 394)
12-12 13:45:35.664 16476-16476 /? I / DEBUG:#09件00027324 /system/lib/libdvm.so
12-12 13:45:35.664 16476-16476 /? I / DEBUG:#10件000fedd8<&不明GT;
12-12 13:45:35.664 16476-16476 /? I / DEBUG:堆栈:
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfa920 00000001
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfa924 40062d10
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfa928 40062d10
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfa92c 40062d10
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfa930 40062d10
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfa934 40033c95 /system/lib/libc.so(__sflush_locked + 36)
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfa938 4005d774 /system/lib/libc.so
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfa93c 40062d10
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfa940 00000000
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfa944 40034c65 /system/lib/libc.so(_fwalk + 32)
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfa948 408c31a8 /system/lib/libdvm.so
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfa94c 0000020c
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfa950 4276f3d8的/ dev / ashmem / Dalvik的堆(删除)
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfa954 40863fbd /system/lib/libdvm.so
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfa958 df0027ad
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfa95c 00000000
12-12 13:45:35.664 16476-16476 /? I / DEBUG:#00 5fbfa960 00001000
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfa964 6c756e28
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfa968 0000296c
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfa96c 00000000
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfa970 00000000
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfa974 00000000
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfa978 00000000
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfa97c 00000000
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfa980 00000000
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfa984 00000000
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfa988 00000000
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfa98c 00000000
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfa990 00000000
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfa994 00000000
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfa998 00000000
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfa99c 00000000
12-12 13:45:35.664 16476-16476 /? I / DEBUG:........ ........
12-12 13:45:35.664 16476-16476 /? I / DEBUG:#01 5fbfab78 4276f3d8的/ dev / ashmem / Dalvik的堆(删除)
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfab7c 00000000
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfab80 40863e21 /system/lib/libdvm.so
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfab84 40863e41 /system/lib/libdvm.so
12-12 13:45:35.664 16476-16476 /? I / DEBUG:#02 5fbfab88 58909098
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfab8c 58904728
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfab90 00000000
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfab94 5fbfabe4
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfab98 58909098
12-12 13:45:35.664 16476-16476 /? I / DEBUG:5fbfab9c 5d15ee0f /system/lib/libwebcore.so
12-12 13:45:35.669 16476-16476 /? I / DEBUG:R4附近的记忆:
12-12 13:45:35.669 16476-16476 /? I / DEBUG:408c3188 00000000 00000000 00000000 00000000 ................
12-12 13:45:35.669 16476-16476 /? I / DEBUG:408c3198 00000000 00000000 00000000 00000000 ................
12-12 13:45:35.669 16476-16476 /? I / DEBUG:408c31a8 413c0e58 40eb4690 0080万千万X.< A.F @ ........
12-12 13:45:35.669 16476-16476 /? I / DEBUG:408c31b8 04000000 00004000 00006000 00000001 ..... @ ...`......
12-12 13:45:35.669 16476-16476 /? I / DEBUG:408c31c8 00000101 00000002 00000001 00000000 ................
12-12 13:45:35.669 16476-16476 /? I / DEBUG:R6附近的记忆:
12-12 13:45:35.669 16476-16476 /? I / DEBUG:4276f3b8 00650077 006b0062 00740069 00000013 w.e.b.k.i.t .....
12-12 13:45:35.669 16476-16476 /? I / DEBUG:4276f3c8 420a7f98 00000000 00000000 00000023。B ........#...
12-12 13:45:35.669 16476-16476 /? I / DEBUG:4276f3d8 41549c30 00000000 4276f3d8 4276f3f8 0.TA ...... vB..vB
12-12 13:45:35.669 16476-16476 /? I / DEBUG:4276f3e8 4276f4f0 00000000 4276f4d8 00000023 ..vB ...... VB的#...
12-12 13:45:35.669 16476-16476 /? I / DEBUG:4276f3f8 415480b8 00000000 4276f418 48c14184 ..TA ...... vB.A.H
12-12 13:45:35.669 16476-16476 /? I / DEBUG:R7附近的记忆:
12-12 13:45:35.669 16476-16476 /? I / DEBUG:40863f9c bdf0b005 46294630 f01f463a 4604fd53 .... 0F)F:F..S..F
12-12 13:45:35.669 16476-16476 /? I / DEBUG:40863fac d1f12800 bf00e7e3 0005ab70 000449f3(...... p ....我..
12-12 13:45:35.669 16476-16476 /? I / DEBUG:40863fbc 41ffe92d 460c4607 4639a803 4615461e - .. A.F.F..9F.F.F
12-12 13:45:35.669 16476-16476 /? I / DEBUG:40863fcc ff82f7fd 98034621 ff7af7fe 46046ac3 ....˚F.... z..j.F
12-12 13:45:35.669 16476-16476 /? I / DEBUG:40863fdc d0322b07 f8c6f01f b3384680 f8d8e02d + 2 ...... F8-...。
12-12 13:45:35.669 16476-16476 /? I / DEBUG:R8附近的记忆:
12-12 13:45:35.669 16476-16476 /? I / DEBUG:4276f3b8 00650077 006b0062 00740069 00000013 w.e.b.k.i.t .....
12-12 13:45:35.669 16476-16476 /? I / DEBUG:4276f3c8 420a7f98 00000000 00000000 00000023。B ........#...
12-12 13:45:35.669 16476-16476 /? I / DEBUG:4276f3d8 41549c30 00000000 4276f3d8 4276f3f8 0.TA ...... vB..vB
12-12 13:45:35.669 16476-16476 /? I / DEBUG:4276f3e8 4276f4f0 00000000 4276f4d8 00000023 ..vB ...... VB的#...
12-12 13:45:35.669 16476-16476 /? I / DEBUG:4276f3f8 415480b8 00000000 4276f418 48c14184 ..TA ...... vB.A.H
12-12 13:45:35.669 16476-16476 /? I / DEBUG:R9附近的记忆:
12-12 13:45:35.669 16476-16476 /? I / DEBUG:40069a4c 00000000 00000000 00000000 00000000 ................
12-12 13:45:35.669 16476-16476 /? I / DEBUG:40069a5c 00000000 00000000 00000000 00000000 ................
12-12 13:45:35.669 16476-16476 /? I / DEBUG:40069a6c 87780b8c 00000000 00000000 00000000 ..x .............
12-12 13:45:35.669 16476-16476 /? I / DEBUG:40069a7c 00000000 00000000 00000000 00000000 ................
12-12 13:45:35.669 16476-16476 /? I / DEBUG:40069a8c 00000000 00000000 00000000 00000000 ................
12-12 13:45:35.669 16476-16476 /? I / DEBUG:近SL内存:
12-12 13:45:35.669 16476-16476 /? I / DEBUG:58904718 00000026 41414db0 00000027 00000453&放大器; .... MAA内容S ...
12-12 13:45:35.669 16476-16476 /? I / DEBUG:。58904728 59927320 58a92c80 57b81e10 40ceb000 s.Y,X ... ...W¯¯@
12-12 13:45:35.669 16476-16476 /? I / DEBUG:58904738 00000007 4276f3c8 00000000 5fbfada8 ..vB ......._....
12-12 13:45:35.669 16476-16476 /? I / DEBUG:58904748 5fbfaddc 0000000F 00010008 4083bf00 ..._........... @
12-12 13:45:35.669 16476-16476 /? I / DEBUG:58904758 00000000 00000000 56d0b770 58a8f300 ........ p..V ... X
12-12 13:45:35.669 16476-16476 /? I / DEBUG:近FP内存:
12-12 13:45:35.669 16476-16476 /? I / DEBUG:。5fbfac64 58904728 00000000 40836eb4 58a92c80(G.X .....ñ@,X
12-12 13:45:35.669 16476-16476 /? I / DEBUG:5fbfac74 00000001 420a7f98 00000008 00000000 ....... ........乙
12-12 13:45:35.669 16476-16476 /? I / DEBUG:。5fbfac84 40866107 58a92c80 59b53045 5d1594d3 .A @,XE0.Y ...]
12-12 13:45:35.669 16476-16476 /? I / DEBUG:5fbfac94 58904738 20100001 00000000 40062544 8G.X ...... D%@
12-12 13:45:35.669 16476-16476 /? I / DEBUG:5fbfaca4 40069a6c 00001000 40db472800000000升.. @ ....(G @ ....
12-12 13:45:35.669 16476-16476 /? I / DEBUG:临近IP存储:
12-12 13:45:35.669 16476-16476 /? I / DEBUG:00003fe0 FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF ................
12-12 13:45:35.669 16476-16476 /? I / DEBUG:00003ff0 FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF ................
12-12 13:45:35.669 16476-16476 /? I / DEBUG:00004000 FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF ................
12-12 13:45:35.669 16476-16476 /? I / DEBUG:00004010 FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF ................
12-12 13:45:35.669 16476-16476 /? I / DEBUG:00004020 FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF ................
12-12 13:45:35.669 16476-16476 /? I / DEBUG:近SP内存:
12-12 13:45:35.669 16476-16476 /? I / DEBUG:。5fbfa940 00000000 40034c65 408c31a8 0000020c .... EL @ 1 @ ....
12-12 13:45:35.669 16476-16476 /? I / DEBUG:?5fbfa950 4276f3d8 40863fbd df0027ad 00000000 ..vB @ .'......
12-12 13:45:35.669 16476-16476 /? I / DEBUG:5fbfa960 00001000 6c756e28 0000296c 00000000 ....(空)......
12-12 13:45:35.669 16476-16476 /? I / DEBUG:5fbfa970 00000000 00000000 00000000 00000000 ................
12-12 13:45:35.669 16476-16476 /? I / DEBUG:5fbfa980 00000000 00000000 00000000 00000000 ................
12-12 13:45:35.669 16476-16476 /? I / DEBUG:code左右邮编:
12-12 13:45:35.669 16476-16476 /? I / DEBUG:4085ee30 34bcf8d3 ecbaf7d7 461d2300 b1525d1a ... 4 .....#楼] R。
12-12 13:45:35.669 16476-16476 /? I / DEBUG:4085ee40 18ad3301 7f00f5b3 e004d1f8 4a0a4798 0.3 ........... G.J
12-12 13:45:35.669 16476-16476 /? I / DEBUG:4085ee50 f7d77015 490cecb2 4a0c2006 44794c0c .P .....我。 .J.LyD
12-12 13:45:35.669 16476-16476 /? I / DEBUG:4085ee60 447c447a eb64f7d7 f7d72000 6ca3ec0a ZD | D..d .......升
12-12 13:45:35.669 16476-16476 /? I / DEBUG:4085ee70 d1eb2b00 bf00e7eb deadd00d 0005fcf8 + ..............。
12-12 13:45:35.669 16476-16476 /? I / DEBUG:code左右LR:
12-12 13:45:35.669 16476-16476 /? I / DEBUG:40033c74 447e4e08 68336836 f000b10b 4620fa4c .N〜D6h3h ....升。 F
12-12 13:45:35.669 16476-16476 /? I / DEBUG:40033c84 ffcaf7ff 68304605 4620b110 fa50f000 ..... F0H .. F..P。
12-12 13:45:35.669 16476-16476 /? I / DEBUG:40033c94 bd704628 0002982e 4604b570 4811b928(FP ..... p..F(.. ^ h
12-12 13:45:35.669 16476-16476 /? I / DEBUG:40033ca4 e8bd4478 f0004070 4e0fbfcb 6836447e xD..p @ ..... N〜D6H
12-12 13:45:35.669 16476-16476 /? I / DEBUG:40033cb4 b10b6833 fa2ff000 f01089a0 d1060f18 3H .... / .........
12-12 13:45:35.669 16476-16476 /? I / DEBUG:内存映射周围故障地址deadd00d:
12-12 13:45:35.669 16476-16476 /? I / DEBUG:bef50000-bef71000 [堆栈]
12-12 13:45:35.669 16476-16476 /? I / DEBUG:(无地图地址)
12-12 13:45:35.669 16476-16476 /? I / DEBUG:FFFF0000-ffff1000 [载体]
12-12 13:45:35.774 16476-16476 /? I / DEBUG:@dumpstate -k -t -z -d -o /数据/日志/ dumpstate_app_native -m 1551
12-12 13:45:35.774 2383年至2632年/? I / BootReceiver:复制/数据/墓碑/ tombstone_01到DropBox的(SYSTEM_TOMBSTONE)
12-12 13:45:35.784 2919年至2919年/? I / dumpstate:开始
解决方案
我加入以下code到我的自定义修复这个应用
子类:
@覆盖
保护无效的onCreate(){
super.onCreate(); CookieSyncManager.createInstance(本);
}
根据documentation在 CookieManager.getInstance()
:
In my case, I didn't instantiate a WebView
instance first, so this was the cause of my crash. Too bad they couldn't throw an Exception
instead of crashing in native code.
这篇关于CookieManager.removeExpiredCookie崩溃在Android 4.1.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!