when i get to onDestroy() and do all the deinit's as shown on the samples:
destroyTrackerData();
deinitCloudReco();
deinitTracker();
if (Vuforia.isInitialized())
Vuforia.deinit();
-----
it all works well on every device i have tried, except for Samsung Galaxy S4 (4.4.2) when i close the app i get the "Unfortunately, App has stopped" and when i check the logs i get the following:
I/myTag( 448): calling Vuforia.deinit() F/libc ( 448): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 448 (MyApp.myApp) D/ALSADevice( 282): standby: handle 0xb86fc430 h 0x0 V/ALSADevice( 282): standby handle h 0xb872cf60 I/DEBUG ( 2967): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** I/DEBUG ( 2967): Build fingerprint: 'samsung/jflteuc/jflteatt:4.4.2/KOT49H/I337UCUFNC1:user/release-keys' I/DEBUG ( 2967): Revision: '10' I/DEBUG ( 2967): pid: 448, tid: 448, name: MyApp.myApp >>> com.vd.apps.MyApp.myApp <<< I/DEBUG ( 2967): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000 D/alsa_ucm( 282): snd_use_case_set(): uc_mgr 0xb86bb488 identifier _verb value Inactive D/alsa_ucm( 282): Set mixer controls for HiFi enable 0 D/alsa_ucm( 282): Setting mixer control: SLIMBUS_0_RX Audio Mixer MultiMedia1, value: 0 V/ALSADevice( 282): Number of modifiers 0 V/ALSADevice( 282): usecase_type is 0 D/alsa_ucm( 282): snd_use_case_set(): uc_mgr 0xb86bb488 identifier _disdev value Speaker D/alsa_ucm( 282): Set mixer controls for Speaker enable 0 D/alsa_ucm( 282): Setting mixer control: RX5 MIX1 INP1, value: ZERO I/DEBUG ( 2967): r0 7b07b648 r1 00000000 r2 00000001 r3 00a3d016 I/DEBUG ( 2967): r4 8128cd08 r5 0000004a r6 00000000 r7 41b76ca4 I/DEBUG ( 2967): r8 00064108 r9 41b76c9c sl 41b89460 fp be839284 I/DEBUG ( 2967): ip 00000001 sp be839238 lr 777cdc40 pc 00000000 cpsr 20070010 I/DEBUG ( 2967): d0 0000000000000000 d1 0000000000000000 I/DEBUG ( 2967): d2 0000000000000000 d3 0000000000000000 I/DEBUG ( 2967): d4 0009228000000000 d5 0000000010001000 I/DEBUG ( 2967): d6 0000000000000000 d7 0000000000000000 E/MP-Decision( 2069): num online cores: 1 reqd : 2 available : 4 rq_depth:17.500000 hotplug_avg_load_dw: 57 E/MP-Decision( 2069): UP cpu:1 core_idx:1 Nw:1.900000 Tw:140 rq:17.500000 seq:98.000000 I/DEBUG ( 2967): d8 0000000000000000 d9 0000000000000000 I/DEBUG ( 2967): d10 0000000000000000 d11 0000000000000000 I/DEBUG ( 2967): d12 0000000000000000 d13 0000000000000000 I/DEBUG ( 2967): d14 0000000000000000 d15 0000000000000000 I/DEBUG ( 2967): d16 6e6f697469736f50 d17 6563697665446c61 I/DEBUG ( 2967): d18 2e64762e6d6f631b d19 6461432e73707061 I/DEBUG ( 2967): d20 6461632e61726261 d21 382e300561726261 I/DEBUG ( 2967): d22 53b430e38805392e d23 b7658dd49e5d1b64 I/DEBUG ( 2967): d24 3ff0000000000000 d25 0000000000000000 I/DEBUG ( 2967): d26 3ff0000000000000 d27 0000000000000000 I/DEBUG ( 2967): d28 3ff3ba5e40000000 d29 c052a3d700000000 I/DEBUG ( 2967): d30 000111cc000071b2 d31 0003e224000237f8 I/DEBUG ( 2967): scr 8800001b I/DEBUG ( 2967): I/DEBUG ( 2967): backtrace: I/DEBUG ( 2967): #00 pc 00000000 <unknown> I/DEBUG ( 2967): #01 pc 0007ac3c /data/app-lib/com.example.myApp/libVuforia.so I/DEBUG ( 2967): #02 pc 0007ab18 /data/app-lib/com.example.myApp/libVuforia.so I/DEBUG ( 2967): #03 pc 000654ac /data/app-lib/com.example.myApp/libVuforia.so (Vuforia::deinit()+536) I/DEBUG ( 2967): #04 pc 00020bcc /system/lib/libdvm.so (dvmPlatformInvoke+112) I/DEBUG ( 2967): #05 pc 00051927 /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398) I/DEBUG ( 2967): #06 pc 000535d1 /system/lib/libdvm.so (dvmResolveNativeMethod(unsigned int const*, JValue*, Method const*, Thread*)+256) I/DEBUG ( 2967): #07 pc 0002a060 /system/lib/libdvm.so I/DEBUG ( 2967): #08 pc 00031510 /system/lib/libdvm.so (dvmMterpStd(Thread*)+76) I/DEBUG ( 2967): #09 pc 0002eba8 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184) I/DEBUG ( 2967): #10 pc 00064159 /system/lib/libdvm.so (dvmInvokeMethod(Object*, Method const*, ArrayObject*, ArrayObject*, ClassObject*, bool)+392) I/DEBUG ( 2967): #11 pc 0006c18f /system/lib/libdvm.so I/DEBUG ( 2967): #12 pc 0002a060 /system/lib/libdvm.so I/DEBUG ( 2967): #13 pc 00031510 /system/lib/libdvm.so (dvmMterpStd(Thread*)+76) I/DEBUG ( 2967): #14 pc 0002eba8 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184) I/DEBUG ( 2967): #15 pc 00063e75 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+336) I/DEBUG ( 2967): #16 pc 0004d457 /system/lib/libdvm.so I/DEBUG ( 2967): #17 pc 00051f0f /system/lib/libandroid_runtime.so I/DEBUG ( 2967): #18 pc 000534a3 /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*)+354) I/DEBUG ( 2967): #19 pc 0000105b /system/bin/app_process I/DEBUG ( 2967): #20 pc 0000e4f3 /system/lib/libc.so (__libc_init+50) I/DEBUG ( 2967): #21 pc 00000d7c /system/bin/app_process I/DEBUG ( 2967): I/DEBUG ( 2967): stack: I/DEBUG ( 2967): be8391f8 00064108 I/DEBUG ( 2967): be8391fc 4010d3ff /system/lib/libc.so (dlfree+50) I/DEBUG ( 2967): be839200 7b07b6c8
well, apparently you shouldn
well, apparently you shouldn't delete the memory allocated by Vuforia frame capture before the deinit() - or at all.. :)