Html.fromHtml在Android 2.1中剧烈崩溃

时间:2011-11-22 15:52:12

标签: android

如果我在Android 2.1模拟器中执行此操作:

android.text.Html.fromHtml("<p>Sample html</p>");

我明白了:

11-21 20:41:00.557: I/DEBUG(28): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
11-21 20:41:00.557: I/DEBUG(28): Build fingerprint: 'generic/sdk/generic/:2.1-update1/ECLAIR/35983:eng/test-keys'
11-21 20:41:00.557: I/DEBUG(28): pid: 2457, tid: 2457  >>> [my appname] <<<
11-21 20:41:00.557: I/DEBUG(28): signal 11 (SIGSEGV), fault addr deadf00c
11-21 20:41:00.557: I/DEBUG(28):  r0 419c69b4  r1 4186b968  r2 0000bd00  r3 0003a600
11-21 20:41:00.557: I/DEBUG(28):  r4 428dfb68  r5 4186b968  r6 bef169f8  r7 000035f1
11-21 20:41:00.557: I/DEBUG(28):  r8 ad00f380  r9 00001900  10 4186b954  fp 00000000
11-21 20:41:00.557: I/DEBUG(28):  ip 000000f1  sp bef169b8  lr ad012fc4  pc deadf00c  cpsr 40000030
11-21 20:41:00.635: I/DEBUG(28):          #00  pc deadf00c  
11-21 20:41:00.635: I/DEBUG(28):          #01  pc 00012fc0  /system/lib/libdvm.so
11-21 20:41:00.635: I/DEBUG(28):          #02  pc 00019888  /system/lib/libdvm.so
11-21 20:41:00.635: I/DEBUG(28):          #03  pc 00018d5c  /system/lib/libdvm.so
11-21 20:41:00.635: I/DEBUG(28):          #04  pc 0004d3bc  /system/lib/libdvm.so
11-21 20:41:00.635: I/DEBUG(28):          #05  pc 00054e74  /system/lib/libdvm.so
11-21 20:41:00.645: I/DEBUG(28):          #06  pc 00013f58  /system/lib/libdvm.so
11-21 20:41:00.645: I/DEBUG(28):          #07  pc 00019888  /system/lib/libdvm.so
11-21 20:41:00.645: I/DEBUG(28):          #08  pc 00018d5c  /system/lib/libdvm.so
11-21 20:41:00.645: I/DEBUG(28):          #09  pc 0004d6d0  /system/lib/libdvm.so
11-21 20:41:00.645: I/DEBUG(28):          #10  pc 0003a72c  /system/lib/libdvm.so
11-21 20:41:00.645: I/DEBUG(28):          #11  pc 0002be52  /system/lib/libdvm.so
11-21 20:41:00.645: I/DEBUG(28):          #12  pc 00026f7c  /system/lib/libandroid_runtime.so
11-21 20:41:00.655: I/DEBUG(28):          #13  pc 00027c60  /system/lib/libandroid_runtime.so
11-21 20:41:00.655: I/DEBUG(28):          #14  pc 00008cae  /system/bin/app_process
11-21 20:41:00.655: I/DEBUG(28):          #15  pc 0000c2c6  /system/lib/libc.so
11-21 20:41:00.655: I/DEBUG(28):          #16  pc b00018aa  /system/bin/linker
11-21 20:41:00.655: I/DEBUG(28): code around lr:
11-21 20:41:00.655: I/DEBUG(28): ad012fb4 00000000 00000000 00000000 eb000461 
11-21 20:41:00.655: I/DEBUG(28): ad012fc4 e1a00000 e1a00000 e1a00000 e1a00000 
11-21 20:41:00.655: I/DEBUG(28): ad012fd4 e1a00000 e1a00000 e1a00000 00000000 
11-21 20:41:00.655: I/DEBUG(28): stack:
11-21 20:41:00.655: I/DEBUG(28):     bef16978  ad080d34  /system/lib/libdvm.so
11-21 20:41:00.655: I/DEBUG(28):     bef1697c  00000004  
11-21 20:41:00.655: I/DEBUG(28):     bef16980  0000001c  
11-21 20:41:00.665: I/DEBUG(28):     bef16984  ad055c85  /system/lib/libdvm.so
11-21 20:41:00.665: I/DEBUG(28):     bef16988  00000001  
11-21 20:41:00.665: I/DEBUG(28):     bef1698c  00000002  
11-21 20:41:00.665: I/DEBUG(28):     bef16990  00000000  
11-21 20:41:00.665: I/DEBUG(28):     bef16994  00000014  
11-21 20:41:00.665: I/DEBUG(28):     bef16998  afe0df40  /system/lib/libc.so
11-21 20:41:00.665: I/DEBUG(28):     bef1699c  00000002  
11-21 20:41:00.665: I/DEBUG(28):     bef169a0  4186b8ec  
11-21 20:41:00.665: I/DEBUG(28):     bef169a4  428e26aa  /data/dalvik-cache/system@framework@framework.jar@classes.dex
11-21 20:41:00.665: I/DEBUG(28):     bef169a8  4186b8ec  
11-21 20:41:00.665: I/DEBUG(28):     bef169ac  bef169f8  [stack]
11-21 20:41:00.665: I/DEBUG(28):     bef169b0  df002777  
11-21 20:41:00.665: I/DEBUG(28):     bef169b4  e3a070ad  
11-21 20:41:00.665: I/DEBUG(28): #01 bef169b8  40019598  /dev/ashmem/mspace/dalvik-heap/zygote/0 (deleted)
11-21 20:41:00.665: I/DEBUG(28):     bef169bc  bef169f8  [stack]
11-21 20:41:00.665: I/DEBUG(28):     bef169c0  0003a600  [heap]
11-21 20:41:00.665: I/DEBUG(28):     bef169c4  bef169f8  [stack]
11-21 20:41:00.665: I/DEBUG(28):     bef169c8  bef16a78  [stack]
11-21 20:41:00.665: I/DEBUG(28):     bef169cc  ad00f380  /system/lib/libdvm.so
11-21 20:41:00.665: I/DEBUG(28):     bef169d0  0000bd00  [heap]
11-21 20:41:00.665: I/DEBUG(28):     bef169d4  4186bee4  
11-21 20:41:00.665: I/DEBUG(28):     bef169d8  00000000  
11-21 20:41:00.665: I/DEBUG(28):     bef169dc  ad01988c  /system/lib/libdvm.so
11-21 20:41:01.206: D/Zygote(30): Process 2457 terminated by signal (11)
11-21 20:41:01.215: I/ActivityManager(66): Process [my appname] (pid 2457) has died.

我的第一个想法是与2.1的不兼容问题,所以我在2.3.3中尝试了它并且有效 - 但是如果我没有弄错的话,这实际上应该适用于2.1? (自文档中的API级别1开始)。

我在两个单独的项目中尝试了相同的结果。

0 个答案:

没有答案