我遇到了一个非常奇怪的崩溃。
用户正确登录应用程序。 我正确地将所有 UiLifecycleHelper 方法调用到我的代码中。
当我尝试执行一个简单的请求(获取用户的好友列表)时,我的应用程序以残酷的方式崩溃。
这里是导致应用崩溃的函数:
private void fetchUserFriends() {
//Gather all friend list
Session session = Session.getActiveSession();
if( session != null && session.isOpened() ) {
Request.newMyFriendsRequest(Session.getActiveSession(), new Request.GraphUserListCallback() {
@Override
public void onCompleted(List<GraphUser> users, Response response) {
if (response.getError() == null) {
//use all friends
} else {
//print error
}
}
}).executeAsync();
}
}
我已经挖掘了一点点,似乎每次都让整个应用程序崩溃的指令是这样的:
connection.getResponseCode() 内部正在执行 connection.getInputStream()
这里是 Facebook 引用号:https://github.com/facebook/facebook-android-sdk/blob/master/facebook/src/com/facebook/Response.java?source=cc#L301
这是崩溃日志:
01-31 18:57:34.866 16008-16157/com.myapp.example A/libc﹕ Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 16157 (AsyncTask #1)
01-31 18:57:34.966 179-179/? I/DEBUG﹕ *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
01-31 18:57:34.966 179-179/? I/DEBUG﹕ Build fingerprint: 'google/hammerhead/hammerhead:4.4.2/KOT49H/937116:user/release-keys'
01-31 18:57:34.966 179-179/? I/DEBUG﹕ Revision: '11'
01-31 18:57:34.966 179-179/? I/DEBUG﹕ pid: 16008, tid: 16157, name: AsyncTask #1 >>> com.myapp.example <<<
01-31 18:57:34.966 179-179/? I/DEBUG﹕ signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
01-31 18:57:35.036 179-179/? I/DEBUG﹕ r0 00000000 r1 00000000 r2 7878a085 r3 00000017
01-31 18:57:35.036 179-179/? I/DEBUG﹕ r4 00000006 r5 7878a086 r6 00000000 r7 ffffffff
01-31 18:57:35.036 179-179/? I/DEBUG﹕ r8 00000001 r9 40ad6130 sl 00000017 fp 7878a085
01-31 18:57:35.036 179-179/? I/DEBUG﹕ ip 744c4b34 sp 78d82990 lr 744b909d pc 40ac0f2e cpsr 600e0030
01-31 18:57:35.036 179-179/? I/DEBUG﹕ d0 0000000000000000 d1 0000000000000000
01-31 18:57:35.036 179-179/? I/DEBUG﹕ d2 0000000000000000 d3 0000000000000000
01-31 18:57:35.036 179-179/? I/DEBUG﹕ d4 36201920e71141ae d5 d79404659c7eaae1
01-31 18:57:35.036 179-179/? I/DEBUG﹕ d6 5f1ab8125a9713ab d7 2af5aac9dc89c133
01-31 18:57:35.036 179-179/? I/DEBUG﹕ d8 0000000000000000 d9 0000000000000000
01-31 18:57:35.036 179-179/? I/DEBUG﹕ d10 0000000000000000 d11 0000000000000000
01-31 18:57:35.036 179-179/? I/DEBUG﹕ d12 0000000000000000 d13 0000000000000000
01-31 18:57:35.036 179-179/? I/DEBUG﹕ d14 0000000000000000 d15 0000000000000000
01-31 18:57:35.036 179-179/? I/DEBUG﹕ d16 0000000000000000 d17 0000000000000000
01-31 18:57:35.036 179-179/? I/DEBUG﹕ d18 4839349042576f78 d19 e71141aeb758fe2b
01-31 18:57:35.036 179-179/? I/DEBUG﹕ d20 c047800000000000 d21 c060800000000000
01-31 18:57:35.036 179-179/? I/DEBUG﹕ d22 0000000000000000 d23 c047800000000000
01-31 18:57:35.036 179-179/? I/DEBUG﹕ d24 0000000000000000 d25 0000000000000000
01-31 18:57:35.036 179-179/? I/DEBUG﹕ d26 3ff0000000000000 d27 0000000000000000
01-31 18:57:35.036 179-179/? I/DEBUG﹕ d28 3ff0000000000000 d29 0000000000000000
01-31 18:57:35.036 179-179/? I/DEBUG﹕ d30 0000000000000000 d31 c060800000000000
01-31 18:57:35.036 179-179/? I/DEBUG﹕ scr 60000012
01-31 18:57:35.046 179-179/? I/DEBUG﹕ backtrace:
01-31 18:57:35.046 179-179/? I/DEBUG﹕ #00 pc 00026f2e /system/lib/libssl.so (SSL_select_next_proto+49)
01-31 18:57:35.046 179-179/? I/DEBUG﹕ #01 pc 00007099 /system/lib/libjavacrypto.so
01-31 18:57:35.046 179-179/? I/DEBUG﹕ #02 pc 0002f2f3 /system/lib/libssl.so (ssl_parse_serverhello_tlsext+434)
01-31 18:57:35.046 179-179/? I/DEBUG﹕ #03 pc 0001810d /system/lib/libssl.so (ssl3_get_server_hello+1004)
01-31 18:57:35.046 179-179/? I/DEBUG﹕ #04 pc 00017517 /system/lib/libssl.so (ssl3_connect+566)
01-31 18:57:35.046 179-179/? I/DEBUG﹕ #05 pc 00027ccb /system/lib/libssl.so (SSL_do_handshake+50)
01-31 18:57:35.046 179-179/? I/DEBUG﹕ #06 pc 0000aeb3 /system/lib/libjavacrypto.so
01-31 18:57:35.046 179-179/? I/DEBUG﹕ #07 pc 0001dbcc /system/lib/libdvm.so (dvmPlatformInvoke+112)
01-31 18:57:35.046 179-179/? I/DEBUG﹕ #08 pc 0004e123 /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398)
01-31 18:57:35.046 179-179/? I/DEBUG﹕ #09 pc 00026fe0 /system/lib/libdvm.so
01-31 18:57:35.046 179-179/? I/DEBUG﹕ #10 pc 0002dfa0 /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
01-31 18:57:35.046 179-179/? I/DEBUG﹕ #11 pc 0002b638 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
01-31 18:57:35.046 179-179/? I/DEBUG﹕ #12 pc 00060581 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+336)
01-31 18:57:35.046 179-179/? I/DEBUG﹕ #13 pc 000605a5 /system/lib/libdvm.so (dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...)+20)
01-31 18:57:35.046 179-179/? I/DEBUG﹕ #14 pc 0005528b /system/lib/libdvm.so
01-31 18:57:35.046 179-179/? I/DEBUG﹕ #15 pc 0000d170 /system/lib/libc.so (__thread_entry+72)
01-31 18:57:35.046 179-179/? I/DEBUG﹕ #16 pc 0000d308 /system/lib/libc.so (pthread_create+240)
01-31 18:57:35.046 179-179/? I/DEBUG﹕ stack:
01-31 18:57:35.046 179-179/? I/DEBUG﹕ 78d82950 1e43b5c6
01-31 18:57:35.046 179-179/? I/DEBUG﹕ 78d82954 e20d00d8
01-31 18:57:35.046 179-179/? I/DEBUG﹕ 78d82958 00000002
01-31 18:57:35.046 179-179/? I/DEBUG﹕ 78d8295c 744b8fd5 /system/lib/libjavacrypto.so
01-31 18:57:35.046 179-179/? I/DEBUG﹕ 78d82960 00000002
01-31 18:57:35.046 179-179/? I/DEBUG﹕ 78d82964 744b8fd5 /system/lib/libjavacrypto.so
01-31 18:57:35.046 179-179/? I/DEBUG﹕ 78d82968 40a6bf6c /system/lib/libcrypto.so
01-31 18:57:35.046 179-179/? I/DEBUG﹕ 78d8296c 40a0a8fd /system/lib/libcrypto.so (CRYPTO_lock+40)
01-31 18:57:35.046 179-179/? I/DEBUG﹕ 78d82970 75b198f8 [anon:libc_malloc]
01-31 18:57:35.046 179-179/? I/DEBUG﹕ 78d82974 00000000
01-31 18:57:35.046 179-179/? I/DEBUG﹕ 78d82978 00000000
01-31 18:57:35.046 179-179/? I/DEBUG﹕ 78d8297c 000070a4
01-31 18:57:35.046 179-179/? I/DEBUG﹕ 78d82980 00000002
01-31 18:57:35.046 179-179/? I/DEBUG﹕ 78d82984 744b8fd5 /system/lib/libjavacrypto.so
01-31 18:57:35.046 179-179/? I/DEBUG﹕ 78d82988 00000002
01-31 18:57:35.046 179-179/? I/DEBUG﹕ 78d8298c 744b8fd5 /system/lib/libjavacrypto.so
01-31 18:57:35.046 179-179/? I/DEBUG﹕ #00 78d82990 40a6bf6c /system/lib/libcrypto.so
01-31 18:57:35.046 179-179/? I/DEBUG﹕ 78d82994 78d82a10 [stack:16157]
01-31 18:57:35.046 179-179/? I/DEBUG﹕ 78d82998 78d82a0c [stack:16157]
01-31 18:57:35.046 179-179/? I/DEBUG﹕ 78d8299c 7878a085 [anon:libc_malloc]
01-31 18:57:35.046 179-179/? I/DEBUG﹕ 78d829a0 00000017
01-31 18:57:35.046 179-179/? I/DEBUG﹕ 78d829a4 7878a085 [anon:libc_malloc]
01-31 18:57:35.046 179-179/? I/DEBUG﹕ 78d829a8 78501888 [anon:libc_malloc]
01-31 18:57:35.046 179-179/? I/DEBUG﹕ 78d829ac 78d82a0c [stack:16157]
01-31 18:57:35.046 179-179/? I/DEBUG﹕ 78d829b0 78d82a10 [stack:16157]
01-31 18:57:35.046 179-179/? I/DEBUG﹕ 78d829b4 75a92d68 [anon:libc_malloc]
01-31 18:57:35.046 179-179/? I/DEBUG﹕ 78d829b8 40ad6130 /system/lib/libssl.so
01-31 18:57:35.046 179-179/? I/DEBUG﹕ 78d829bc 00000017
01-31 18:57:35.046 179-179/? I/DEBUG﹕ 78d829c0 7878a081 [anon:libc_malloc]
01-31 18:57:35.046 179-179/? I/DEBUG﹕ 78d829c4 744b909d /system/lib/libjavacrypto.so
01-31 18:57:35.046 179-179/? I/DEBUG﹕ #01 78d829c8 00000000
01-31 18:57:35.046 179-179/? I/DEBUG﹕ 78d829cc ffffffff
01-31 18:57:35.046 179-179/? I/DEBUG﹕ 78d829d0 7878a09c [anon:libc_malloc]
01-31 18:57:35.046 179-179/? I/DEBUG﹕ 78d829d4 78d82a48 [stack:16157]
01-31 18:57:35.046 179-179/? I/DEBUG﹕ 78d829d8 78d82a48 [stack:16157]
01-31 18:57:35.046 179-179/? I/DEBUG﹕ 78d829dc 7878a085 [anon:libc_malloc]
01-31 18:57:35.056 179-179/? I/DEBUG﹕ 78d829e0 00003374
01-31 18:57:35.056 179-179/? I/DEBUG﹕ 78d829e4 40ac92f5 /system/lib/libssl.so (ssl_parse_serverhello_tlsext+436)
01-31 18:57:35.056 179-179/? I/DEBUG﹕ #02 78d829e8 00000017
01-31 18:57:35.056 179-179/? I/DEBUG﹕ 78d829ec 00000000
01-31 18:57:35.056 179-179/? I/DEBUG﹕ 78d829f0 40ad15a5 /system/lib/libssl.so
01-31 18:57:35.056 179-179/? I/DEBUG﹕ 78d829f4 00000000
01-31 18:57:35.056 179-179/? I/DEBUG﹕ 78d829f8 00000001
01-31 18:57:35.056 179-179/? I/DEBUG﹕ 78d829fc 78d82a4c [stack:16157]
01-31 18:57:35.056 179-179/? I/DEBUG﹕ 78d82a00 7878a098 [anon:libc_malloc]
01-31 18:57:35.056 179-179/? I/DEBUG﹕ 78d82a04 7878a09c [anon:libc_malloc]
01-31 18:57:35.056 179-179/? I/DEBUG﹕ 78d82a08 75a92d68 [anon:libc_malloc]
01-31 18:57:35.056 179-179/? I/DEBUG﹕ 78d82a0c 75a92f58 [anon:libc_malloc]
01-31 18:57:35.056 179-179/? I/DEBUG﹕ 78d82a10 40a8edc0 /system/lib/libcrypto.so
01-31 18:57:35.056 179-179/? I/DEBUG﹕ 78d82a14 75a92d68 [anon:libc_malloc]
01-31 18:57:35.056 179-179/? I/DEBUG﹕ 78d82a18 00000068
01-31 18:57:35.056 179-179/? I/DEBUG﹕ 78d82a1c 7878a034 [anon:libc_malloc]
01-31 18:57:35.056 179-179/? I/DEBUG﹕ 78d82a20 75a17078 [anon:libc_malloc]
01-31 18:57:35.056 179-179/? I/DEBUG﹕ 78d82a24 7878a057 [anon:libc_malloc]
01-31 18:57:35.056 179-179/? I/DEBUG﹕ ........ ........
01-31 18:57:35.056 179-179/? I/DEBUG﹕ memory near r2:
01-31 18:57:35.056 179-179/? I/DEBUG﹕ 7878a064 b8125a97 c1335f1a aac9dc89 23002af5
01-31 18:57:35.056 179-179/? I/DEBUG﹕ 7878a074 c08d7bf1 20000011 010001ff 00743300
01-31 18:57:35.056 179-179/? I/DEBUG﹕ 7878a084 70730617 332f7964 64707306 08322f79
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a094 70747468 312e312f 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a0a4 00000000 00000000 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a0b4 00000000 00000000 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a0c4 00000000 00000000 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a0d4 00000000 00000000 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a0e4 00000000 00000000 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a0f4 00000000 00000000 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a104 00000000 00000000 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a114 00000000 00000000 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a124 00000000 00000000 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a134 00000000 00000000 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a144 00000000 00000000 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a154 00000000 00000000 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ memory near r5:
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a064 b8125a97 c1335f1a aac9dc89 23002af5
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a074 c08d7bf1 20000011 010001ff 00743300
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a084 70730617 332f7964 64707306 08322f79
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a094 70747468 312e312f 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a0a4 00000000 00000000 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a0b4 00000000 00000000 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a0c4 00000000 00000000 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a0d4 00000000 00000000 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a0e4 00000000 00000000 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a0f4 00000000 00000000 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a104 00000000 00000000 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a114 00000000 00000000 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a124 00000000 00000000 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a134 00000000 00000000 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a144 00000000 00000000 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a154 00000000 00000000 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ memory near r9:
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 40ad6110 00000001 00000020 00000002 00000002
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 40ad6120 00000105 0000c030 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 40ad6130 00000001 40acc60f 0300c011 00000080
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 40ad6140 00000001 00000004 00000002 00000002
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 40ad6150 00000041 0000c030 00000080 00000080
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 40ad6160 00000001 40acc621 0300c012 00000080
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 40ad6170 00000001 00000002 00000002 00000002
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 40ad6180 00000181 0000c030 000000a8 000000a8
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 40ad6190 00000001 40acc638 0300c013 00000080
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 40ad61a0 00000001 00000040 00000002 00000002
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 40ad61b0 00000181 0000c030 00000080 00000080
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 40ad61c0 00000001 40acc64d 0300c014 00000080
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 40ad61d0 00000001 00000080 00000002 00000002
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 40ad61e0 00000181 0000c030 00000100 00000100
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 40ad61f0 00000001 40acc662 0300c015 00000080
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 40ad6200 00000004 00000020 00000002 00000002
01-31 18:57:35.066 179-179/? I/DEBUG﹕ memory near fp:
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a064 b8125a97 c1335f1a aac9dc89 23002af5
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a074 c08d7bf1 20000011 010001ff 00743300
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a084 70730617 332f7964 64707306 08322f79
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a094 70747468 312e312f 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a0a4 00000000 00000000 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a0b4 00000000 00000000 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a0c4 00000000 00000000 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a0d4 00000000 00000000 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a0e4 00000000 00000000 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a0f4 00000000 00000000 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a104 00000000 00000000 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a114 00000000 00000000 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a124 00000000 00000000 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a134 00000000 00000000 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a144 00000000 00000000 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 7878a154 00000000 00000000 00000000 00000000
01-31 18:57:35.066 179-179/? I/DEBUG﹕ memory near ip:
01-31 18:57:35.066 179-179/? I/DEBUG﹕ 744c4b14 40a266e1 409eaaf9 40a1cd21 40a1c9c5
01-31 18:57:35.076 179-179/? I/DEBUG﹕ 744c4b24 40a1d70d 40a159cd 40a20d41 400f2021
01-31 18:57:35.076 179-179/? I/DEBUG﹕ 744c4b34 40ac0efd 400ed7dc 400ed8e0 40a34091
01-31 18:57:35.076 179-179/? I/DEBUG﹕ 744c4b44 40ac0775 4013a927 400db3b1 402b35b5
01-31 18:57:35.076 179-179/? I/DEBUG﹕ 744c4b54 40a2919d 40a21a49 40a218b5 40a21851
01-31 18:57:35.076 179-179/? I/DEBUG﹕ 744c4b64 40a21dd9 40a23ec9 40104235 40a23ea9
01-31 18:57:35.076 179-179/? I/DEBUG﹕ 744c4b74 40a23f8d 400ecc01 400f2415 400f0ef5
01-31 18:57:35.076 179-179/? I/DEBUG﹕ 744c4b84 402b36f5 40ac0f79 40ac3e9d 40a5bbfd
01-31 18:57:35.076 179-179/? I/DEBUG﹕ 744c4b94 409f45f5 409f46dd 40a5bc45 409f7799
01-31 18:57:35.076 179-179/? I/DEBUG﹕ 744c4ba4 409eda29 409f025d 40a5b385 40a4eef9
01-31 18:57:35.076 179-179/? I/DEBUG﹕ 744c4bb4 409f62f5 409f9a5d 40a29ad9 409f9b01
01-31 18:57:35.076 179-179/? I/DEBUG﹕ 744c4bc4 409e9905 40a2a135 40a19f01 40a1a265
01-31 18:57:35.076 179-179/? I/DEBUG﹕ 744c4bd4 40a19a5d 40a19c69 40a1a09d 40a199d9
01-31 18:57:35.076 179-179/? I/DEBUG﹕ 744c4be4 40a19e8d 40a33f39 40a19e99 40a19e91
01-31 18:57:35.076 179-179/? I/DEBUG﹕ 744c4bf4 40a19d6d 40a2b839 40a2b73d 40a2bb79
01-31 18:57:35.076 179-179/? I/DEBUG﹕ 744c4c04 409eab01 40a1a365 409e89a1 409f3b61
01-31 18:57:35.076 179-179/? I/DEBUG﹕ memory near sp:
01-31 18:57:35.076 179-179/? I/DEBUG﹕ 78d82970 75b198f8 00000000 00000000 000070a4
01-31 18:57:35.076 179-179/? I/DEBUG﹕ 78d82980 00000002 744b8fd5 00000002 744b8fd5
01-31 18:57:35.076 179-179/? I/DEBUG﹕ 78d82990 40a6bf6c 78d82a10 78d82a0c 7878a085
01-31 18:57:35.076 179-179/? I/DEBUG﹕ 78d829a0 00000017 7878a085 78501888 78d82a0c
01-31 18:57:35.076 179-179/? I/DEBUG﹕ 78d829b0 78d82a10 75a92d68 40ad6130 00000017
01-31 18:57:35.076 179-179/? I/DEBUG﹕ 78d829c0 7878a081 744b909d 00000000 ffffffff
01-31 18:57:35.076 179-179/? I/DEBUG﹕ 78d829d0 7878a09c 78d82a48 78d82a48 7878a085
01-31 18:57:35.076 179-179/? I/DEBUG﹕ 78d829e0 00003374 40ac92f5 00000017 00000000
01-31 18:57:35.076 179-179/? I/DEBUG﹕ 78d829f0 40ad15a5 00000000 00000001 78d82a4c
01-31 18:57:35.076 179-179/? I/DEBUG﹕ 78d82a00 7878a098 7878a09c 75a92d68 75a92f58
01-31 18:57:35.076 179-179/? I/DEBUG﹕ 78d82a10 40a8edc0 75a92d68 00000068 7878a034
01-31 18:57:35.076 179-179/? I/DEBUG﹕ 78d82a20 75a17078 7878a057 40ad6130 00000020
01-31 18:57:35.076 179-179/? I/DEBUG﹕ 78d82a30 00001110 40ab2111 78d82a48 78d82a44
01-31 18:57:35.076 179-179/? I/DEBUG﹕ 78d82a40 75a92d68 00000001 78501888 7878a07a
01-31 18:57:35.076 179-179/? I/DEBUG﹕ 78d82a50 75a92d68 00001120 78501888 744b91fd
01-31 18:57:35.076 179-179/? I/DEBUG﹕ 78d82a60 00000000 00001120 00001000 40ab151b
01-31 18:57:35.076 179-179/? I/DEBUG﹕ code around pc:
01-31 18:57:35.076 179-179/? I/DEBUG﹕ 40ac0f0c d02c2b00 9f0f9701 21009102 4001f81b
01-31 18:57:35.076 179-179/? I/DEBUG﹕ 40ac0f1c 0801f101 eb0bb1cf eb0b0001 90030508
01-31 18:57:35.076 179-179/? I/DEBUG﹕ 40ac0f2c f8162000 f1009000 454c0a01 eb06d109
01-31 18:57:35.086 179-179/? I/DEBUG﹕ 40ac0f3c 4628010a f7e54622 4601ef8c 29002001
01-31 18:57:35.086 179-179/? I/DEBUG﹕ 40ac0f4c eb0ad00a 42b80009 eb08d3eb 9a040104
01-31 18:57:35.086 179-179/? I/DEBUG﹕ 40ac0f5c 42912002 e000d3da 99029e03 1c729f01
01-31 18:57:35.086 179-179/? I/DEBUG﹕ 40ac0f6c 7832603a b005700a 8ff0e8bd 3178f8d0
01-31 18:57:35.086 179-179/? I/DEBUG﹕ 40ac0f7c 2100600b bf182b00 117cf890 47706011
01-31 18:57:35.086 179-179/? I/DEBUG﹕ 40ac0f8c 11a4f8c0 21a8f8c0 bf004770 11acf8c0
01-31 18:57:35.086 179-179/? I/DEBUG﹕ 40ac0f9c 21b0f8c0 bf004770 4605b570 f8d54614
01-31 18:57:35.086 179-179/? I/DEBUG﹕ 40ac0fac 460e01bc bf182800 ee02f7e5 f240480a
01-31 18:57:35.086 179-179/? I/DEBUG﹕ 40ac0fbc 490a6296 44014478 f7e54620 2101edee
01-31 18:57:35.086 179-179/? I/DEBUG﹕ 40ac0fcc 01bcf8c5 4631b130 f7e54622 2100ee2e
01-31 18:57:35.086 179-179/? I/DEBUG﹕ 40ac0fdc 41c0f8c5 bd704608 00013a84 ffffb5ae
01-31 18:57:35.086 179-179/? I/DEBUG﹕ 40ac0fec 4605b570 f8d54614 460e019c bf182800
01-31 18:57:35.086 179-179/? I/DEBUG﹕ 40ac0ffc eddef7e5 f240480a 490a62aa 44014478
01-31 18:57:35.086 179-179/? I/DEBUG﹕ code around lr:
01-31 18:57:35.086 179-179/? I/DEBUG﹕ 744b907c 46052121 f7fe4640 6a6aef98 b13c6aab
01-31 18:57:35.086 179-179/? I/DEBUG﹕ 744b908c 000ce88d 46314638 9b084622 ef74f7fe
01-31 18:57:35.086 179-179/? I/DEBUG﹕ 744b909c e8bd2000 b53881fc b1884604 b1556a05
01-31 18:57:35.086 179-179/? I/DEBUG﹕ 744b90ac ffccf7ff 68036829 47906d9a f7fe4628
01-31 18:57:35.086 179-179/? I/DEBUG﹕ 744b90bc 2000ef82 21006220 60e12001 bd386161
01-31 18:57:35.086 179-179/? I/DEBUG﹕ 744b90cc b508bd38 6d5a6803 bd084790 6803b508
01-31 18:57:35.086 179-179/? I/DEBUG﹕ 744b90dc 47906dda b508bd08 6fda6803 bd084790
01-31 18:57:35.086 179-179/? I/DEBUG﹕ 744b90ec 6804b510 4084f8d4 bd1047a0 b513b40c
01-31 18:57:35.086 179-179/? I/DEBUG﹕ 744b90fc 6804ab04 2b04f853 40c8f8d4 47a09301
01-31 18:57:35.086 179-179/? I/DEBUG﹕ 744b910c 401ce8bd 4770b002 b513b40c 6804ab04
01-31 18:57:35.086 179-179/? I/DEBUG﹕ 744b911c 2b04f853 40f8f8d4 47a09301 401ce8bd
01-31 18:57:35.086 179-179/? I/DEBUG﹕ 744b912c 4770b002 b513b40c 6804ab04 2b04f853
01-31 18:57:35.086 179-179/? I/DEBUG﹕ 744b913c 41ccf8d4 47a09301 401ce8bd 4770b002
01-31 18:57:35.086 179-179/? I/DEBUG﹕ 744b914c 6803b508 229cf8d3 bd084790 6803b508
01-31 18:57:35.086 179-179/? I/DEBUG﹕ 744b915c 22acf8d3 bd084790 6804b510 42b0f8d4
01-31 18:57:35.086 179-179/? I/DEBUG﹕ 744b916c bd1047a0 6803b508 32b4f8d3 bd084798
01-31 18:57:35.316 779-836/? I/BootReceiver﹕ Copying /data/tombstones/tombstone_02 to DropBox (SYSTEM_TOMBSTONE)
01-31 18:57:35.316 779-16174/? W/ActivityManager﹕ Force finishing activity com.myapp.example/.ui.activity.BuilderActivity
01-31 18:57:35.346 779-1160/? I/WindowState﹕ WIN DEATH: Window{43688bd8 u0 com.myapp.example/com.myapp.example.ui.activity.FeedActivity}
01-31 18:57:35.346 779-850/? W/InputDispatcher﹕ channel '4379edc0 com.myapp.example/com.myapp.example.ui.activity.BuilderActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9
01-31 18:57:35.346 779-850/? E/InputDispatcher﹕ channel '4379edc0 com.myapp.example/com.myapp.example.ui.activity.BuilderActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
01-31 18:57:35.346 779-22384/? I/ActivityManager﹕ Process com.myapp.example (pid 16008) has died.
01-31 18:57:35.356 779-1162/? W/InputDispatcher﹕ Attempted to unregister already unregistered input channel '4379edc0 com.myapp.example/com.myapp.example.ui.activity.BuilderActivity (server)'
01-31 18:57:35.356 779-1162/? I/WindowState﹕ WIN DEATH: Window{4379edc0 u0 com.myapp.example/com.myapp.example.ui.activity.BuilderActivity}
01-31 18:57:35.356 779-22384/? W/ActivityManager﹕ Force removing ActivityRecord{42db95f0 u0 com.myapp.example/.ui.activity.FeedActivity t525}: app died, no saved state
01-31 18:57:35.366 182-182/? D/Zygote﹕ Process 16008 terminated by signal (11)
01-31 18:59:36.526 1055-7961/? W/Binder﹕ Caught a RuntimeException from the binder stub implementation.
java.lang.NullPointerException
at android.inputmethodservice.IInputMethodWrapper.setSessionEnabled(IInputMethodWrapper.java:280)
at com.android.internal.view.IInputMethod$Stub.onTransact(IInputMethod.java:129)
at android.os.Binder.execTransact(Binder.java:404)
at dalvik.system.NativeStart.run(Native Method)
这是一个非常奇怪的错误,它总是崩溃。你知道怎么解决吗?
更新完整场景
场景是这样的。 我进入我的 fb 帐户并从我的应用程序的权限列表中删除我的应用程序以获得干净的环境。之后我安装我的应用程序并连接到 facebook 并发出“获取 fb 好友请求”一切正常。 如果我关闭我的应用程序并再次尝试并发出相同的请求,它会在 connection.getInputStream 上崩溃(如问题中间所述)。
最佳答案
试着看看这个 OkHttp 问题:
https://github.com/square/okhttp/issues/184
我在使用 Google Analytics 时遇到了类似的问题,因为 OkHttp 更改了全局 SSL 上下文。删除 OkHttp 解决了我的问题,您可以尝试将您的代码复制并粘贴到没有外部库的其他项目中吗?
关于android - 请求好友列表时应用程序崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21486932/
我需要在客户计算机上运行Ruby应用程序。通常需要几天才能完成(复制大备份文件)。问题是如果启用sleep,它会中断应用程序。否则,计算机将持续运行数周,直到我下次访问为止。有什么方法可以防止执行期间休眠并让Windows在执行后休眠吗?欢迎任何疯狂的想法;-) 最佳答案 Here建议使用SetThreadExecutionStateWinAPI函数,使应用程序能够通知系统它正在使用中,从而防止系统在应用程序运行时进入休眠状态或关闭显示。像这样的东西:require'Win32API'ES_AWAYMODE_REQUIRED=0x0
对于具有离线功能的智能手机应用程序,我正在为Xml文件创建单向文本同步。我希望我的服务器将增量/差异(例如GNU差异补丁)发送到目标设备。这是计划:Time=0Server:hasversion_1ofXmlfile(~800kiB)Client:hasversion_1ofXmlfile(~800kiB)Time=1Server:hasversion_1andversion_2ofXmlfile(each~800kiB)computesdeltaoftheseversions(=patch)(~10kiB)sendspatchtoClient(~10kiBtransferred)Cl
Rackup通过Rack的默认处理程序成功运行任何Rack应用程序。例如:classRackAppdefcall(environment)['200',{'Content-Type'=>'text/html'},["Helloworld"]]endendrunRackApp.new但是当最后一行更改为使用Rack的内置CGI处理程序时,rackup给出“NoMethodErrorat/undefinedmethod`call'fornil:NilClass”:Rack::Handler::CGI.runRackApp.newRack的其他内置处理程序也提出了同样的反对意见。例如Rack
我想用ruby编写一个小的命令行实用程序并将其作为gem分发。我知道安装后,Guard、Sass和Thor等某些gem可以从命令行自行运行。为了让gem像二进制文件一样可用,我需要在我的gemspec中指定什么。 最佳答案 Gem::Specification.newdo|s|...s.executable='name_of_executable'...endhttp://docs.rubygems.org/read/chapter/20 关于ruby-在Ruby中编写命令行实用程序
为了将Cucumber用于命令行脚本,我按照提供的说明安装了arubagem。它在我的Gemfile中,我可以验证是否安装了正确的版本并且我已经包含了require'aruba/cucumber'在'features/env.rb'中为了确保它能正常工作,我写了以下场景:@announceScenario:Testingcucumber/arubaGivenablankslateThentheoutputfrom"ls-la"shouldcontain"drw"假设事情应该失败。它确实失败了,但失败的原因是错误的:@announceScenario:Testingcucumber/ar
我构建了两个需要相互通信和发送文件的Rails应用程序。例如,一个Rails应用程序会发送请求以查看其他应用程序数据库中的表。然后另一个应用程序将呈现该表的json并将其发回。我还希望一个应用程序将存储在其公共(public)目录中的文本文件发送到另一个应用程序的公共(public)目录。我从来没有做过这样的事情,所以我什至不知道从哪里开始。任何帮助,将不胜感激。谢谢! 最佳答案 无论Rails是什么,几乎所有Web应用程序都有您的要求,大多数现代Web应用程序都需要相互通信。但是有一个小小的理解需要你坚持下去,网站不应直接访问彼此
我尝试运行2.x应用程序。我使用rvm并为此应用程序设置其他版本的ruby:$rvmuseree-1.8.7-head我尝试运行服务器,然后出现很多错误:$script/serverNOTE:Gem.source_indexisdeprecated,useSpecification.Itwillberemovedonorafter2011-11-01.Gem.source_indexcalledfrom/Users/serg/rails_projects_terminal/work_proj/spohelp/config/../vendor/rails/railties/lib/r
刚入门rails,开始慢慢理解。有人可以解释或给我一些关于在application_controller中编码的好处或时间和原因的想法吗?有哪些用例。您如何为Rails应用程序使用应用程序Controller?我不想在那里放太多代码,因为据我了解,每个请求都会调用此Controller。这是真的? 最佳答案 ApplicationController实际上是您应用程序中的每个其他Controller都将从中继承的类(尽管这不是强制性的)。我同意不要用太多代码弄乱它并保持干净整洁的态度,尽管在某些情况下ApplicationContr
是否有类似“RVMuse1”或“RVMuselist[0]”之类的内容而不是键入整个版本号。在任何时候,我们都会看到一个可能包含5个或更多ruby的列表,我们可以轻松地键入一个数字而不是X.X.X。这也有助于rvmgemset。 最佳答案 这在RVM2.0中是可能的=>https://docs.google.com/document/d/1xW9GeEpLOWPcddDg_hOPvK4oeLxJmU3Q5FiCNT7nTAc/edit?usp=sharing-知道链接的任何人都可以发表评论
在我的Controller中,我通过以下方式在我的index方法中支持HTML和JSON:respond_todo|format|format.htmlformat.json{renderjson:@user}end在浏览器中拉起它时,它会自然地以HTML呈现。但是,当我对/user资源进行内容类型为application/json的curl调用时(因为它是索引方法),我仍然将HTML作为响应。如何获取JSON作为响应?我还需要说明什么? 最佳答案 您应该将.json附加到请求的url,提供的格式在routes.rb的路径中定义。这