I have been running my app for almost a year using pocketsphinx-android-demo-5prealpha with no problems with varoius versions of Android 4.x. When I use Android 5.0 I get the error below as soon as I start recognition. Any ideas on this?
Unfortunately I do not have device to try myself with Android 5, so you need to put more effort to debug this yourself.
You probably need to add more logging about the amount of data you feed into recognizer in order to debug this issue.
Also it is not clear why audio recording has been stopped. Did you stop it yourself or there is some other reason.
Also let us know which exact phone do you have and which exact Android version do you use. There are reports about Android 5 being very unstable with random crashes.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have been running my app for almost a year using pocketsphinx-android-demo-5prealpha with no problems with varoius versions of Android 4.x. When I use Android 5.0 I get the error below as soon as I start recognition. Any ideas on this?
I/SpeechRecognizer(16873): Start recognition "tennis"
V/AudioRecord(16873): set(): inputSource 6, sampleRate 16000, format 0x1, channelMask 0x10, frameCount 4096, notificationFrames 0, sessionId 0, transferType 0, flags 0
V/AudioRecord(16873): set(): mSessionId 93
V/AudioSystem(16873): ioConfigChanged() event 3, ioHandle 94
V/AudioRecord(16873): start, sync event 0 trigger session 0
V/AudioRecord(16873): mAudioRecord->start()
V/AudioRecord(16873): stop()
D/AudioRecord(16873): AudioRecord->stop()
V/AudioRecord(16873): stop()
V/AudioRecord(16873): stop()
V/AudioRecord(16873): stop()
V/AudioSystem(16873): ioConfigChanged() event 4, ioHandle 94
--------- beginning of crash
F/libc (16873): Fatal signal 11 (SIGSEGV), code 1, fault addr 0xb8c66000 in tid 17101 (Thread-2152)
I/libc (16873): Suppressing debuggerd output because prctl(PR_GET_DUMPABLE)==0
Unfortunately I do not have device to try myself with Android 5, so you need to put more effort to debug this yourself.
You probably need to add more logging about the amount of data you feed into recognizer in order to debug this issue.
Also it is not clear why audio recording has been stopped. Did you stop it yourself or there is some other reason.
Also let us know which exact phone do you have and which exact Android version do you use. There are reports about Android 5 being very unstable with random crashes.