Open KushtrimPacaj opened 7 years ago
For anyone who encounters this issue in the future, here is what I was doing different, and what caused to crash:
I was initializing the RecordingThread in onResume, and stopping/nullifying it on onPause. After going through this process a few times, this error would show up. Im guessing it has something to do with the finalizer of SnowBoy detect. Removing the init/nullify from the lifecycle methods, and just calling startRecording/stopRecording, solved the issue.
Even though I managed to workaround, I'd be really interested to know why it was crashing.
Thanks for the workaround. We'll take a look
Do you have any plan to fix this issue in the near future?
This did not solve the issue. :( Logs-
00 pc 000000000004abf4 /system/lib/libc.so (tgkill+12)
01 pc 0000000000048393 /system/lib/libc.so (pthread_kill+34)
02 pc 000000000001d485 /system/lib/libc.so (raise+10)
03 pc 0000000000018fc1 /system/lib/libc.so (__libc_android_abort+34)
04 pc 0000000000017024 /system/lib/libc.so (abort+4)
05 pc 000000000001b47f /system/lib/libc.so (__libc_fatal+22)
06 pc 0000000000065c6b /system/lib/libc.so (ifree+962)
07 pc 0000000000065d2f /system/lib/libc.so (je_free+70)
08 pc 0000000000075bf7 /data/app/com.multiverse.jarvis-1/lib/arm/libsnowboy-detect-android.so (TwAec_FreeAec+222)
09 pc 000000000006831f /data/app/com.multiverse.jarvis-1/lib/arm/libsnowboy-detect-android.so (TwAec_Free+10)
10 pc 00000000000665b1 /data/app/com.multiverse.jarvis-1/lib/arm/libsnowboy-detect-android.so (AEC_Exit+8)
11 pc 000000000006622f /data/app/com.multiverse.jarvis-1/lib/arm/libsnowboy-detect-android.so (TVqe_Java_Free+22)
12 pc 000000000004e310 /data/app/com.multiverse.jarvis-1/lib/arm/libsnowboy-detect-android.so (_ZN7snowboy9VqeStreamD2Ev+24)
13 pc 000000000004e36c /data/app/com.multiverse.jarvis-1/lib/arm/libsnowboy-detect-android.so (_ZN7snowboy9VqeStreamD0Ev+8)
14 pc 0000000000032814 /data/app/com.multiverse.jarvis-1/lib/arm/libsnowboy-detect-android.so (_ZN7snowboy14PipelineDetectD2Ev+156)
15 pc 0000000000033730 /data/app/com.multiverse.jarvis-1/lib/arm/libsnowboy-detect-android.so (_ZN7snowboy14PipelineDetectD0Ev+8)
16 pc 000000000001dff8 /data/app/com.multiverse.jarvis-1/lib/arm/libsnowboy-detect-android.so (_ZN7snowboy13SnowboyDetectD1Ev+60)
17 pc 000000000001d1b8 /data/app/com.multiverse.jarvis-1/lib/arm/libsnowboy-detect-android.so (Java_ai_kitt_snowboy_snowboyJNI_delete_1SnowboyDetect+24)
I integrated this library in my application, because I wanted to add the "Alexa" keyword functionality to my existing Alexa AVS implementation. It working fine most of the time, but my app sometimes seemingly randomly crashes, with a native error on this library :
I've been trying all day, but can't pinpoint why it is happening, or how to fix it. Is there something that I could be doing different that might cause this ? How do I debug the issue ?