android,c++,android-ndk,crash , ndk-stack give me only have libc frame

ndk-stack give me only have libc frame


Tag: android,c++,android-ndk,crash

I'm working with ndk develop, and it crashed when running, i get the info from logcat, and ndk-stack it, got this:

signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Stack frame I/DEBUG   ( 2418):     #00  pc 000221a8  /system/lib/ (tgkill+12)
Stack frame I/DEBUG   ( 2418):     #01  pc 00013265  /system/lib/ (pthread_kill+48)
Stack frame I/DEBUG   ( 2418):     #02  pc 00013479  /system/lib/ (raise+10)
Stack frame I/DEBUG   ( 2418):     #03  pc 000121af  /system/lib/
Stack frame I/DEBUG   ( 2418):     #04  pc 00021a5c  /system/lib/   (abort+4)
Stack frame I/DEBUG   ( 2418):     #05  pc 000c0d58  /data/app-lib/com.crossui.morningrout-2/ (__gnu_cxx::__verbose_terminate_handler()+344): Routine __gnu_cxx::__verbose_terminate_handler() at /s/ndk-toolchain/src/gcc/gcc-4.8/libstdc++-v3/libsupc++/

here have not the frame of my so, the first frame is, then, what can i do to find the bug?


03-10 18:05:16.810: A/libc(21995): Fatal signal 6 (SIGABRT) at 0x000055eb (code=-6), thread 22289 (Thread-58801)
03-10 18:05:16.860: I/DEBUG(2418): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
03-10 18:05:16.860: I/DEBUG(2418): Build fingerprint: 'Huawei/H60-L01/hwH60:4.4.2/HDH60-L01/CHNC00B313:user/ota-rel-keys,release-keys'
03-10 18:05:16.860: I/DEBUG(2418): Revision: '0'
03-10 18:05:16.860: I/DEBUG(2418): pid: 21995, tid: 22289, name: Thread-58801  >>> com.crossui.morningrout <<<
03-10 18:05:16.865: I/DEBUG(2418): signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
03-10 18:05:16.880: I/dalvikvm-heap(23060): Grow heap (frag case) to 29.969MB for 821860-byte allocation
03-10 18:05:16.960: I/dalvikvm-heap(23060): Grow heap (frag case) to 30.154MB for 767792-byte allocation
03-10 18:05:16.990: I/DEBUG(2418):     r0 00000000  r1 00005711  r2 00000006  r3 00000000
03-10 18:05:16.990: I/DEBUG(2418):     r4 00000006  r5 00000000  r6 00005711  r7 0000010c
03-10 18:05:16.990: I/DEBUG(2418):     r8 0000004e  r9 00000047  sl 7638fbe4  fp 7638eed8
03-10 18:05:16.990: I/DEBUG(2418):     ip 7ade9fb0  sp 766f7870  lr 400cd269  pc 400dc1a8  cpsr 000f0010
03-10 18:05:16.990: I/DEBUG(2418):     d0  6461623a3a647473  d1  74705f6b6165775f
03-10 18:05:16.990: I/DEBUG(2418):     d2  0000000000000061  d3  0000000000000e64
03-10 18:05:16.990: I/DEBUG(2418):     d4  fffffffffffff000  d5  ffffffffffffffc0
03-10 18:05:16.990: I/DEBUG(2418):     d6  00000000000a3124  d7  0000000000000e00
03-10 18:05:16.990: I/DEBUG(2418):     d8  0000000000000000  d9  0000000000000000
03-10 18:05:16.990: I/DEBUG(2418):     d10 0000000000000000  d11 0000000000000000
03-10 18:05:16.990: I/DEBUG(2418):     d12 0000000000000000  d13 0000000000000000
03-10 18:05:16.990: I/DEBUG(2418):     d14 0000000000000000  d15 0000000000000000
03-10 18:05:16.990: I/DEBUG(2418):     d16 0000000000002000  d17 0000000000001000
03-10 18:05:16.990: I/DEBUG(2418):     d18 0000000000001000  d19 0000000000000000
03-10 18:05:16.990: I/DEBUG(2418):     d20 000000000003b800  d21 0000000000000e00
03-10 18:05:16.990: I/DEBUG(2418):     d22 0000000000000000  d23 0000000000000000
03-10 18:05:16.990: I/DEBUG(2418):     d24 0000000000000000  d25 0000000000000fff
03-10 18:05:16.990: I/DEBUG(2418):     d26 404cc05a40000000  d27 401711686c800000
03-10 18:05:16.990: I/DEBUG(2418):     d28 3ff0000000000000  d29 000000776705b005
03-10 18:05:16.990: I/DEBUG(2418):     d30 0000000000000001  d31 4000000000000000
03-10 18:05:16.990: I/DEBUG(2418):     scr 20000010
03-10 18:05:16.990: I/DEBUG(2418): backtrace:
03-10 18:05:16.990: I/DEBUG(2418):     #00  pc 000221a8  /system/lib/ (tgkill+12)
03-10 18:05:16.990: I/DEBUG(2418):     #01  pc 00013265  /system/lib/ (pthread_kill+48)
03-10 18:05:16.990: I/DEBUG(2418):     #02  pc 00013479  /system/lib/ (raise+10)
03-10 18:05:16.990: I/DEBUG(2418):     #03  pc 000121af  /system/lib/
03-10 18:05:16.990: I/DEBUG(2418):     #04  pc 00021a5c  /system/lib/ (abort+4)
03-10 18:05:16.990: I/DEBUG(2418):     #05  pc 000c0d3c  /data/app-lib/com.crossui.morningrout-1/ (__gnu_cxx::__verbose_terminate_handler()+344)
03-10 18:05:16.990: I/DEBUG(2418): stack:
03-10 18:05:16.990: I/DEBUG(2418):          766f7830  78c0786c  [anon:libc_malloc]
03-10 18:05:16.990: I/DEBUG(2418):          766f7834  78bd68c0  [anon:libc_malloc]
03-10 18:05:16.990: I/DEBUG(2418):          766f7838  766f7868  [stack:22289]
03-10 18:05:16.990: I/DEBUG(2418):          766f783c  7643bb54  /data/app-lib/com.crossui.morningrout-1/ (CrossApp::CAImage::setShaderProgram(std::shared_ptr<CrossApp::CAGLProgram> const&))
03-10 18:05:16.990: I/DEBUG(2418):          766f7840  00000003  
03-10 18:05:16.990: I/DEBUG(2418):          766f7844  02cf0a94  
03-10 18:05:16.995: I/DEBUG(2418):          766f7848  40105224  /system/lib/
03-10 18:05:16.995: I/DEBUG(2418):          766f784c  02cf0a94  
03-10 18:05:16.995: I/DEBUG(2418):          766f7850  0000000b  
03-10 18:05:16.995: I/DEBUG(2418):          766f7854  00000001  
03-10 18:05:16.995: I/DEBUG(2418):          766f7858  00000015  
03-10 18:05:16.995: I/DEBUG(2418):          766f785c  7251acd8  [anon:libc_malloc]
03-10 18:05:16.995: I/DEBUG(2418):          766f7860  00000001  
03-10 18:05:16.995: I/DEBUG(2418):          766f7864  400f4929  /system/lib/ (write+12)
03-10 18:05:16.995: I/DEBUG(2418):          766f7868  401051d0  /system/lib/
03-10 18:05:16.995: I/DEBUG(2418):          766f786c  7251acd8  [anon:libc_malloc]
03-10 18:05:16.995: I/DEBUG(2418):     #00  766f7870  00000006  
03-10 18:05:16.995: I/DEBUG(2418):          766f7874  00000000  
03-10 18:05:16.995: I/DEBUG(2418):          766f7878  00005711  
03-10 18:05:16.995: I/DEBUG(2418):          766f787c  7ade9fb0  [anon:libc_malloc]
03-10 18:05:16.995: I/DEBUG(2418):          766f7880  7ade9fb0  [anon:libc_malloc]
03-10 18:05:16.995: I/DEBUG(2418):          766f7884  400cd269  /system/lib/ (pthread_kill+52)
03-10 18:05:16.995: I/DEBUG(2418):     #01  766f7888  00000006  
03-10 18:05:16.995: I/DEBUG(2418):          766f788c  00000000  
03-10 18:05:16.995: I/DEBUG(2418):          766f7890  765844d8  /data/app-lib/com.crossui.morningrout-1/
03-10 18:05:16.995: I/DEBUG(2418):          766f7894  400cd47d  /system/lib/ (raise+14)
03-10 18:05:16.995: I/DEBUG(2418):     #02  766f7898  766f78a4  [stack:22289]
03-10 18:05:16.995: I/DEBUG(2418):          766f789c  400cc1b3  /system/lib/
03-10 18:05:16.995: I/DEBUG(2418): memory near r1:
03-10 18:05:16.995: I/DEBUG(2418):     000056f0 ffffffff ffffffff ffffffff ffffffff  
03-10 18:05:16.995: I/DEBUG(2418):     00005700 ffffffff ffffffff ffffffff ffffffff  
03-10 18:05:16.995: I/DEBUG(2418):     00005710 ffffffff ffffffff ffffffff ffffffff  
03-10 18:05:16.995: I/DEBUG(2418):     00005720 ffffffff ffffffff ffffffff ffffffff  
03-10 18:05:16.995: I/DEBUG(2418):     00005730 ffffffff ffffffff ffffffff ffffffff  
03-10 18:05:16.995: I/DEBUG(2418):     00005740 ffffffff ffffffff ffffffff ffffffff  
03-10 18:05:16.995: I/DEBUG(2418):     00005750 ffffffff ffffffff ffffffff ffffffff  
03-10 18:05:16.995: I/DEBUG(2418):     00005760 ffffffff ffffffff ffffffff ffffffff  
03-10 18:05:16.995: I/DEBUG(2418):     00005770 ffffffff ffffffff ffffffff ffffffff  
03-10 18:05:16.995: I/DEBUG(2418):     00005780 ffffffff ffffffff ffffffff ffffffff  
03-10 18:05:16.995: I/DEBUG(2418):     00005790 ffffffff ffffffff ffffffff ffffffff  
03-10 18:05:16.995: I/DEBUG(2418):     000057a0 ffffffff ffffffff ffffffff ffffffff  
03-10 18:05:16.995: I/DEBUG(2418):     000057b0 ffffffff ffffffff ffffffff ffffffff  
03-10 18:05:16.995: I/DEBUG(2418):     000057c0 ffffffff ffffffff ffffffff ffffffff  
03-10 18:05:16.995: I/DEBUG(2418):     000057d0 ffffffff ffffffff ffffffff ffffffff  
03-10 18:05:16.995: I/DEBUG(2418):     000057e0 ffffffff ffffffff ffffffff ffffffff  
03-10 18:05:16.995: I/DEBUG(2418): memory near r6:
03-10 18:05:16.995: I/DEBUG(2418):     000056f0 ffffffff ffffffff ffffffff ffffffff  
03-10 18:05:16.995: I/DEBUG(2418):     00005700 ffffffff ffffffff ffffffff ffffffff  
03-10 18:05:16.995: I/DEBUG(2418):     00005710 ffffffff ffffffff ffffffff ffffffff  
03-10 18:05:16.995: I/DEBUG(2418):     00005720 ffffffff ffffffff ffffffff ffffffff  
03-10 18:05:16.995: I/DEBUG(2418):     00005730 ffffffff ffffffff ffffffff ffffffff  
03-10 18:05:16.995: I/DEBUG(2418):     00005740 ffffffff ffffffff ffffffff ffffffff  
03-10 18:05:16.995: I/DEBUG(2418):     00005750 ffffffff ffffffff ffffffff ffffffff  
03-10 18:05:16.995: I/DEBUG(2418):     00005760 ffffffff ffffffff ffffffff ffffffff  
03-10 18:05:16.995: I/DEBUG(2418):     00005770 ffffffff ffffffff ffffffff ffffffff  
03-10 18:05:16.995: I/DEBUG(2418):     00005780 ffffffff ffffffff ffffffff ffffffff  
03-10 18:05:16.995: I/DEBUG(2418):     00005790 ffffffff ffffffff ffffffff ffffffff  
03-10 18:05:16.995: I/DEBUG(2418):     000057a0 ffffffff ffffffff ffffffff ffffffff  
03-10 18:05:16.995: I/DEBUG(2418):     000057b0 ffffffff ffffffff ffffffff ffffffff  
03-10 18:05:16.995: I/DEBUG(2418):     000057c0 ffffffff ffffffff ffffffff ffffffff  
03-10 18:05:16.995: I/DEBUG(2418):     000057d0 ffffffff ffffffff ffffffff ffffffff  
03-10 18:05:16.995: I/DEBUG(2418):     000057e0 ffffffff ffffffff ffffffff ffffffff  
03-10 18:05:16.995: I/DEBUG(2418): memory near sl:
03-10 18:05:16.995: I/DEBUG(2418):     7638fbc4 1affffaf eaffffda e3a02000 e3a03002  
03-10 18:05:16.995: I/DEBUG(2418):     7638fbd4 e1a0000c e88a000c e28dd02c e8bd8ff0  
03-10 18:05:16.995: I/DEBUG(2418):     7638fbe4 e59f318c e92d40f0 e08f3003 e5d32000  
03-10 18:05:16.995: I/DEBUG(2418):     7638fbf4 e59f4180 e3520000 e08f4004 e24dd00c  
03-10 18:05:16.995: I/DEBUG(2418):     7638fc04 1a00002b e3a05001 e5c35000 eb0021ee  
03-10 18:05:16.995: I/DEBUG(2418):     7638fc14 e3500000 0a000048 e5900004 e3a01000  
03-10 18:05:16.995: I/DEBUG(2418):     7638fc24 e5d03000 e3e02000 e353002a 00806005  
03-10 18:05:16.995: I/DEBUG(2418):     7638fc34 11a06000 e28d3008 e5232004 e1a00006  
03-10 18:05:16.995: I/DEBUG(2418):     7638fc44 e1a02001 eb002182 e59f312c e3a01001  
03-10 18:05:16.995: I/DEBUG(2418):     7638fc54 e7944003 e3a02030 e28450a8 e1a03005  
03-10 18:05:16.995: I/DEBUG(2418):     7638fc64 e1a07000 e59f0114 e08f0000 ebff9e51  
03-10 18:05:16.995: I/DEBUG(2418):     7638fc74 e59d3004 e3530000 01a01005 11a01005  
03-10 18:05:16.995: I/DEBUG(2418):     7638fc84 01a00007 11a00006 ebff9e4d e59f00f0  
03-10 18:05:16.995: I/DEBUG(2418):     7638fc94 e28430a8 e08f0000 e3a01001 e3a02002  
03-10 18:05:16.995: I/DEBUG(2418):     7638fca4 ebff9e44 e59d3004 e3530000 0a000009  
03-10 18:05:16.995: I/DEBUG(2418):     7638fcb4 ebfffce1 e59f30c0 e59f00c8 e7943003  
03-10 18:05:16.995: I/DEBUG(2418): memory near fp:
03-10 18:05:16.995: I/DEBUG(2418):     7638eeb8 e1a04001 e1a05000 ebfffccd e3740001  
03-10 18:05:16.995: I/DEBUG(2418):     7638eec8 0a000000 ebfffb55 e1a00005 ebfffc21  
03-10 18:05:16.995: I/DEBUG(2418):     7638eed8 e92d4008 e59f3008 e79f3003 e5930000  
03-10 18:05:16.995: I/DEBUG(2418):     7638eee8 ebffffed 0023e1ec e92d4008 e12fff30  
03-10 18:05:16.995: I/DEBUG(2418):     7638eef8 ebfffff6 e92d4008 e59f3008 e79f3003  
03-10 18:05:16.995: I/DEBUG(2418):     7638ef08 e5930000 ebfffff7 0023e1cc e59f3010  
03-10 18:05:16.995: I/DEBUG(2418):     7638ef18 e79f3003 e5932000 e5830000 e1a00002  
03-10 18:05:16.995: I/DEBUG(2418):     7638ef28 e12fff1e 0023e1b4 e59f3010 e79f3003  
03-10 18:05:17.000: I/DEBUG(2418):     7638ef38 e5932000 e5830000 e1a00002 e12fff1e  
03-10 18:05:17.000: I/DEBUG(2418):     7638ef48 0023e19c e3500001 e92d4010 8a000008  
03-10 18:05:17.000: I/DEBUG(2418):     7638ef58 e511301c e2814058 e3530000 0a000001  
03-10 18:05:17.000: I/DEBUG(2418):     7638ef68 e1a00004 e12fff33 e1a00004 e8bd4010  
03-10 18:05:17.000: I/DEBUG(2418):     7638ef78 eafffaa3 e5110014 ebffffc7 e92d4ff8  
03-10 18:05:17.000: I/DEBUG(2418):     7638ef88 e1a04000 e1a06001 e1a07002 ebfffd42  
03-10 18:05:17.000: I/DEBUG(2418):     7638ef98 e59f2094 e59f1094 e79f2002 e592a000  
03-10 18:05:17.000: I/DEBUG(2418):     7638efa8 e59f208c e79f1001 e591b000 e3a0e055  
03-10 18:05:17.000: I/DEBUG(2418): memory near ip:
03-10 18:05:17.000: I/DEBUG(2418):     7ade9f90 7767f008 00000000 00001000 00000000  
03-10 18:05:17.000: I/DEBUG(2418):     7ade9fa0 7767f008 00000438 000006a5 00000029  
03-10 18:05:17.000: I/DEBUG(2418):     7ade9fb0 401091d8 401091d8 6e65706f 472f6c67  
03-10 18:05:17.000: I/DEBUG(2418):     7ade9fc0 7275534c 65636166 77656956 00726500  
03-10 18:05:17.000: I/DEBUG(2418):     7ade9fd0 00000028 00000062 7ade9ef0 7ade9e28  
03-10 18:05:17.000: I/DEBUG(2418):     7ade9fe0 00000000 00000000 0000010c 765eefc8  
03-10 18:05:17.000: I/DEBUG(2418):     7ade9ff0 00000000 00000000 00000000 00000000  
03-10 18:05:17.000: I/DEBUG(2418):     7adea000 00000000 00000000 00000000 00000000  
03-10 18:05:17.000: I/DEBUG(2418):     7adea010 00000000 00000000 77642380 00000000  
03-10 18:05:17.000: I/DEBUG(2418):     7adea020 00001000 00000000 77642380 00000000  
03-10 18:05:17.000: I/DEBUG(2418):     7adea030 00000000 0000002b 00000001 765d7c04  
03-10 18:05:17.000: I/DEBUG(2418):     7adea040 00000000 00000000 00000000 00000000  
03-10 18:05:17.000: I/DEBUG(2418):     7adea050 6863756f 67726154 00000028 0000100b  
03-10 18:05:17.000: I/DEBUG(2418):     7adea060 00000000 792bfb40 00000000 00000000  
03-10 18:05:17.000: I/DEBUG(2418):     7adea070 00000000 00000000 765eaac0 00000000  
03-10 18:05:17.000: I/DEBUG(2418):     7adea080 7adec000 7adec000 0000000a 0018400f  
03-10 18:05:17.000: I/DEBUG(2418): memory near sp:
03-10 18:05:17.000: I/DEBUG(2418):     766f7850 0000000b 00000001 00000015 7251acd8  
03-10 18:05:17.000: I/DEBUG(2418):     766f7860 00000001 400f4929 401051d0 7251acd8  
03-10 18:05:17.000: I/DEBUG(2418):     766f7870 00000006 00000000 00005711 7ade9fb0  
03-10 18:05:17.000: I/DEBUG(2418):     766f7880 7ade9fb0 400cd269 00000006 00000000  
03-10 18:05:17.000: I/DEBUG(2418):     766f7890 765844d8 400cd47d 766f78a4 400cc1b3  
03-10 18:05:17.000: I/DEBUG(2418):     766f78a0 40105224 ffffffdf 0000000a 00000000  
03-10 18:05:17.000: I/DEBUG(2418):     766f78b0 40105224 4011332c 0000000a 4010517c  
03-10 18:05:17.000: I/DEBUG(2418):     766f78c0 00000001 400dba60 00005711 7638fd40  
03-10 18:05:17.000: I/DEBUG(2418):     766f78d0 7ade32b8 00000000 765c2088 7ade32b8  
03-10 18:05:17.000: I/DEBUG(2418):     766f78e0 7ade3260 765c2088 763ca504 7638eeac  
03-10 18:05:17.000: I/DEBUG(2418):     766f78f0 765ce00c 7638eeec 00000000 7638f034  
03-10 18:05:17.000: I/DEBUG(2418):     766f7900 765cdbd8 78fbb00c 78fbaff8 78fbb000  
03-10 18:05:17.000: I/DEBUG(2418):     766f7910 790f9370 766f79d0 42c80000 00000000  
03-10 18:05:17.000: I/DEBUG(2418):     766f7920 00000000 763812e8 00000000 7643bdb0  
03-10 18:05:17.000: I/DEBUG(2418):     766f7930 78fbaffc 00000000 00000000 78fbaff8  
03-10 18:05:17.000: I/DEBUG(2418):     766f7940 00000000 79158dfc 790f9370 7643ded4  
03-10 18:05:17.000: I/DEBUG(2418): code around pc:
03-10 18:05:17.000: I/DEBUG(2418):     400dc188 e8bd00f0 e3700a01 912fff1e e2600000  
03-10 18:05:17.000: I/DEBUG(2418):     400dc198 ea006f65 e92d50f0 e3a07f43 ef000000  
03-10 18:05:17.000: I/DEBUG(2418):     400dc1a8 e8bd50f0 e3700a01 912fff1e e2600000  
03-10 18:05:17.000: I/DEBUG(2418):     400dc1b8 ea006f5d e92d50f0 e3a070ee ef000000  
03-10 18:05:17.000: I/DEBUG(2418):     400dc1c8 e8bd50f0 e3700a01 912fff1e e2600000  
03-10 18:05:17.000: I/DEBUG(2418):     400dc1d8 ea006f55 e3510000 0a006734 e710f110  
03-10 18:05:17.000: I/DEBUG(2418):     400dc1e8 e12fff1e e3510000 0a006730 e1a02000  
03-10 18:05:17.000: I/DEBUG(2418):     400dc1f8 e710f110 e0612190 e12fff1e e1520003  
03-10 18:05:17.000: I/DEBUG(2418):     400dc208 8a00008c f5d1f040 e92d4001 e3520010  
03-10 18:05:17.000: I/DEBUG(2418):     400dc218 3a000024 e2603000 e213300f 0a00000e  
03-10 18:05:17.000: I/DEBUG(2418):     400dc228 e0422003 e1b0cf83 44d1e001 44c0e001  
03-10 18:05:17.000: I/DEBUG(2418):     400dc238 24d1c001 24d1e001 24c0c001 24c0e001  
03-10 18:05:17.000: I/DEBUG(2418):     400dc248 e1b0ce83 aa000001 f4a1030d f480031d  
03-10 18:05:17.000: I/DEBUG(2418):     400dc258 3a000001 f421070d f400071d e2522040  
03-10 18:05:17.000: I/DEBUG(2418):     400dc268 3a000006 f421020d f421420d f5d1f100  
03-10 18:05:17.000: I/DEBUG(2418):     400dc278 e2522040 f400022d f400422d 2afffff8  
03-10 18:05:17.000: I/DEBUG(2418): code around lr:
03-10 18:05:17.000: I/DEBUG(2418):     400cd248 447b4b13 42b3e010 4812d10e 44786a1e  
03-10 18:05:17.000: I/DEBUG(2418):     400cd258 ec90f7fb e9d8f00d 46224631 ef9af00e  
03-10 18:05:17.000: I/DEBUG(2418):     400cd268 d00a3001 e00b2400 2b00681b 480ad1eb  
03-10 18:05:17.000: I/DEBUG(2418):     400cd278 44782403 ec7ef7fb f001e002 6804fa1b  
03-10 18:05:17.000: I/DEBUG(2418):     400cd288 fa18f001 46206005 bf00bd70 0003c162  
03-10 18:05:17.000: I/DEBUG(2418):     400cd298 0003c156 0003c14e 0003c12a bf7ef7ff  
03-10 18:05:17.005: I/DEBUG(2418):     400cd2a8 4a3e4b3d 43f0e92d 4606b08b 447b460d  
03-10 18:05:17.005: I/DEBUG(2418):     400cd2b8 6823589c 930946a1 f9fcf001 8000f8d0  
03-10 18:05:17.005: I/DEBUG(2418):     400cd2c8 d0482d00 f00f4628 280fff09 d8444604  
03-10 18:05:17.005: I/DEBUG(2418):     400cd2d8 ffe4f7ff d1064286 4629200f e8a2f00d  
03-10 18:05:17.005: I/DEBUG(2418):     400cd2e8 d03c2800 482ee02e f7fb4478 482debc2  
03-10 18:05:17.005: I/DEBUG(2418):     400cd2f8 e0154478 d11342b0 482b6a06 f7fb4478  
03-10 18:05:17.005: I/DEBUG(2418):     400cd308 4a2aec3a 46332120 447aa801 fa88f013  
03-10 18:05:17.005: I/DEBUG(2418):     400cd318 a8012101 fd16f01a 46061c42 e011d104  
03-10 18:05:17.005: I/DEBUG(2418):     400cd328 28006800 e02cd1e6 46294630 f0274622  
03-10 18:05:17.005: I/DEBUG(2418):     400cd338 1c43faf1 d11e4607 f9bcf001 29046801  

