mapsme / omim

🗺️ MAPS.ME — Offline OpenStreetMap maps for iOS and Android
Apache License 2.0
4.58k stars 1.15k forks source link

Crash! When import compile 'com.google.guava:guava:20.0' #6790

Open vfa-tuantt opened 7 years ago

vfa-tuantt commented 7 years ago

I'm facing with a big problem. I got mapsme project and then i build and run success application. But when i try to import this library compile 'com.google.guava:guava:20.0' Although build success with no error but app was crashed [Only Android 4.4.2 below ] always without any information. Could you please help me to resolve this issue. Thanks for you support!

This is my log. 08-04 17:50:40.452 1310-1310/? D/StatusBar.NetworkController: refreshViews: Data not connected!! Set no data type icon / Roaming 08-04 17:50:40.542 1724-1724/? I/ActivityManager: Timeline: Activity_launch_request id:com.mapswithme.maps.debug time:18471560

                                              --------- beginning of /dev/log/system

08-04 17:50:40.542 1032-1527/? I/ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.mapswithme.maps.debug/com.mapswithme.maps.SplashActivity} from pid 1724 08-04 17:50:40.662 1032-1527/? D/dalvikvm: GC_FOR_ALLOC freed 1541K, 17% free 44713K/53656K, paused 114ms, total 114ms 08-04 17:50:40.672 313-964/? D/SonySWEffect: PARAM_CA_CHSEP Clear Stereo Off(0x80000001) 08-04 17:50:40.692 313-960/? D/SonySWEffect: Unsupported frame count 240 08-04 17:50:40.692 313-960/? D/audio_hw_primary: select_devices: out_snd_device(35: speaker) in_snd_device(0: ) 08-04 17:50:40.692 313-960/? D/hardware_info: hw_info_append_hw_type : device_name = speaker 08-04 17:50:40.692 313-960/? D/ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 15, path = 0 08-04 17:50:40.692 313-960/? D/ACDB-LOADER: ACDB -> send_adm_topology 08-04 17:50:40.692 313-960/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID 08-04 17:50:40.692 313-960/? D/ACDB-LOADER: ACDB -> send_audtable 08-04 17:50:40.692 313-960/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE 08-04 17:50:40.692 313-960/? D/ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_CAL 08-04 17:50:40.692 313-960/? D/ACDB-LOADER: ACDB -> send_audvoltable 08-04 17:50:40.692 313-960/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE 08-04 17:50:40.692 313-960/? D/ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_VOL_CAL 08-04 17:50:40.692 313-960/? D/ACDB-LOADER: ACDB -> send_afe_cal 08-04 17:50:40.692 313-960/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE 08-04 17:50:40.692 313-960/? D/ACDB-LOADER: ACDB -> AUDIO_SET_AFE_CAL 08-04 17:50:40.692 1974-1974/? D/dalvikvm: Late-enabling CheckJNI 08-04 17:50:40.692 1032-1722/? I/ActivityManager: Start proc com.mapswithme.maps.debug for activity com.mapswithme.maps.debug/com.mapswithme.maps.SplashActivity: pid=1974 uid=11502 gids={51502, 1028, 1015, 3003} 08-04 17:50:40.702 313-960/? D/sony_audio_effect: sony_update_effect_param: Same out device. No need to update 08-04 17:50:40.702 313-960/? D/effect_intf: add_active_usecase: id 1 08-04 17:50:40.702 313-960/? D/effect_intf: add_active_usecase: Add effect list, usecase ID 1 08-04 17:50:40.702 313-960/? I/effect_intf: store_effect_param: call 08-04 17:50:40.702 313-960/? D/sony_audio_effect: sony_get_effect_param: update flag = 0x007f, 08-04 17:50:40.702 313-960/? D/sony_audio_effect: sony_get_effect_param: count = 4 08-04 17:50:40.702 313-960/? I/alsa_effect: snd_effect_store: Create new effect info 08-04 17:50:40.702 313-960/? D/alsa_effect: snd_effect_info_create_l : Copy SLIMBUS_0_RX xLOUD param. param[0] = 0 08-04 17:50:40.702 313-960/? I/alsa_effect: snd_effect_store: Create new effect info 08-04 17:50:40.702 313-960/? D/alsa_effect: snd_effect_info_create_l : Copy SLIMBUS_0_RX ClearPhase param. param[0] = 0 08-04 17:50:40.742 1974-1974/com.mapswithme.maps.debug D/dalvikvm: Trying to load lib /data/app-lib/com.mapswithme.maps.debug-2/libmapswithme.so 0x431d14d8 08-04 17:50:40.742 1032-1720/? D/QcConnectivityService: getProxy: mDefaultProxy return 08-04 17:50:40.772 1974-1974/com.mapswithme.maps.debug D/dalvikvm: Added shared lib /data/app-lib/com.mapswithme.maps.debug-2/libmapswithme.so 0x431d14d8 08-04 17:50:40.782 1974-1974/com.mapswithme.maps.debug W/dalvikvm: JNI WARNING: received null jclass (GetStaticMethodID) 08-04 17:50:40.782 1974-1974/com.mapswithme.maps.debug W/dalvikvm: in Ljava/lang/Runtime;.nativeLoad:(Ljava/lang/String;Ljava/lang/ClassLoader;Ljava/lang/String;)Ljava/lang/String; (GetStaticMethodID) 08-04 17:50:40.782 1974-1974/com.mapswithme.maps.debug I/dalvikvm: "main" prio=5 tid=1 NATIVE 08-04 17:50:40.782 1974-1974/com.mapswithme.maps.debug I/dalvikvm: | group="main" sCount=0 dsCount=0 obj=0x419cce88 self=0x419bb860 08-04 17:50:40.782 1974-1974/com.mapswithme.maps.debug I/dalvikvm: | sysTid=1974 nice=0 sched=0/0 cgrp=apps handle=1074708820 08-04 17:50:40.782 1974-1974/com.mapswithme.maps.debug I/dalvikvm: | state=R schedstat=( 44364952 20810831 133 ) utm=2 stm=2 core=2 08-04 17:50:40.792 1974-1974/com.mapswithme.maps.debug A/libc: Fatal signal 11 (SIGSEGV) at 0x0000001f (code=1), thread 1974 (thme.maps.debug) 08-04 17:50:40.892 1118-1118/? I/DEBUG: 08-04 17:50:40.892 1118-1118/? I/DEBUG: UUID: d613abb6-bbd6-4dee-a7f9-1d28ca619199 08-04 17:50:40.892 1118-1118/? I/DEBUG: Build fingerprint: 'docomo/SO-04F/SO-04F:4.4.2/14.3.B.0.310/yb5_jg:user/release-keys' 08-04 17:50:40.892 1118-1118/? I/DEBUG: Revision: '0' 08-04 17:50:40.892 1118-1118/? I/DEBUG: pid: 1974, tid: 1974, name: thme.maps.debug >>> com.mapswithme.maps.debug <<< 08-04 17:50:40.892 1118-1118/? I/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0000001f 08-04 17:50:40.972 1118-1118/? I/DEBUG: r0 bea192b0 r1 ffffffff r2 00000001 r3 76765dcc 08-04 17:50:40.972 1118-1118/? I/DEBUG: r4 bea19258 r5 bea192b0 r6 00000000 r7 bea19200 08-04 17:50:40.972 1118-1118/? I/DEBUG: r8 00000073 r9 bea195cc sl 000007b6 fp 415eb609 08-04 17:50:40.972 1118-1118/? I/DEBUG: ip 774a41cc sp bea19200 lr 7725081f pc 772509f8 cpsr 800f0030 08-04 17:50:40.972 1118-1118/? I/DEBUG: d0 0000000000000000 d1 0000000000000000 08-04 17:50:40.972 1118-1118/? I/DEBUG: d2 302070782d722030 d3 2030303030303030 08-04 17:50:40.972 1118-1118/? I/DEBUG: d4 646f6874654d2e74 d5 28656b6f766e692e 08-04 17:50:40.972 1118-1118/? I/DEBUG: d6 6a2e646f6874654d d7 293531353a617661 08-04 17:50:40.972 1118-1118/? I/DEBUG: d8 0000000000000000 d9 0000000000000000 08-04 17:50:40.972 1118-1118/? I/DEBUG: d10 0000000000000000 d11 0000000000000000 08-04 17:50:40.972 1118-1118/? I/DEBUG: d12 0000000000000000 d13 0000000000000000 08-04 17:50:40.972 1118-1118/? I/DEBUG: d14 0000000000000000 d15 0000000000000000 08-04 17:50:40.972 1118-1118/? I/DEBUG: d16 20302030303a3030 d17 2020202020202020 08-04 17:50:40.972 1118-1118/? I/DEBUG: d18 3020702d77722030 d19 2030303064636430 08-04 17:50:40.972 1118-1118/? I/DEBUG: d20 38322039313a3362 d21 2020202039393334 08-04 17:50:40.972 1118-1118/? I/DEBUG: d22 612f617461642f20 d23 632f62696c2d7070 08-04 17:50:40.972 1118-1118/? I/DEBUG: d24 3f56c16c16c76a94 d25 3f810dd0c9346eee 08-04 17:50:40.972 1118-1118/? I/DEBUG: d26 3fa555555555551c d27 3fc54f3e32ffab55 08-04 17:50:40.972 1118-1118/? I/DEBUG: d28 3fe0000000000000 d29 0000000000000001 08-04 17:50:40.972 1118-1118/? I/DEBUG: d30 fff0000000000000 d31 ffffffff00000000 08-04 17:50:40.972 1118-1118/? I/DEBUG: scr 88000010 08-04 17:50:40.972 1118-1118/? I/DEBUG: backtrace: 08-04 17:50:40.972 1118-1118/? I/DEBUG: #00 pc 00b789f8 /data/app-lib/com.mapswithme.maps.debug-2/libmapswithme.so 08-04 17:50:40.972 1118-1118/? I/DEBUG: #01 pc 00b7881b /data/app-lib/com.mapswithme.maps.debug-2/libmapswithme.so 08-04 17:50:40.972 1118-1118/? I/DEBUG: #02 pc 00b6fcbb /data/app-lib/com.mapswithme.maps.debug-2/libmapswithme.so (gxx_personality_v0+330) 08-04 17:50:40.972 1118-1118/? I/DEBUG: #03 pc 0003c744 /system/lib/libc.so (gnu_Unwind_Backtrace+152) 08-04 17:50:40.972 1118-1118/? I/DEBUG: #04 pc 0003cc58 /system/lib/libc.so (_Unwind_Backtrace+20) 08-04 17:50:40.972 1118-1118/? I/DEBUG: stack: 08-04 17:50:40.972 1118-1118/? I/DEBUG: bea191c0 bea19c08 [stack] 08-04 17:50:40.972 1118-1118/? I/DEBUG: bea191c4 00000008
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea191c8 bea192b0 [stack] 08-04 17:50:40.972 1118-1118/? I/DEBUG: bea191cc bea19224 [stack] 08-04 17:50:40.972 1118-1118/? I/DEBUG: bea191d0 00000000
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea191d4 bea191ec [stack] 08-04 17:50:40.972 1118-1118/? I/DEBUG: bea191d8 00000ff0
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea191dc 4013f07c /system/lib/libc.so (gnu_unwind_execute+908) 08-04 17:50:40.972 1118-1118/? I/DEBUG: bea191e0 bea191ec [stack] 08-04 17:50:40.972 1118-1118/? I/DEBUG: bea191e4 bea19224 [stack] 08-04 17:50:40.972 1118-1118/? I/DEBUG: bea191e8 00000002
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea191ec 76783b99 /data/app-lib/com.mapswithme.maps.debug-2/libmapswithme.so (jni::GetStaticMethodID(_JNIEnv, _jclass, char const, char const)+60) 08-04 17:50:40.972 1118-1118/? I/DEBUG: bea191f0 bea19258 [stack] 08-04 17:50:40.972 1118-1118/? I/DEBUG: bea191f4 772adfd8 /data/app-lib/com.mapswithme.maps.debug-2/libmapswithme.so 08-04 17:50:40.972 1118-1118/? I/DEBUG: bea191f8 bea192b0 [stack] 08-04 17:50:40.972 1118-1118/? I/DEBUG: bea191fc 00000000
08-04 17:50:40.972 1118-1118/? I/DEBUG: #00 bea19200 bea19250 [stack] 08-04 17:50:40.972 1118-1118/? I/DEBUG: ........ ........ 08-04 17:50:40.972 1118-1118/? I/DEBUG: #01 bea19200 bea19250 [stack] 08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19204 77247cbf /data/app-lib/com.mapswithme.maps.debug-2/libmapswithme.so (
gxx_personality_v0+334) 08-04 17:50:40.972 1118-1118/? I/DEBUG: #02 bea19208 00000001
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea1920c 4013e644 /system/lib/libc.so 08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19210 77252d14 /data/app-lib/com.mapswithme.maps.debug-2/libmapswithme.so 08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19214 000000b2
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19218 76783b97 /data/app-lib/com.mapswithme.maps.debug-2/libmapswithme.so (jni::GetStaticMethodID(_JNIEnv, _jclass, char const, char const)+58) 08-04 17:50:40.972 1118-1118/? I/DEBUG: bea1921c bea19258 [stack] 08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19220 76783b97 /data/app-lib/com.mapswithme.maps.debug-2/libmapswithme.so (jni::GetStaticMethodID(_JNIEnv, _jclass, char const, char const)+58) 08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19224 bea1954c [stack] 08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19228 bea19560 [stack] 08-04 17:50:40.972 1118-1118/? I/DEBUG: bea1922c 76783b98 /data/app-lib/com.mapswithme.maps.debug-2/libmapswithme.so (jni::GetStaticMethodID(_JNIEnv, _jclass, char const, char const)+59) 08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19230 bea1954c [stack] 08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19234 c3cae3f1
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19238 00000000
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea1923c bea195cc [stack] 08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19240 000007b6
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19244 00000008
08-04 17:50:40.972 1118-1118/? I/DEBUG: ........ ........ 08-04 17:50:40.972 1118-1118/? I/DEBUG: memory near r0: 08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19290 bea19a48 401282e3 bea199a4 bea19350
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea192a0 76783b5c 772adf7c 00000000 bea19a2c
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea192b0 ffffffff 40192279 bea1954c 415ec59e
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea192c0 419ba2c0 00000000 419ba2c0 c3cae3f1
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea192d0 bea19fc8 76782485 00000000 41608c38
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea192e0 72af4924 bea19258 bea19f38 76783b99
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea192f0 76783b99 416034ac 00000011 00000064
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19300 00000000 bea19cc8 415f0dda 00000004
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19310 00000019 00000000 00000000 415f0dc8
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19320 00000000 00000000 40150394 4014481b
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19330 773adb26 00a19cec bea19cec 00000000
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19340 bea19cec bea19a28 bea19cf8 bea19cf8
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19350 bea1938c 00000000 00000000 bea19d04
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19360 bea19d04 bea19d04 bea19d04 773adb46
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19370 bea19d10 bea19d10 bea19d10 bea19d10
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19380 773adb55 bea19d1c bea19d1c 415f0dda
08-04 17:50:40.972 1118-1118/? I/DEBUG: memory near r3: 08-04 17:50:40.972 1118-1118/? I/DEBUG: 76765dac e28cca3e e5bcf410 e28fc60d e28cca3e
08-04 17:50:40.972 1118-1118/? I/DEBUG: 76765dbc e5bcf408 e28fc60d e28cca3e e5bcf400
08-04 17:50:40.972 1118-1118/? I/DEBUG: 76765dcc e28fc60d e28cca3e e5bcf3f8 e28fc60d
08-04 17:50:40.972 1118-1118/? I/DEBUG: 76765ddc e28cca3e e5bcf3f0 e28fc60d e28cca3e
08-04 17:50:40.972 1118-1118/? I/DEBUG: 76765dec e5bcf3e8 e28fc60d e28cca3e e5bcf3e0
08-04 17:50:40.972 1118-1118/? I/DEBUG: 76765dfc e28fc60d e28cca3e e5bcf3d8 e28fc60d
08-04 17:50:40.972 1118-1118/? I/DEBUG: 76765e0c e28cca3e e5bcf3d0 e28fc60d e28cca3e
08-04 17:50:40.972 1118-1118/? I/DEBUG: 76765e1c e5bcf3c8 e28fc60d e28cca3e e5bcf3c0
08-04 17:50:40.972 1118-1118/? I/DEBUG: 76765e2c e28fc60d e28cca3e e5bcf3b8 e28fc60d
08-04 17:50:40.972 1118-1118/? I/DEBUG: 76765e3c e28cca3e e5bcf3b0 e28fc60d e28cca3e
08-04 17:50:40.972 1118-1118/? I/DEBUG: 76765e4c e5bcf3a8 e28fc60d e28cca3e e5bcf3a0
08-04 17:50:40.972 1118-1118/? I/DEBUG: 76765e5c e28fc60d e28cca3e e5bcf398 e28fc60d
08-04 17:50:40.972 1118-1118/? I/DEBUG: 76765e6c e28cca3e e5bcf390 e28fc60d e28cca3e
08-04 17:50:40.972 1118-1118/? I/DEBUG: 76765e7c e5bcf388 e28fc60d e28cca3e e5bcf380
08-04 17:50:40.972 1118-1118/? I/DEBUG: 76765e8c e28fc60d e28cca3e e5bcf378 e28fc60d
08-04 17:50:40.972 1118-1118/? I/DEBUG: 76765e9c e28cca3e e5bcf370 e28fc60d e28cca3e
08-04 17:50:40.972 1118-1118/? I/DEBUG: memory near r4: 08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19238 00000000 bea195cc 000007b6 00000008
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19248 40192279 bea1954c 00000020 4013e748
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19258 00000001 00000073 00000000 415f25de
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19268 76765dcc bea1957e 0000000a 00013000
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19278 0000a000 4013f644 00000013 00000000
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19288 0000000a 00000013 bea19a48 401282e3
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19298 bea199a4 bea19350 76783b5c 772adf7c
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea192a8 00000000 bea19a2c ffffffff 40192279
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea192b8 bea1954c 415ec59e 419ba2c0 00000000
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea192c8 419ba2c0 c3cae3f1 bea19fc8 76782485
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea192d8 00000000 41608c38 72af4924 bea19258
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea192e8 bea19f38 76783b99 76783b99 416034ac
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea192f8 00000011 00000064 00000000 bea19cc8
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19308 415f0dda 00000004 00000019 00000000
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19318 00000000 415f0dc8 00000000 00000000
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19328 40150394 4014481b 773adb26 00a19cec
08-04 17:50:40.972 1118-1118/? I/DEBUG: memory near r5: 08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19290 bea19a48 401282e3 bea199a4 bea19350
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea192a0 76783b5c 772adf7c 00000000 bea19a2c
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea192b0 ffffffff 40192279 bea1954c 415ec59e
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea192c0 419ba2c0 00000000 419ba2c0 c3cae3f1
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea192d0 bea19fc8 76782485 00000000 41608c38
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea192e0 72af4924 bea19258 bea19f38 76783b99
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea192f0 76783b99 416034ac 00000011 00000064
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19300 00000000 bea19cc8 415f0dda 00000004
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19310 00000019 00000000 00000000 415f0dc8
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19320 00000000 00000000 40150394 4014481b
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19330 773adb26 00a19cec bea19cec 00000000
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19340 bea19cec bea19a28 bea19cf8 bea19cf8
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19350 bea1938c 00000000 00000000 bea19d04
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19360 bea19d04 bea19d04 bea19d04 773adb46
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19370 bea19d10 bea19d10 bea19d10 bea19d10
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19380 773adb55 bea19d1c bea19d1c 415f0dda
08-04 17:50:40.972 1118-1118/? I/DEBUG: memory near r7: 08-04 17:50:40.972 1118-1118/? I/DEBUG: bea191e0 bea191ec bea19224 00000002 76783b99
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea191f0 bea19258 772adfd8 bea192b0 00000000
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19200 bea19250 77247cbf 00000001 4013e644
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19210 77252d14 000000b2 76783b97 bea19258
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19220 76783b97 bea1954c bea19560 76783b98
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19230 bea1954c c3cae3f1 00000000 bea195cc
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19240 000007b6 00000008 40192279 bea1954c
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19250 00000020 4013e748 00000001 00000073
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19260 00000000 415f25de 76765dcc bea1957e
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19270 0000000a 00013000 0000a000 4013f644
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19280 00000013 00000000 0000000a 00000013
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea19290 bea19a48 401282e3 bea199a4 bea19350
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea192a0 76783b5c 772adf7c 00000000 bea19a2c
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea192b0 ffffffff 40192279 bea1954c 415ec59e
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea192c0 419ba2c0 00000000 419ba2c0 c3cae3f1
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea192d0 bea19fc8 76782485 00000000 41608c38
08-04 17:50:40.972 1118-1118/? I/DEBUG: memory near r9: 08-04 17:50:40.972 1118-1118/? I/DEBUG: bea195ac 419cce88 40150394 71aec520 00000000
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea195bc 415ae50b bea1a1a8 bea19c8c 0000002c
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea195cc 4019232e 00000000 00000000 415ae506
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea195dc 00000000 00000000 415a24ec 00000000
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea195ec 00000000 415a255a 00000000 00000000
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea195fc 4158665c 00000000 00000000 41586944
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea1960c 00000000 00000000 41587964 00000000
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea1961c 00000000 4158bcea 00000000 00000000
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea1962c 76783cdc 00000000 00000000 76783b94
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea1963c 00000000 00000000 772415d1 774aab04
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea1964c c3cae3f1 00000000 76f1cf27 774aab04
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea1965c 774aab04 0000000b 773adcbf 00000001
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea1966c 716be460 774aab0c 716be328 0000000b
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea1967c 774aab08 0000000b 774aab04 bea19cdc
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea1968c 00000000 bea19ca4 bea1a131 bea1a131
08-04 17:50:40.972 1118-1118/? I/DEBUG: bea1969c bea1a130 716c27a9 716c27a9 716c27a8
08-04 17:50:40.972 1118-1118/? I/DEBUG: memory near fp: 08-04 17:50:40.972 1118-1118/? I/DEBUG: 415eb5e8 20746867 61636f6c 0a796c6c 3c000a00
08-04 17:50:40.972 1118-1118/? I/DEBUG: 415eb5f8 003e6425 7823253c 253c003e 3e646c6c
08-04 17:50:40.972 1118-1118/? I/DEBUG: 415eb608 61640000 6b69766c 2e6d762e 6f6c6c61
08-04 17:50:40.972 1118-1118/? I/DEBUG: 415eb618 61725463 72656b63 0078614d 766c6164
08-04 17:50:40.972 1118-1118/? I/DEBUG: 415eb628 6d766b69 6e674900 6e69726f 73252067
08-04 17:50:40.972 1118-1118/? I/DEBUG: 415eb638 73252720 2d2d2027 6e69202d 696c6176
08-04 17:50:40.972 1118-1118/? I/DEBUG: 415eb648 67490064 69726f6e 2520676e 25272073
08-04 17:50:40.972 1118-1118/? I/DEBUG: 415eb658 2d202773 6e202d2d 7020746f 7265776f
08-04 17:50:40.972 1118-1118/? I/DEBUG: 415eb668 20666f20 006f7774 62616e45 676e696c
08-04 17:50:40.972 1118-1118/? I/DEBUG: 415eb678 6c6c6120 7420636f 6b636172 28207265
08-04 17:50:40.972 1118-1118/? I/DEBUG: 415eb688 65206425 6972746e 202c7365 66206425
08-04 17:50:40.972 1118-1118/? I/DEBUG: 415eb698 656d6172 2d2d2073 6425203e 74796220
08-04 17:50:40.972 1118-1118/? I/DEBUG: 415eb6a8 00297365 6f6c6c61 72742063 656b6361
08-04 17:50:40.972 1118-1118/? I/DEBUG: 415eb6b8 6e203a72 6874206f 64616572 69614600
08-04 17:50:40.972 1118-1118/? I/DEBUG: 415eb6c8 2064656c 6f6c6c61 69746163 7020676e
08-04 17:50:40.972 1118-1118/? I/DEBUG: 415eb6d8 746e696f 73207265 00737465 73616c63
08-04 17:50:40.972 1118-1118/? I/DEBUG: memory near ip: 08-04 17:50:40.972 1118-1118/? I/DEBUG: 774a41ac 76788915 76788931 767825c1 76782775
08-04 17:50:40.972 1118-1118/? I/DEBUG: 774a41bc 7724707d 772470d9 772470a5 401140b5
08-04 17:50:40.972 1118-1118/? I/DEBUG: 774a41cc 77247b71 767835cd 7678297d 77241631
08-04 17:50:40.972 1118-1118/? I/DEBUG: 774a41dc 7724851d 76783101 7678312b 76783155
08-04 17:50:40.972 1118-1118/? I/DEBUG: 774a41ec 767838ed 76783b35 767857fb 76784e15
08-04 17:50:40.972 1118-1118/? I/DEBUG: 774a41fc 76786cc1 76786c77 76783ce9 76784075
08-04 17:50:40.972 1118-1118/? I/DEBUG: 774a420c 767840bd 767849dd 76784be1 76784c05
08-04 17:50:40.972 1118-1118/? I/DEBUG: 774a421c 772415b5 76784c79 77247211 76787923
08-04 17:50:40.972 1118-1118/? I/DEBUG: 774a422c 77247379 77247285 772476dd 76783b5d
08-04 17:50:40.972 1118-1118/? I/DEBUG: 774a423c 772477c5 7724786d 76785615 7678563f
08-04 17:50:40.972 1118-1118/? I/DEBUG: 774a424c 767846cf 7678564f 76787ac1 76785845
08-04 17:50:40.972 1118-1118/? I/DEBUG: 774a425c 76785d59 76784305 76785fb1 7678615d
08-04 17:50:40.972 1118-1118/? I/DEBUG: 774a426c 772418ad 4013c64d 77247a39 77241905
08-04 17:50:40.972 1118-1118/? I/DEBUG: 774a427c 4012547d 4013c651 7678780d 767878db
08-04 17:50:40.972 1118-1118/? I/DEBUG: 774a428c 76784a53 77240dc1 76787957 76787971
08-04 17:50:40.972 1118-1118/? I/DEBUG: 774a429c 7678798f 767879ed 76787a4d 76782b5d
08-04 17:50:40.972 1118-1118/? I/DEBUG: memory near sp: 08-04 17:50:40.982 1118-1118/? I/DEBUG: bea191e0 bea191ec bea19224 00000002 76783b99
08-04 17:50:40.982 1118-1118/? I/DEBUG: bea191f0 bea19258 772adfd8 bea192b0 00000000
08-04 17:50:40.982 1118-1118/? I/DEBUG: bea19200 bea19250 77247cbf 00000001 4013e644
08-04 17:50:40.982 1118-1118/? I/DEBUG: bea19210 77252d14 000000b2 76783b97 bea19258
08-04 17:50:40.982 1118-1118/? I/DEBUG: bea19220 76783b97 bea1954c bea19560 76783b98
08-04 17:50:40.982 1118-1118/? I/DEBUG: bea19230 bea1954c c3cae3f1 00000000 bea195cc
08-04 17:50:40.982 1118-1118/? I/DEBUG: bea19240 000007b6 00000008 40192279 bea1954c
08-04 17:50:40.982 1118-1118/? I/DEBUG: bea19250 00000020 4013e748 00000001 00000073
08-04 17:50:40.982 1118-1118/? I/DEBUG: bea19260 00000000 415f25de 76765dcc bea1957e
08-04 17:50:40.982 1118-1118/? I/DEBUG: bea19270 0000000a 00013000 0000a000 4013f644
08-04 17:50:40.982 1118-1118/? I/DEBUG: bea19280 00000013 00000000 0000000a 00000013
08-04 17:50:40.982 1118-1118/? I/DEBUG: bea19290 bea19a48 401282e3 bea199a4 bea19350
08-04 17:50:40.982 1118-1118/? I/DEBUG: bea192a0 76783b5c 772adf7c 00000000 bea19a2c
08-04 17:50:40.982 1118-1118/? I/DEBUG: bea192b0 ffffffff 40192279 bea1954c 415ec59e
08-04 17:50:40.982 1118-1118/? I/DEBUG: bea192c0 419ba2c0 00000000 419ba2c0 c3cae3f1
08-04 17:50:40.982 1118-1118/? I/DEBUG: bea192d0 bea19fc8 76782485 00000000 41608c38
08-04 17:50:40.982 1118-1118/? I/DEBUG: code around pc: 08-04 17:50:40.982 1118-1118/? I/DEBUG: 772509d8 4643462a c01cf8d0 47e04620 e0032000
08-04 17:50:40.982 1118-1118/? I/DEBUG: 772509e8 6072f24e 70fff6cf 8b04f85d 6801bdf0
08-04 17:50:40.982 1118-1118/? I/DEBUG: 772509f8 47086a09 af02b5d0 6801460c 46216a4a
08-04 17:50:40.982 1118-1118/? I/DEBUG: 77250a08 68614790 29002000 f24ebf04 f6cf606b
08-04 17:50:40.982 1118-1118/? I/DEBUG: 77250a18 bdd070ff 466fb580 6a896801 f24e4788
08-04 17:50:40.982 1118-1118/? I/DEBUG: 77250a28 f6cf6074 bd8070ff 6bc96801 47704708
08-04 17:50:40.982 1118-1118/? I/DEBUG: 77250a38 f0214770 22000003 f04f28c0 f1a10000
08-04 17:50:40.982 1118-1118/? I/DEBUG: 77250a48 bf080110 f1112001 bf880f13 43102201
08-04 17:50:40.982 1118-1118/? I/DEBUG: 77250a58 00004770 af02b5b0 460db082 2d0c4604
08-04 17:50:40.982 1118-1118/? I/DEBUG: 77250a68 2d0fdd06 2d0ed008 2d0dd00c e00cd007
08-04 17:50:40.982 1118-1118/? I/DEBUG: 77250a78 d0041ca8 d1081c68 0044f104 f104e01d
08-04 17:50:40.982 1118-1118/? I/DEBUG: 77250a88 e01a003c 0040f104 2d0ce017 eb04d803
08-04 17:50:40.982 1118-1118/? I/DEBUG: 77250a98 30080085 f025e011 28c00003 f894d110
08-04 17:50:40.982 1118-1118/? I/DEBUG: 77250aa8 b930004c f8842001 f504004c f7ff70ec
08-04 17:50:40.982 1118-1118/? I/DEBUG: 77250ab8 eb04eef4 f5a00085 68007094 bdb0b002
08-04 17:50:40.982 1118-1118/? I/DEBUG: 77250ac8 4a0e480d 490a4478 447a4b0a 44796800
08-04 17:50:40.982 1118-1118/? I/DEBUG: code around lr: 08-04 17:50:40.982 1118-1118/? I/DEBUG: 772507fc bf00cae2 00252b1c 00252b06 688a4601
08-04 17:50:40.982 1118-1118/? I/DEBUG: 7725080c 2001b10a 47704710 466fb580 f0004608
08-04 17:50:40.982 1118-1118/? I/DEBUG: 7725081c 2109f8ec bf082801 46082100 0000bd80
08-04 17:50:40.982 1118-1118/? I/DEBUG: 7725082c e8801fff e580d034 e580e038 e580e03c
08-04 17:50:40.982 1118-1118/? I/DEBUG: 7725083c e3a00000 e12fff1e ec800b20 e12fff1e
08-04 17:50:40.982 1118-1118/? I/DEBUG: 7725084c ec800b20 e12fff1e ecc00b20 e12fff1e
08-04 17:50:40.982 1118-1118/? I/DEBUG: 7725085c ece00102 ece01102 ece02102 ece03102
08-04 17:50:40.982 1118-1118/? I/DEBUG: 7725086c ece04102 ece05102 ece06102 ece07102
08-04 17:50:40.982 1118-1118/? I/DEBUG: 7725087c ece08102 ece09102 ece0a102 ece0b102
08-04 17:50:40.982 1118-1118/? I/DEBUG: 7725088c ece0c102 ece0d102 ece0e102 ece0f102
08-04 17:50:40.982 1118-1118/? I/DEBUG: 7725089c e12fff1e fca08101 fca09101 fca0a101
08-04 17:50:40.982 1118-1118/? I/DEBUG: 772508ac fca0b101 e12fff1e af02b5d0 46044a0f
08-04 17:50:40.982 1118-1118/? I/DEBUG: 772508bc 2300480d f884447a 4478304c 300864a3
08-04 17:50:40.982 1118-1118/? I/DEBUG: 772508cc 0200e9c4 0008f104 f5152240 f104cb70
08-04 17:50:40.982 1118-1118/? I/DEBUG: 772508dc f44f0050 f51671e1 4620caea f0002100
08-04 17:50:40.982 1118-1118/? I/DEBUG: 772508ec 2000fa33 bf00bdd0 0025258a 0025e058
08-04 17:50:41.052 1032-1091/? I/BootReceiver: Copying /data/tombstones/tombstone_02 to DropBox (SYSTEM_TOMBSTONE) 08-04 17:50:41.052 1032-1996/? W/ActivityManager: Force finishing activity com.mapswithme.maps.debug/com.mapswithme.maps.SplashActivity 08-04 17:50:41.092 328-328/? D/Zygote: Process 1974 terminated by signal (11) 08-04 17:50:41.352 1032-1996/? I/WindowManager: Screenshot max retries 4 of Token{444dfe30 ActivityRecord{4324e9f0 u0 com.mapswithme.maps.debug/com.mapswithme.maps.SplashActivity t86 f}} appWin=Window{43235758 u0 Starting com.mapswithme.maps.debug} drawState=4 08-04 17:50:41.352 1032-1996/? W/WindowManager: Screenshot failure taking screenshot for (720x1280) to layer 21010 08-04 17:50:41.352 1032-1996/? W/ActivityManager: Exception thrown during pause android.os.DeadObjectException at android.os.BinderProxy.transact(Native Method) at android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:665) at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:766) at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:2479) at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:2353) at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:2063) at com.android.server.am.ActivityManagerService.handleAppCrashLocked(ActivityManagerService.java:9632) at com.android.server.am.ActivityManagerService.makeAppCrashingLocked(ActivityManagerService.java:9525) at com.android.server.am.ActivityManagerService.crashApplication(ActivityManagerService.java:10224) at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:9721) at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86) 08-04 17:50:41.362 1032-4777/? I/ActivityManager: Process com.mapswithme.maps.debug (pid 1974) has died. 08-04 17:50:41.372 1724-1724/? D/CustomizationProcess: dismissCustomizationDialog:true 08-04 17:50:41.442 1119-2024/? I/CrashMonitor: CrashMonitorServiceBroadcastReceiver: Forwarding intent: android.intent.action.DROPBOX_ENTRY_ADDED tag: SYSTEM_TOMBSTONE 08-04 17:50:41.452 1119-1119/? I/CrashMonitor: CrashMonitorService: Service started... 08-04 17:50:41.472 1310-1310/? D/StatusBar.NetworkController: refreshViews: Data not connected!! Set no data type icon / Roaming 08-04 17:50:41.602 1032-1070/? I/ActivityManager: Timeline: Activity_windows_visible id: ActivityRecord{442a0580 u0 com.sonyericsson.home/com.sonymobile.home.HomeActivity t1} time:18472624 08-04 17:50:41.962 1119-2025/? I/CrashMonitor: CrashMonitorService: action: android.intent.action.DROPBOX_ENTRY_ADDED 08-04 17:50:42.062 176-176/? I/tad: MiscTA Unit 10010: 08-04 17:50:42.062 176-176/? I/tad: WRITTEN (Size 10) 08-04 17:50:42.072 1119-1123/? D/dalvikvm: GC_CONCURRENT freed 7799K, 25% free 24634K/32784K, paused 13ms+2ms, total 35ms 08-04 17:50:42.102 176-176/? I/tad: Actual erase/write to flash done (count 149, time 1501836642). 08-04 17:50:42.102 176-176/? I/tad: MiscTA: Write of unit 10010 completed - OK 08-04 17:50:42.102 176-176/? I/tad: MiscTA Unit 10005: 08-04 17:50:42.102 176-176/? I/tad: WRITTEN (Size 11329) 08-04 17:50:42.142 176-176/? I/tad: Actual erase/write to flash done (count 150, time 1501836642). 08-04 17:50:42.142 1119-2056/? I/CrashMonitor: MiscTaStorer: crash data successfully written into MiscTa 08-04 17:50:42.142 176-176/? I/tad: MiscTA: Write of unit 10005 completed - OK 08-04 17:50:42.152 1119-1119/? I/CrashMonitor: CrashMonitorService: Service stopped... 08-04 17:50:42.462 1310-1310/? D/StatusBar.NetworkController: refreshViews: Data not connected!! Set no data type icon / Roaming 08-04 17:50:43.112 1724-1724/? I/ActivityManager: Timeline: Activity_idle id: android.os.BinderProxy@431ca9b0 time:18474138 08-04 17:50:43.472 1310-1310/? D/StatusBar.NetworkController: refreshViews: Data not connected!! Set no data type icon / Roaming 08-04 17:50:43.812 313-962/? D/effect_intf: remove_active_usecase: Remove effect handle, usecase ID 1 08-04 17:50:43.872 313-962/? D/hardware_info: hw_info_append_hw_type : device_name = speaker `

alexzatsepin commented 7 years ago

@vfa-tuantt you get a native crash (C++). So, firstly you need to "deobfuscate" it using the ndk-stack command.

ndk-stack -sym ob/local/<arm or x86, depending on yours architecture> -dumb

Extracted the native crash from your log above and put to the file and do ndk-stack command please. After that I will be able to help you.

vfa-tuantt commented 7 years ago

Hi @alexzatsepin ! Thanks for your reply. I so happy about that. This is Crash dump log. Do you know any information from this log? I don't know why app is crashed (FW: 4.4.2) although app can run in device 5.0 above.

** Crash dump: ** Build fingerprint: 'docomo/SO-04F/SO-04F:4.4.2/14.3.B.0.310/yb5_jg:user/release-keys' pid: 12677, tid: 12677, name: thme.maps.debug >>> com.mapswithme.maps.debug <<< signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0000001f Stack frame #00 pc 00b789f8 /data/app-lib/com.mapswithme.maps.debug-2/libmapswithme.so: Routine unw_step at /Volumes/Android/buildbot/src/android/ndk-r15-release/external/libcxx/../../external/libunwind_llvm/src/libunwind.cpp:229 Stack frame #01 pc 00b7881b /data/app-lib/com.mapswithme.maps.debug-2/libmapswithme.so: Routine gnu_unwind_frame at /Volumes/Android/buildbot/src/android/ndk-r15-release/external/libcxx/../../external/libunwind_llvm/src/Unwind-EHABI.cpp:1004 Stack frame #02 pc 00b6fcbb /data/app-lib/com.mapswithme.maps.debug-2/libmapswithme.so (gxx_personality_v0+330): Routine cxxabiv1::continue_unwind(_Unwind_Control_Block, _Unwind_Context) at /Volumes/Android/buildbot/src/android/ndk-r15-release/external/libcxx/../../external/libcxxabi/src/cxa_personality.cpp:1038 Stack frame #03 pc 0003c744 /system/lib/libc.so (gnu_Unwind_Backtrace+152) Stack frame #04 pc 0003cc58 /system/lib/libc.so (_Unwind_Backtrace+20)

vfa-tuantt commented 7 years ago

@alexzatsepin Hi, i run application on simulator and it shown some information. This log not appear on real device. Hope your reply (bow)

** Crash dump: ** Build fingerprint: 'generic/vbox86p/vbox86p:4.3/JLS36G/eng.genymotion.20170321.020313:userdebug/test-keys' pid: 2461, tid: 2461, name: thme.maps.debug >>> com.mapswithme.maps.debug <<< signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadd00d Stack frame #00 pc 00071022 /system/lib/libdvm.so (dvmAbort+194) Stack frame #01 pc 0004ba43 /system/lib/libdvm.so (_ZN11ScopedCheck13checkInstanceEP8_jobjectP11ClassObjectPKc.part.15+195) Stack frame #02 pc 0004d66d /system/lib/libdvm.so (ScopedCheck::check(bool, char const, ...)+1101) Stack frame #03 pc 000572a7 /system/lib/libdvm.so (Check_GetStaticMethodID(_JNIEnv, _jclass, char const, char const)+135) Stack frame #04 pc 000c8ac8 /data/app-lib/com.mapswithme.maps.debug-1/libmapswithme.so: Routine Java_com_mapswithme_maps_editor_Editor_nativeGetOpeningHours at /Users/tranthanhtuan/Downloads/omim-android-gr-743/android/jni/com/mapswithme/maps/editor/Editor.cpp:100 Stack frame #05 pc 000c887d /data/app-lib/com.mapswithme.maps.debug-1/libmapswithme.so (jni::GetStaticMethodID(_JNIEnv, _jclass, char const, char const)+125): Routine __libcpp_compressed_pair_imp at /Users/tranthanhtuan/Documents/Android_SDK/android-ndk-r15b/sources/cxx-stl/llvm-libc++/include/memory:2247 Stack frame #00 pc 000bb596 /system/lib/libdvm.so (dvmDumpNativeStack(DebugOutputTarget const, int)+86) Stack frame #01 pc 000964e3 /system/lib/libdvm.so (dvmDumpThreadEx(DebugOutputTarget const, Thread, bool)+1155) Stack frame #02 pc 000967d6 /system/lib/libdvm.so (dvmDumpThread(Thread, bool)+86) Stack frame #03 pc 0004ba3e /system/lib/libdvm.so Stack frame #04 pc 0004d66d /system/lib/libdvm.so (ScopedCheck::check(bool, char const, ...)+1101) Stack frame #05 pc 000572a7 /system/lib/libdvm.so Stack frame #06 pc 000c8ac8 /data/app-lib/com.mapswithme.maps.debug-1/libmapswithme.so: Routine Java_com_mapswithme_maps_editor_Editor_nativeGetOpeningHours at /Users/tranthanhtuan/Downloads/omim-android-gr-743/android/jni/com/mapswithme/maps/editor/Editor.cpp:100 Stack frame #07 pc 000c887d /data/app-lib/com.mapswithme.maps.debug-1/libmapswithme.so (jni::GetStaticMethodID(_JNIEnv, _jclass, char const, char const)+125): Routine libcpp_compressed_pair_imp at /Users/tranthanhtuan/Documents/Android_SDK/android-ndk-r15b/sources/cxx-stl/llvm-libc++/include/memory:2247 Stack frame #08 pc 000d0ef7 /data/app-lib/com.mapswithme.maps.debug-1/libmapswithme.so (jni::AndroidMessage(my::LogLevel, my::SrcPoint const&, std::ndk1::basic_string<char, std::ndk1::char_traits, std::ndk1::allocator > const&)+375): Routine std::ndk1::tree<std::ndk1::__value_type<std::ndk1::basic_string<char, std::ndk1::char_traits, std::ndk1::allocator >, std::ndk1::basic_string<char, std::ndk1::char_traits, std::ndk1::allocator > >, std::ndk1::map_value_compare<std::ndk1::basic_string<char, std::ndk1::char_traits, std::ndk1::allocator >, std::ndk1::__value_type<std::ndk1::basic_string<char, std::ndk1::char_traits, std::ndk1::allocator >, std::ndk1::basic_string<char, std::ndk1::char_traits, std::ndk1::allocator > >, std::ndk1::less<std::ndk1::basic_string<char, std::__ndk1::char_traits, std::ndk1::allocator > >, true>, std::ndk1::allocator<std::ndk1::value_type<std::__ndk1::basic_string<char, std::ndk1::char_traits, std::ndk1::allocator >, std::ndk1::basic_string<char, std::ndk1::char_traits, std::ndk1::allocator > > > >::end_node() at /Users/tranthanhtuan/Documents/Android_SDK/android-ndk-r15b/sources/cxx-stl/llvm-libc++/include/tree:968 Stack frame #09 pc 000d2d4a /data/app-lib/com.mapswithme.maps.debug-1/libmapswithme.so (jni::AndroidAssertMessage(my::SrcPoint const&, std::ndk1::basic_string<char, std::ndk1::char_traits, std::ndk1::allocator > const&)+74): Routine basic_string at /Users/tranthanhtuan/Documents/Android_SDK/android-ndk-r15b/sources/cxx-stl/llvm-libc++/include/string:2140 Stack frame #10 pc 000c5d98 /data/app-lib/com.mapswithme.maps.debug-1/libmapswithme.so (jni::GetGlobalClassRef(_JNIEnv, char const)+296): Routine std::ndk1::allocator<std::ndk1::__tree_node<osmoh::Weekday, void*> >::deallocate(std::ndk1::tree_node<osmoh::Weekday, void>, unsigned int) at /Users/tranthanhtuan/Documents/Android_SDK/android-ndk-r15b/sources/cxx-stl/llvm-libc++/include/memory:1737 Stack frame #11 pc 000c5876 /data/app-lib/com.mapswithme.maps.debug-1/libmapswithme.so (JNI_OnLoad+214): Routine std::ndk1::tree_node_base<void>& std::ndk1::tree<osmoh::Weekday, std::ndk1::less, std::ndk1::allocator >::__find_equal(std::ndk1::tree_const_iterator<osmoh::Weekday, std::ndk1::tree_node<osmoh::Weekday, void>, int>, std::ndk1::tree_node_base<void>&, osmoh::Weekday const&) at /Users/tranthanhtuan/Documents/Android_SDK/android-ndk-r15b/sources/cxx-stl/llvm-libc++/include/tree:1947 Stack frame #12 pc 001727f5 /system/lib/libdvm.so (houdini::hookJniOnload(bool, void, void, void)+53) Stack frame #13 pc 0008ad3d /system/lib/libdvm.so (dvmLoadNativeCode(char const, Object*, char**)+1293) Stack frame #14 pc 000cb82b /system/lib/libdvm.so Stack frame #15 pc 00173058 /system/lib/libdvm.so Crash dump is completed

alexzatsepin commented 7 years ago

@vfa-tuantt Thanks! The last crash dump is much better than a previous one. So, according to nativeGetOpeningHours code you should fail when trying to edit/create an object on the map. Is it your case? Also, please provide me with steps to reproduce yours crash.

vfa-tuantt commented 7 years ago

@alexzatsepin Hi, thank you again for your reply. I so happy 👍 Step 1: I try to get source code in below revison

android-gr-743 Google Play Release 7.4.3

Step 2: I added and compiled below library. compile 'com.google.guava:guava:20.0'

Step 3: Build and run on device FW: 4.4.2 or below. This issue will be happen.

I don't know why this issue is happened. Beside of this library 'com.google.guava:guava:20.0' i used to try complied with some library same as 'com.google.apis:google-api-services-youtube:v3-rev183-1.22.0'. It's also crashed with same logcat above. Thank for your help. 👍

alexzatsepin commented 7 years ago

@vfa-tuantt Could you provide me snippet of code where you are using Guava library in MapsMe project? Probably you forgot to change JNI signatures somewhere, I need to see you code . Or tell me please your fork and branch where this problem is happened, I'll try to take a look at it.

vfa-tuantt commented 7 years ago

Hi @alexzatsepin Thanks for your reply.

Note: My source code is same as tag revision "android-gr-743" of Mapsme project. Link reference: https://github.com/mapsme/omim/releases?after=beta-917 The difference is below config.

buildscript {
  repositories {
    jcenter()
    maven {
      url 'https://maven.fabric.io/public'
    }
  }

  dependencies {
    classpath 'com.android.tools.build:gradle:2.3.2'
    classpath 'io.fabric.tools:gradle:1.+'
  }
}

allprojects {
  repositories {
    jcenter()
    mavenCentral()
  }
}

repositories {
  maven {
    url 'https://maven.fabric.io/public'
  }
}

apply plugin: 'com.android.application'
apply from: 'secure.properties'
apply plugin: 'io.fabric'

dependencies {
  // android support libs
  compile ('com.android.support:support-v4:23.4.0') {
    force = true;
  }
  compile 'com.android.support:appcompat-v7:23.4.0'
  compile 'com.android.support:recyclerview-v7:23.4.0'
  compile 'com.android.support:design:23.4.0'
  compile 'com.android.support:cardview-v7:23.4.0'
  compile 'com.android.support:preference-v7:23.4.0'
  compile 'com.android.support:preference-v14:23.4.0'
  // google play services
  compile 'com.google.android.gms:play-services-location:10.0.1'
  compile 'com.google.android.gms:play-services-analytics:10.0.1'
  compile 'com.google.android.gms:play-services-plus:10.0.1'
  compile 'com.google.android.gms:play-services-gcm:10.0.1'
  // statistics
  compile 'com.flurry.android:analytics:6.7.0'
  // crash reporting
  compile('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') { transitive = true }
  compile('com.crashlytics.sdk.android:crashlytics-ndk:1.1.2@aar') { transitive = true }
  // 3-party
  compile 'com.facebook.android:facebook-android-sdk:4.8.0'
  compile('com.facebook.android:audience-network-sdk:4.20.0') {
    exclude group: 'com.google.android.gms'
    exclude group: 'com.android.support'
  }
  compile 'com.google.code.gson:gson:2.6.1'
  compile 'com.pushwoosh:pushwoosh:4.12.2'
  compile 'com.my.tracker:mytracker-sdk:1.3.5'
  compile ('com.my.target:mytarget-sdk:4.6.14') {
    exclude group: 'com.android.support'
  }
  compile('com.mopub:mopub-sdk-native-static:4.11.0@aar') {
    transitive = true
  }
  compile fileTree(dir: '3rd_party', include: '*.jar')
  // BottomSheet
  compile project(":3rd_party:BottomSheet")
  // LinearLayoutManager allowing wrap_content of RecyclerView-s
  // TODO remove this library when default LinearLayoutManager will be fixed.
  compile 'org.solovyev.android.views:linear-layout-manager:0.5@aar'
  compile 'com.timehop.stickyheadersrecyclerview:library:0.4.3@aar'
  // Glide
  compile 'com.github.bumptech.glide:glide:3.7.0'
  // Java concurrency annotations
  compile 'net.jcip:jcip-annotations:1.0'
  compile 'com.android.support:multidex:1.0.1'
  // Add guava library
  compile 'com.google.guava:guava:20.0'
}

def getDate() {
  def date = new Date()
  def formattedDate = date.format('yyMMdd')
  return formattedDate
}

project.ext.versionCodes = ['armeabi-v7a': 1, 'x86': 2]
project.ext.appId = 'com.mapswithme.maps.pro'

crashlytics {
  enableNdk true
  androidNdkOut 'obj/local'
  androidNdkLibsOut 'libs'
}

android {
  // All properties are read from gradle.properties file
  compileSdkVersion propCompileSdkVersion.toInteger()
  buildToolsVersion propBuildToolsVersion

  defaultConfig {
    // Default package name is taken from the manifest and should be com.mapswithme.maps
    versionCode propVersionCode.toInteger()
    versionName propVersionName
    minSdkVersion propMinSdkVersion.toInteger()
    targetSdkVersion propTargetSdkVersion.toInteger()
    applicationId project.ext.appId
    buildConfigField 'String', 'SUPPORT_MAIL', '"android@maps.me"'
    buildConfigField 'String', 'REVIEW_URL', '"market://details?id=com.mapswithme.maps.pro"'
    buildConfigField 'int', 'RATING_THRESHOLD', '5'

    // Crashlytics API key
    Properties props = new Properties()
    props.load(new FileInputStream("${projectDir}/fabric.properties"));
    manifestPlaceholders = ['FABRIC_API_KEY': props['apiKey']]
    buildConfigField 'String', 'FABRIC_API_KEY', /"${props['apiKey']}"/

    // PushWoosh keys
    Properties pwProps = new Properties()
    pwProps.load(new FileInputStream("${projectDir}/pushwoosh.properties"));
    manifestPlaceholders += ['PW_APPID': pwProps['pwAppId']]
    buildConfigField 'String', 'PW_APPID', /"${pwProps['pwAppId']}"/
    manifestPlaceholders += ['PW_PROJECT_ID': pwProps['pwProjectId']]
    multiDexEnabled true
  }

  sourceSets.main {
    manifest.srcFile 'AndroidManifest.xml'
    res.srcDirs = ['res']
    java.srcDirs = ['src', '../3party/Alohalytics/src/android/java']
    // assets folder is auto-generated by tools/android/update_assets.sh, so we keep all static resources in separate folders.
    assets.srcDirs = ['assets']
    jniLibs.srcDirs = ['libs']
  }

  productFlavors {
    google {
      versionName = android.defaultConfig.versionName + '-Google'
      buildConfigField 'String', 'SUPPORT_MAIL', '"googleplay@maps.me"'
      android.sourceSets.google.assets.srcDirs = ['flavors/mwm-ttf-assets']
    }
  }

  // Currently (as of 1.2.3 gradle plugin) ABI filters aren't supported inside of product flavors, so we cannot generate splitted builds only for Google build.
  // TODO check that feature when new gradle plugins will appear
  // connected bugreport https://code.google.com/p/android/issues/detail?id=178606
  splits.abi {
    enable true
    reset()
    include 'x86', 'armeabi-v7a'
    universalApk true
  }

  // TODO: Fix a lot of lint errors in our code
  lintOptions {
    abortOnError false
  }

  gradle.projectsEvaluated {
    android.applicationVariants.all { variant ->
      def task = variant.name.capitalize()
      project.task(type: Exec, "run${task}", dependsOn: "install${task}") {
        commandLine android.getAdbExe(), 'shell', 'am', 'start', '-n', "${applicationId}/com.mapswithme.maps.SplashActivity"
      }

      variant.outputs.each { output ->
        if (output.outputFile != null && output.outputFile.name.endsWith('.apk')) {
          def file = output.outputFile
          // version at the end of each built apk
          output.outputFile = new File(file.parent, file.name.replace(".apk", "-" + android.defaultConfig.versionName + "-" + getDate() + ".apk"))
          // set different versionCodes for different ABIs
          int abiVersionCode = project.ext.versionCodes.get(output.getFilter(com.android.build.OutputFile.ABI)) ?: 0
          output.versionCodeOverride = (abiVersionCode * 1000) + android.defaultConfig.versionCode
        }
      }
    }
  }

  signingConfigs {
    mapswithme {
      storeFile file(spropStoreFile)
      storePassword spropStorePassword
      keyAlias spropKeyAlias
      keyPassword spropKeyPassword
    }

    mapswithmeDebug {
      storeFile file('../tools/android/debug.keystore')
      storePassword '12345678'
      keyAlias 'debug'
      keyPassword '12345678'
    }
  }

  buildTypes {
    debug {
      applicationIdSuffix '.debug'   // Allows to install debug and release builds together
      versionNameSuffix '-debug'
      jniDebuggable true           // Enable jni debug build
      zipAlignEnabled true
      signingConfig signingConfigs.mapswithmeDebug
      android.sourceSets.debug.setRoot('flavors/debug')
    }

    release {
      signingConfig signingConfigs.mapswithme
      minifyEnabled true
      shrinkResources true
      proguardFile('proguard-mwm.txt')
    }

    beta {
      applicationIdSuffix '.beta'
      versionNameSuffix '-beta'
      signingConfig signingConfigs.mapswithme
      android.sourceSets.beta.setRoot('flavors/beta')
    }
  }

  // We don't compress these extensions in assets/ because our random FileReader can't read zip-compressed files from apk.
  // TODO: Load all minor files via separate call to ReadAsString which can correctly handle compressed files in zip containers.
  aaptOptions {
    noCompress 'txt', 'bin', 'html', 'png', 'json', 'mwm', 'ttf', 'sdf', 'ui', 'config'
    ignoreAssetsPattern "!.svn:!.git:!.DS_Store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"
  }

  // Enables new Java features in KitKat+ but needs Java 1.7 installed
  compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_7
    targetCompatibility JavaVersion.VERSION_1_7
  }

  packagingOptions {
    exclude 'lib/arm64-v8a/libcrashlytics-envelope.so'
    exclude 'lib/arm64-v8a/libcrashlytics.so'
    exclude 'lib/armeabi/libcrashlytics-envelope.so'
    exclude 'lib/armeabi/libcrashlytics.so'
    exclude 'lib/mips64/libcrashlytics-envelope.so'
    exclude 'lib/mips64/libcrashlytics.so'
    exclude 'lib/mips/libcrashlytics-envelope.so'
    exclude 'lib/mips/libcrashlytics.so'
    exclude 'lib/x86_64/libcrashlytics-envelope.so'
    exclude 'lib/x86_64/libcrashlytics.so'
  }
}

// Tasks needed to compile NDK part
apply plugin: 'base'

project.ext.PARAM_PARALLEL_TASK_COUNT = '-j' + (Runtime.runtime.availableProcessors() + 1)
project.ext.NDK_BUILD = android.getNdkDirectory().toString() + '/ndk-build'
if (System.properties['os.name'].toLowerCase().contains('windows'))
  project.ext.NDK_BUILD += ".cmd"

def archs = ['x86', 'armeabi-v7a']
def buildTypes = [[ndkType: 'release', cppType: "production", flags: propReleaseNdkFlags], [ndkType: 'debug', cppType: "debug", flags: propDebugNdkFlags]]

buildTypes.each { type ->
  def suffix = type.ndkType.capitalize()
  createCppBuildTask(type.cppType, '', suffix)
  createNdkBuildTask(type.ndkType, '', suffix, type.flags)

  archs.each { arch ->
    suffix = type.ndkType.capitalize() + arch.capitalize()
    createCppBuildTask(type.cppType, arch, suffix)
    createNdkBuildTask(type.ndkType, arch, suffix, type.flags)
  }
}

def createCppBuildTask(buildType, arch, suffix) {
  return tasks.create(name: "cppBuild${suffix}", type: Exec, description: "Building ${buildType} version of static C++ libraries. Arch : ${arch}") {
    def args = ['bash', '../tools/autobuild/android.sh', buildType]
    if (!arch.isEmpty())
      args += arch
    commandLine args
  }
}

def createNdkBuildTask(buildType, arch, suffix, flags) {
  return tasks.create(name: "ndkBuild${suffix}", dependsOn: "cppBuild${suffix}", type: Exec, description: "Building ${buildType} version of jni. Arch : ${arch}") {
    def ndkParams = ([project.ext.NDK_BUILD, project.ext.PARAM_PARALLEL_TASK_COUNT] + flags.split(' ')).flatten()
    if (!arch.isEmpty())
      ndkParams += "NDK_ABI_TO_BUILD=${arch}"
    commandLine ndkParams
  }
}

task ndkBuildClean(type: Exec, description: 'Clean native jni libraries') {
  commandLine project.ext.NDK_BUILD, 'clean'
}

tasks.withType(JavaCompile) { compileTask ->
  if (compileTask.name.contains('Release') || compileTask.name.contains('Beta')) {
    compileTask.dependsOn ndkBuildRelease
  } else {
    compileTask.dependsOn ndkBuildDebug
  }
}

// NOTE : it does NOT clean built cpp static libs. cppClean does.
clean.dependsOn ndkBuildClean

// Cleans built native static libs.
task cppClean(type: Delete) << {
  buildTypes.each { type ->
    archs.each { arch ->
      delete "../../omim-android-${type.cppType}-${arch}"
    }
  }
}

// Tasks for generating obb files for Google Play
def unalignedFonts = "${propObbFontsOutput}.unaligned"
def unalignedWorlds = "${propObbWorldsOutput}.unaligned"

task obbClean(type: Delete) << {
  [propObbFontsOutput, propObbWorldsOutput, unalignedFonts, unalignedWorlds].each { file ->
    delete file
  }
}

task obbGenerate() {
  createObbGenerateTask('Main', propObbFonts.split(' '), unalignedFonts)
  createObbGenerateTask('Patch', propObbWorlds.split(' '), unalignedWorlds)
  createObbAlignTask('Main', unalignedFonts, propObbFontsOutput)
  createObbAlignTask('Patch', unalignedWorlds, propObbWorldsOutput)
}

obbGenerate.dependsOn obbClean, obbMainGenerate, obbPatchGenerate, obbMainAlign, obbPatchAlign

def createObbGenerateTask(type, data, name) {
  return tasks.create(name: "obb${type}Generate", type: Exec, description: 'Generate obb files') {
    commandLine((['zip', '-0', '-j', name, data]).flatten())
  }
}

def createObbAlignTask(type, rawObb, alignedObb) {
  def sdkDir = "${android.getSdkDirectory().getAbsolutePath()}"
  def zipalignPath = sdkDir + File.separator + "build-tools" + File.separator +
          propBuildToolsVersion + File.separator + "zipalign";

  return tasks.create(name: "obb${type}Align", dependsOn: "obb${type}Generate", type: Exec, description: 'Align obb files') {
    commandLine zipalignPath, '-v', '8', rawObb, alignedObb
  }
}

task obbPush(dependsOn: ['obbGenerate', 'obbPushMain', 'obbPushPatch']) {
  def obbPath = "/mnt/sdcard/Android/obb/${project.ext.appId}/"
  tasks.create(type: Exec, name: 'obbRemoveOnDevice') {
    commandLine android.getAdbExe(), 'shell', 'rm', "${obbPath}*.obb"
  }
  tasks.create(type: Exec, name: 'obbPushMain', dependsOn: 'obbRemoveOnDevice') {
    commandLine android.getAdbExe(), 'push', propObbFontsOutput, "${obbPath}fonts.obb"
  }
  tasks.create(type: Exec, name: 'obbPushPatch', dependsOn: 'obbRemoveOnDevice') {
    commandLine android.getAdbExe(), 'push', propObbWorldsOutput, "${obbPath}worlds.obb"
  }
}
vfa-tuantt commented 7 years ago

Hi @alexzatsepin,

@vfa-tuantt Thanks! The last crash dump is much better than a previous one. So, according to nativeGetOpeningHours code you should fail when trying to edit/create an object on the map.

I try to put a log in function nativeGetOpeningHours but it seems not be called. I don't see anything. Thanks for your support!

vfa-tuantt commented 7 years ago

Hi @alexzatsepin, I found new information for this issue.

If i added library com.google.guava:guava:20.0 to complie

I try to put some logcat into funtionJNI_OnLoad in file jni_helper.cpp and i saw JNI_OnLoad not be called. So, all of jni class same as g_loggerFactoryClazz,g_bannerClazz ..etc. are null. → Application will be crashed.

If i not add library com.google.guava:guava:20.0 to complie

JNI_OnLoad will be called → Application run successful.

If you have any information or idea please let me know. I hope your reply. Thank you for your support.

vfa-tuantt commented 7 years ago

Hi @alexzatsepin I found the main problem. When i added com.google.guava:guava:20.0 to complie. Total method of project over 64K. Although in mapsme project, the library com.android.support:multidex:1.0.1 is added before BUT System.loadLibrary("mapswithme"); is called before MultiDex.install(this); is called. So crash will be appeared. Link: https://developer.android.com/studio/build/multidex.html

Caution: Do not execute MultiDex.install() or any other code through reflection or JNI before MultiDex.install() is complete. Multidex tracing will not follow those calls, causing ClassNotFoundException or verify errors due to a bad class partition between DEX files.