2015-11-17 23 views
8

我正在開發Android應用程序,並且正在測試在android 4.1.2(api 16)上運行的galaxy s3 mini上的應用程序。每當我用標準運行配置啓動應用程序時,應用程序啓動時都沒有任何問題,但手機變得非常慢。當我看到在logcat中我看到存在的每1-3秒,如以下錯誤:用android studio錯誤啓動Android應用程序:致命信號13 SIGPIPE代碼-6

I/DEBUG (1667): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 
I/DEBUG (1667): Build fingerprint: 'samsung/goldenxx/golden:4.1.2/JZO54K/I8190XXAMG4:user/release-keys' 
I/DEBUG (1667): pid: 6506, tid: 6506, name: sh >>> /system/bin/sh <<< 
I/DEBUG (1667): signal 13 (SIGPIPE), code -6 (?), fault addr -------- 
I/DEBUG (1667):  r0 ffffffe0 r1 40853100 r2 0000071e r3 00000000 
I/DEBUG (1667):  r4 00000000 r5 00000003 r6 408530dc r7 00000004 
I/DEBUG (1667):  r8 40853100 r9 40853050 sl 40853100 fp 400c3cb8 
I/DEBUG (1667):  ip 400c7f40 sp befa3640 lr 400b0501 pc 400d9958 cpsr 00000010 
I/DEBUG (1667):  d0 0000000000000000 d1 0000000000000000 
I/DEBUG (1667):  d2 0000000000000000 d3 0000000000000000 
I/DEBUG (1667):  d4 74732f62696c2f6d d5 6d6f63786d6f5f65 
I/DEBUG (1667):  d6 2f73746e656e6f70 d7 726f646e65762f3a 
I/DEBUG (1667):  d8 0000000000000000 d9 0000000000000000 
I/DEBUG (1667):  d10 0000000000000000 d11 0000000000000000 
I/DEBUG (1667):  d12 0000000000000000 d13 0000000000000000 
I/DEBUG (1667):  d14 0000000000000000 d15 0000000000000000 
I/DEBUG (1667):  d16 c1c9a74918ba3d71 d17 3f50624dd2f1a9fc 
I/DEBUG (1667):  d18 41a19089a2000000 d19 0000000000000000 
I/DEBUG (1667):  d20 0000000000000000 d21 0000000000000000 
I/DEBUG (1667):  d22 0000000000000000 d23 0000000000000000 
I/DEBUG (1667):  d24 0000000000000000 d25 0000000000000000 
I/DEBUG (1667):  d26 0000000000000000 d27 0000000000000000 
I/DEBUG (1667):  d28 0000000000000000 d29 0000000000000000 
I/DEBUG (1667):  d30 0000000000000000 d31 0000000000000000 
I/DEBUG (1667):  scr 00000010 
I/DEBUG (1667): 
I/DEBUG (1667): backtrace: 
I/DEBUG (1667):  #00 pc 0000c958 /system/lib/libc.so (write+12) 
I/DEBUG (1667):  #01 pc 0000e4fd /system/bin/mksh 
I/DEBUG (1667): 
I/DEBUG (1667): stack: 
I/DEBUG (1667):   befa3600 0000100b 
I/DEBUG (1667):   befa3604 400e2387 /system/lib/libc.so (dlmalloc+5178) 
I/DEBUG (1667):   befa3608 00000000 
I/DEBUG (1667):   befa360c 00000004 
I/DEBUG (1667):   befa3610 408530b0 [heap] 
I/DEBUG (1667):   befa3614 400e2387 /system/lib/libc.so (dlmalloc+5178) 
I/DEBUG (1667):   befa3618 00000000 
I/DEBUG (1667):   befa361c 400c7eac /system/bin/mksh 
I/DEBUG (1667):   befa3620 40853048 [heap] 
I/DEBUG (1667):   befa3624 400cccc4 
I/DEBUG (1667):   befa3628 00000000 
I/DEBUG (1667):   befa362c 40853100 [heap] 
I/DEBUG (1667):   befa3630 00000000 
I/DEBUG (1667):   befa3634 00000003 
I/DEBUG (1667):   befa3638 df0027ad 
I/DEBUG (1667):   befa363c 00000000 
I/DEBUG (1667):  #00 befa3640 00000000 
I/DEBUG (1667):   befa3644 0000071e 
I/DEBUG (1667):  #01 befa3648 40853048 [heap] 
I/DEBUG (1667):   befa364c 00013804 
I/DEBUG (1667):   befa3650 00000001 
I/DEBUG (1667):   befa3654 400c7eac /system/bin/mksh 
I/DEBUG (1667):   befa3658 400ccd84 
I/DEBUG (1667):   befa365c 400ccd88 
I/DEBUG (1667):   befa3660 400ccbb0 
I/DEBUG (1667):   befa3664 40853048 [heap] 
I/DEBUG (1667):   befa3668 4084ff9c [heap] 
I/DEBUG (1667):   befa366c 400ccdf6 
I/DEBUG (1667):   befa3670 00000001 
I/DEBUG (1667):   befa3674 400ad5cd /system/bin/mksh 
I/DEBUG (1667):   befa3678 40853048 [heap] 
I/DEBUG (1667):   befa367c 0000001f 
I/DEBUG (1667):   befa3680 408530cc [heap] 
I/DEBUG (1667):   befa3684 40852c5c [heap] 
I/DEBUG (1667): 
I/DEBUG (1667): memory near r1: 
I/DEBUG (1667):  408530e0 656e2f63 74782f74 6174715f 64697567 c/net/xt_qtaguid 
I/DEBUG (1667):  408530f0 6174732f 00007374 00000000 0000100b /stats.......... 
I/DEBUG (1667):  40853100 20786469 63616669 63612065 745f7463 idx iface acct_t 
I/DEBUG (1667):  40853110 685f6761 75207865 745f6469 695f6761 ag_hex uid_tag_i 
I/DEBUG (1667):  40853120 6320746e 735f746e 72207465 79625f78 nt cnt_set rx_by 
I/DEBUG (1667): 
I/DEBUG (1667): memory near r6: 
I/DEBUG (1667):  408530bc 40116534 00000010 00000012 00000000 [email protected] 
I/DEBUG (1667):  408530cc 00746163 00000000 0000002b 408530c8 [email protected] 
I/DEBUG (1667):  408530dc 6f72702f 656e2f63 74782f74 6174715f /proc/net/xt_qta 
I/DEBUG (1667):  408530ec 64697567 6174732f 00007374 00000000 guid/stats...... 
I/DEBUG (1667):  408530fc 0000100b 20786469 63616669 63612065 ....idx iface ac 
I/DEBUG (1667): 
I/DEBUG (1667): memory near r8: 
I/DEBUG (1667):  408530e0 656e2f63 74782f74 6174715f 64697567 c/net/xt_qtaguid 
I/DEBUG (1667):  408530f0 6174732f 00007374 00000000 0000100b /stats.......... 
I/DEBUG (1667):  40853100 20786469 63616669 63612065 745f7463 idx iface acct_t 
I/DEBUG (1667):  40853110 685f6761 75207865 745f6469 695f6761 ag_hex uid_tag_i 
I/DEBUG (1667):  40853120 6320746e 735f746e 72207465 79625f78 nt cnt_set rx_by 
I/DEBUG (1667): 
I/DEBUG (1667): memory near r9: 
I/DEBUG (1667):  40853030 00000000 00000004 00000000 0000001b ................ 
I/DEBUG (1667):  40853040 408530d8 00000000 408530cc 408530dc [email protected]@[email protected] 
I/DEBUG (1667):  40853050 00000000 00000063 40853040 40852d18 [email protected]@[email protected] 
I/DEBUG (1667):  40853060 befa3aec 00000000 00000000 4084f00c .:[email protected] 
I/DEBUG (1667):  40853070 4085305c 40852b8c 00000006 00000003 \[email protected][email protected] 
I/DEBUG (1667): 
I/DEBUG (1667): memory near sl: 
I/DEBUG (1667):  408530e0 656e2f63 74782f74 6174715f 64697567 c/net/xt_qtaguid 
I/DEBUG (1667):  408530f0 6174732f 00007374 00000000 0000100b /stats.......... 
I/DEBUG (1667):  40853100 20786469 63616669 63612065 745f7463 idx iface acct_t 
I/DEBUG (1667):  40853110 685f6761 75207865 745f6469 695f6761 ag_hex uid_tag_i 
I/DEBUG (1667):  40853120 6320746e 735f746e 72207465 79625f78 nt cnt_set rx_by 
I/DEBUG (1667): 
I/DEBUG (1667): memory near fp: 
I/DEBUG (1667):  400c3c98 27000a27 49005c00 22005346 27262423 '..'.\.IFS."#$&' 
I/DEBUG (1667):  400c3ca8 3a2a2928 3e3d3c3b 605c5b3f 007d7c7b ()*:;<=>?[\`{|}. 
I/DEBUG (1667):  400c3cb8 203a7325 67007325 68626172 00747369 %s: %s.grabhist. 
I/DEBUG (1667):  400c3cc8 20646162 74736968 2079726f 61727261 bad history arra 
I/DEBUG (1667):  400c3cd8 20200079 25002020 64252073 20636600 y. .%s %d.fc 
I/DEBUG (1667): 
I/DEBUG (1667): memory near ip: 
I/DEBUG (1667):  400c7f20 400da0e4 400e683d 400ef9d1 400da4b8 [email protected][email protected]@[email protected] 
I/DEBUG (1667):  400c7f30 400d954c 400d9930 400db9e8 400e3e51 [email protected]@[email protected]>[email protected] 
I/DEBUG (1667):  400c7f40 400d994c 400e56d9 400d97f4 400e6769 [email protected]@[email protected]@ 
I/DEBUG (1667):  400c7f50 400da900 400e67a1 400daccc 400da0ac [email protected]@[email protected]@ 
I/DEBUG (1667):  400c7f60 400d97d8 400d97bc 400d95d8 400da2a0 [email protected]@[email protected]@ 
I/DEBUG (1667): 
I/DEBUG (1667): memory near sp: 
I/DEBUG (1667):  befa3620 40853048 400cccc4 00000000 40853100 [email protected]@[email protected] 
I/DEBUG (1667):  befa3630 00000000 00000003 df0027ad 00000000 .........'...... 
I/DEBUG (1667):  befa3640 00000000 0000071e 40853048 00013804 [email protected] 
I/DEBUG (1667):  befa3650 00000001 400c7eac 400ccd84 400ccd88 [email protected]@[email protected] 
I/DEBUG (1667):  befa3660 400ccbb0 40853048 4084ff9c 400ccdf6 [email protected]@[email protected]@ 
I/DEBUG (1667): 
I/DEBUG (1667): code around pc: 
I/DEBUG (1667):  400d9938 ef000000 e8bd0090 e1b00000 512fff1e ............../Q 
I/DEBUG (1667):  400d9948 ea00b51e e92d0090 e3a07004 ef000000 ......-..p...... 
I/DEBUG (1667):  400d9958 e8bd0090 e1b00000 512fff1e ea00b517 ........../Q.... 
I/DEBUG (1667):  400d9968 e1a0c00d e92d00f0 e89c0070 e3a070b4 ......-.p....p.. 
I/DEBUG (1667):  400d9978 ef000000 e8bd00f0 e1b00000 512fff1e ............../Q 
I/DEBUG (1667): 
I/DEBUG (1667): code around lr: 
I/DEBUG (1667):  400b04e0 f7f36800 4631ed6a 46584602 fe64f009 .h..j.1F.FXF..d. 
I/DEBUG (1667):  400b04f0 b320e025 200146c2 463a4651 ed80f7f3 %. ..F. QF:F.... 
I/DEBUG (1667):  400b0500 bf1c1c43 0707ebc0 d1154482 ed1ef7f3 C........D...... 
I/DEBUG (1667):  400b0510 2a046802 f7f3d010 6800ed1a ed4cf7f3 .h.*.......h..L. 
I/DEBUG (1667):  400b0520 44794916 48164602 f0094478 b17dfe45 .IyD.F.HxD..E.}. 
I/BootReceiver(2015): Copying /data/tombstones/tombstone_03 to DropBox (SYSTEM_TOMBSTONE) 
I/DEBUG (1667): [email protected] -k -t -z -d -o /data/log/dumpstate_app_native -m 6506 
I/dumpstate(6695): begin 
F/libc (6729): Fatal signal 13 (SIGPIPE) at 0x00001a49 (code=0), thread 6729 (sh) 

我使用的是Android 1.4.1工作室在Ubuntu 15.04與Oracle JDK 1.8.0_60。這個問題也發生在一個簡單的應用程序上,只有一個edittext文字說「helloworld」,我不認爲它是任何項目相關的。當我製作一個已簽名的apk並使用adb install安裝它時,它不會發生。

ps:在我卸載應用程序後,錯誤仍然出現1-2分鐘,然後停止。

ps2:我試過不同的設備:Galaxy s6,galaxy s4和huawei one。在這些手機上我沒有這個問題。

有誰知道爲什麼發生這種情況,我該如何解決這個問題?

+0

在我看來,這可能是一個損壞的Android工作室文件。但這只是一個初步的估計。投票,所以這得到了更早注意到.. – mdzeko

+0

我在三星Galaxy Win(只在自定義ROM)上有同樣的問題,但在另一個我的手機是不是這個問題。我認爲它是一些ROM或AndroidStudio(可能是adb)的特定問題。沒有調試器時,我只是運行應用程序,它的工作以及需要。附:對不起,我的英語不好。 –

+0

在調試日誌上,我只能說Dalvik在執行應用程序的內存分配時遇到問題。 –

回答

1

我已將android studio降級到1.3,這解決了問題。

+0

我們對Android 4.1.2和Android Studio 1.4有同樣的問題 – BoredT

1

我剛剛在Android Studio中添加了一個過濾器到Show only selected application。這將過濾除您正在使用的應用程序之外的所有日誌記錄。您可以在Android監視器選項卡右側設置過濾器。

相關問題