Is there something in the log that ndk-stack not found?
thank you for your help!


I found the error with write log, it's because that: I call shared_from_this() in class destructor, after delete the line, all runs ok. thank you for your help!~


Implicit use of initializer_list

§[dcl.init.list] 8.5.4/2: The template std::initializer_list is not predefined; if the header <initializer_list> is not included prior to a use of std::initializer_list — even an implicit use in which the type is not named ( — the program is ill-formed. Does that mean this program is ill-formed? #include <vector> int main()...

Can I install 2 or more Android SDK when using Eclipse

I am new to android developments. I am setting up my android development environment using Eclipse. I have a test smart phone with Android version 4.2.2. The automatic installation installed the latest Android SDK version, which is 5.1.1. My questions are: 1. Do I have to install the SDK version...

Notification whenever a new topic is created on mosquitto

I am trying to implement Push notifications on Android, using Mosquitto broker. So, different android application create topics based on tehir id on which they will receive notifications. To send notifications to those android applications we need the name of the topic. I am wondering if there is a way...

Why i get can not resolve method error in class android?

I use this tutorial: JSON and part of code to this: protected String doInBackground(String... urls) { TextView lbl=(TextView) findViewById(; person = new Person(); person.setName(lbl.getText().toString()); //person.setCountry("1853"); //person.setTwitter("1892"); return POST(urls[0],person); } but in the this line: person.setName(lbl.getText().toString()); i get this error: Can not resolve method. How can i solve that?what happen? my...

Twitter4j - cannot resolve method - setUsessl(boolean)

I'm using twitter4j 4.0.3 core I have this code: public final class TwitterUtil { private RequestToken requestToken = null; private TwitterFactory twitterFactory = null; private Twitter twitter; private TwitterUtil() { ConfigurationBuilder configurationBuilder = new ConfigurationBuilder(); configurationBuilder.setOAuthConsumerKey(ConstantValues.TWITTER_CONSUMER_KEY); configurationBuilder.setOAuthConsumerSecret(ConstantValues.TWITTER_CONSUMER_SECRET); configurationBuilder.setUseSSL(true); Configuration configuration =...

Action view intent does not work

Action view Intent for Search widget does not send Intent i am using Toast to show whether intent is sent when user choose item from suggestion in Quick Search Box here is snippet where intent is received in searchable Activity if (Intent.ACTION_VIEW.equals(intent.getAction())){ /* Intent countryIntent = new Intent(this, RecordActivity.class); countryIntent.setData(intent.getData());...

custom arraylist get distinct

is there any way to get the distinct values of a custom arraylist? public class mystatistic extends BaseActivity { public String objectid; public String playerid; public String playername; public String enemyid; public String enemyname; public String question; public mystatistik(String objectid, String playerid, String playername, String enemyid, String enemyname, String question)...

Blank screen on GridView

I'm trying to create a GridView with an array of strings. These are XML, and MainActivity and Adapter, but what I get is a blank screen. I'm change the background, but the result is the same, but clicking on a point on the screen appears to me the toast stating...

BitmapFont class does not have getBound(String) method

Previously I used getBound method for BitmapFont class in libgdx, but now, I am unable to use it. I cannot find the changes in latest version. Any help is appreciated. Thank you...

How to set speaker phone off when the app is killed by the “Recent App drawer”

I implemented an app which has a button speaker, which is manually set "on" by myAudioManager.setSpeakerphoneOn(true) and "off" vice-versa. But the bug is when you close the application while the speaker is on, it forgets the speaker was on. The next time, the speaker remains on and the call is...

Why are shaders and programs stored as integers in OpenGL?

I'm following the "OpenGL Superbible" book and I can't help but notice that when we create a shader and create the program that we attach the shaders to, we store them as GLuint which are unsigned integers. Why are they stored as numbers? What does the value of the number...

.cpp:23: error: cannot convert ‘std::string’ to ‘const char*’ for argument ‘1’ to ‘int atoi(const char*)’

Here a basic code I'm trying to run But I'm having trouble with stoi (it's c++) I keep getting error: ‘stoi’ was not declared in this scope I tried atoi and strtol with this error .cpp:23: error: cannot convert ‘std::string’ to ‘const char*’ for argument ‘1’ to ‘int atoi(const char*)’...

pointer to pointer dynamic array in C++

I've been having bad luck with dynamic pointers when I want to close it. why the application wrote to memory after end of heap buffer? how can I close my array? int main() { . . int **W; W = new int* [n]; for (int i=1; i <= n; i++)...

Add more features to stack container

I am using default features(push, pop, top, empty, size) of stack container of STL. If I want to add more features like access an element from middle of stack. How could I do this? Thanks...

Android programming, draw a rectangle with specific coordinates

I am new to android programming. I am trying to draw a rectangle as in the image below. I have no idea how to do it with Rect(int left, int top, int right, int bottom). Can someone help me with this thanks. ...

How to resolve Out of Memory Error on Bitmap in Android?

I want to set an image in image view,I am retrieving the image path in my first activity and I am passing it via intent as a String to second activity.In the second activity I set the path to an image view,It is working properly , and I need to...

Get element starting with letter from List

I have a list and I want to get the position of the string which starts with specific letter. I am trying this code, but it isn't working. List<String> sp = Arrays.asList(splited); int i2 = sp.indexOf("^w.*$"); ...

Undefined behaviour or may be something with memset

I was trying to save the binary equivalent of a 32 bit number in an array A. For testing my showbits() function , I choosed 8,9 when I came across this thing: I am facing an unreasonable thing in my code when I am placing memset in the function showbits(),I...

android imageView scale

I have an ImageView which is populated from database (the image comes from database). in the database i have images both portrait and landscape!! how can i adjust the imageView to scale it self according to the image width and height. I have tried many ways but no result! any...

Unfortunately, (My app) has stopped. Eclipse Android [duplicate]

This question already has an answer here: What is a Null Pointer Exception, and how do I fix it? 12 answers I'm a beginner in android developing and I'm trying to build a simple app but I'm getting this error in the emulator.(Unfortunately,(App) has unexpectedly stopped). LogCat package...

Dagger 2 Custom Scope for each Fragment

I'm a little confused about how to best use the custom scoping in Dagger 2. I've looked at a couple different articles which seem to suggest two different ways of doing it: MVP Presenters that Survive Configuration Changes Part-2 (Github repo): Uses unique custom scopes for each fragment, e.g. @Hello1Scope...

Getting particular view from expandable listview

In my list view I have an textview in expandable group and I want to open the dialog when textview is clicked to fill the information through edittext and update textview. Problem: how could I get the groupview textview item in my fragment oncreateview() method....

how does android ImageView resize my image?

I have some 100*100 icons and I cannot find better resolution icons so I put them inside drawable folder. The width and height of the image view are set to wrap_content. When the image is shown on a xhdpi screen will the image be scaled to 200*200 automatically? or should...

Is there any way to use a pre-existing database from Xamarin without copying it from Assets?

I have a rather large SQLite database (~20 mb) I need to access from my Android Xamarin-Forms app. Everything online I've read says you can read the database by copying it to the filesystem first. For example, this question. However, won't that mean the large database is duplicated, wasting users'...

Facebook Android API asks for additional permission

I am using v2.3 api here I can login with Facebook login button. Now how can I call additional permission on click? I have looked through answers for this question, but all of them look to be back-dated. Can someone show me the right way of asking for addition permission...

Is there any sdk to log exceptions, events and errors in production app?

I want to catch all the un expected/undesirable events in my app during production. I want something which can send a error log file to server and I can easily read it through a web application. Do you know anything of this sort ?

error: cannot find symbol class AsyncCallWS Android

I'm trying to rewrite the application in this, in Android Studio link, which is written in Eclipse. There are two problems, first problem is there is this line in the project : import com.example.webserviceactivity.R; I couldn't write this one on Android Studio. The second problem is, in this part of...

Android Espresso: Test running failed. No test results Empty test suite. Why?

Can't make my Espresso UI test work. Where's the problem? What result should I get for this simple app to consider that it's working? I have "" for Instrumentation runner in Edit Confirurations. From AndroidManifest.xml: <instrumentation android:name="" android:targetPackage="my.package"/> From build.gradle: defaultConfig { applicationId "my.package" minSdkVersion 18 targetSdkVersion 22 versionCode 1...

Crop does not work for gallery images

I am using the following code to crop images from camera and gallery : private void doCrop() { final ArrayList<CropOption> cropOptions = new ArrayList<CropOption>(); Intent intent = new Intent(""); intent.setType("image/*"); List<ResolveInfo> list = getPackageManager().queryIntentActivities(intent, 0); int size = list.size(); if (size == 0) { Toast.makeText(this, getApplicationContext().getString(R.string.crop_unavailable), Toast.LENGTH_SHORT).show(); // return }...

how to add menu items to action bar in more than 30 activities

I have created an app in android studio that has more than 30 activities .I created menu items in some activities by adding them in individual menu files and they worked fine . But the problem is that it is a real headache to add all the menu items in...

Android Implicit Intent for Viewing a Video File

In my Android app, I have a button that when clicked, launches the external application of my choice to play a video (I gather that this is called an "implicit intent"). Here is the relevant Java code from my onCreate method. Button button = (Button) findViewById(; button.setOnClickListener ( new Button.OnClickListener()...

Android set clickable text to go one fragment to another fragment

I need to do something like this. Suppose I have 2 fragments A and B.There is a text which can be clickable in fragment A and when user click this text , he can go to fragment B. This example helped me to do it but I think it does...

How can I convert an int to a string in C++11 without using to_string or stoi?

I know it sounds stupid, but I'm using MinGW32 on Windows7, and "to_string was not declared in this scope." It's an actual GCC Bug, and I've followed these instructions and they did not work. So, how can I convert an int to a string in C++11 without using to_string or...

Translating a character array into a integer string in C++

I was trying to achieve translating a character array into a integer string and corresponding character to their alphabetical order. For instance: A(a) = 0 , Z(z) = 25. string key_char = argv[1]; string key_num; for (int i = 0; i < key_char.length(); i++){ if (isalpha(key_char[i])){ if (islower(key_char[i])){ key_num[i] =...

Keep HashMap with object data while app is idle - Android

I have a HashMap that contains data relevant to a specific Activity. The problem is that when the app is opened after being idle for some time, the HashMap is empty. I am fetching all the data in the main activity and storing the corresponding objects in a HashMap in...

why is Android app publishing taking several days [on hold]

I have uploaded my app on the store 3 days ago and it status still : PENDING PUBLICATION I have uploaded all the app listing needed : description, screen shots ... and google didn't contact me on E-mail. does anyone had the same case before ???...

Android custom calendar view disable specific dates

i'm new to android developing and started to develop an booking app. There is a calendar view and i want to disable booked dates in that calendar. I found out that disabling feature is not there in android default calendar. so could you please help me to find a good...

Action Bar activity is closed

What is wrong with my code? When I run application on my device/emulator my application is crashed " Unfortunately! Action Bar has stopped" public class Main extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); ActionBar mActionBar = getActionBar(); assert mActionBar != null; mActionBar.setDisplayShowHomeEnabled(false); mActionBar.setDisplayShowTitleEnabled(false); LayoutInflater mInflater =...

Marshal struct in struct from c# to c++

I have the following structures in C# and C++. C++: struct TestA { char* iu; }; struct TestB { int cycle1; int cycle2; }; struct MainStruct { TestA test; TestB test2; }; C#: [StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi, Pack = 1)] internal struct TestA { [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 36)] private string iu; public...

Contexts and callbacks from asynchronous tasks

I've been experiencing this problem on some devices, especially Samsung. I have an activity that has 7 fragments. In most of them, I start an async task for getting some data. I handle the exceptions by creating a handler in onCreateView(). handler = new Handler(new Handler.Callback() { @Override public boolean...

Problems implementing ViewHolder pattern

I'm working on an android app from a book. I'm getting errors : "crimeHolder cannot be resolved" and I can't understand why.. public View getView(int poisition, View convertView , ViewGroup parent) { //If we weren't given a view, inflate one if (convertView == null) { convertView = getActivity().getLayoutInflater().inflate(R.layout.list_item_crime, null); ViewHolder...

Floating Action Button in Xamarin.Forms

I had completed my App's home page in Xamarin.Forms Portable. Now i want to add a Flotation Action Button In my Android Project ! Is there any way to add FAB for Android in my existing home page, which was coded in Xamarin.Forms Portable. OR I want to create a...

Same function with and without template

I am trying to understand a piece of code of C++11. A class contains 2 functions as shown below: class abc { public: void integerA(int x); template<typename typ> void integerA(typ x); }; I am unable to understand benefit of declaring 2 same functions. Why not declare only one template function?...

How can I access the members of a subclass from a superclass with a different constructor?

I have the following class and typedef: class Object { protected: long int id; public: Object(void); ~Object(void) {}; long int get_id(void); }; typedef map<string, Object> obj_map; And then I have its child: class Image: public Object { private: path full_path; int x; int y; img image; public: Image(path p, int...

Get current latitude and longitude android

Requirement: 1.Sometimes(not everytime) I am getting latitude and longitude 0.0. 2.I want to know how to get the location update after user has enabled the gps from the settings. Here is my code public class GPSTracker extends Service implements LocationListener { private final Context mContext; // flag for GPS status...

Set value for Spinner with custom Adapter in Android

I am developing a android application with spinner in a form. The spinner items and spinner values are different. I want to collect all the value from the from including spinner and set a rest api service to web back end. here is the response array. {"Status":true,"errorType":null,"countryList":[{"Code":"US","Name":"United States"},{"Code":"CA","Name":"Canada"},{"Code":"AU","Name":"Australia"},{"Code":"GB","Name":"United Kingdom"}]} I...

Method returning std::vector>

As a continuation of a: Thread, I came across a problem with writing a method of a class which returns: std::vector<std::unique_ptr<Object>> I get compiler errors when such a return type is written. There is some problem with delete operand or something ... Generally, I've wanted to write a method which...

Android String if-statement

I have a if-statement in the start of my app if (ready.equals("yes")){ ... } and later on my code I have ready="yes"; but the if statement is never called, why? The ready="yes"; is called from a background thread, is that why? public void DownloadFromUrl(final String fileName) { //this is the...

Fixed element in android?

I am using a FAB(Floating action button) and a ViewPager that has a list inside a fragment. The ViewPager stops due to the FAB block and each are blocks the ViewPager being on top of the FAB activity_main.xml <LinearLayout xmlns:android="" xmlns:tools="" xmlns:fab="" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:fitsSystemWindows="true">...

dispatch response packet according to packet sequence id

I have a third-part server, and I'm writing a dll interface for it, my clients use my dll to communicate with the server. The protocol uses a long tcp connection, all traffic goes from this tcp connection. There could be sending/receiving multiple packets at the same time, like a send_msg...