iMX53/Snowball: Speech Recorder app crashes when trying recording(PCM/16bit/11KHz)

Bug #863052 reported by Abhishek Paliwal
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Android
Fix Released
Medium
Unassigned

Bug Description

Description:
==========
Open Speech recorder app and try to record audio for (PCM/16bit/11KHz) selection.
Speech recorder app crashes.

------------ Error messages from logcat: ------------------
W/AudioHardwareInterface( 1463): getInputBufferSize bad sampling rate: 11025
E/AudioRecord( 1963): Unsupported configuration: sampleRate 11025, format 1, channelCount 1
E/srec_jni( 1963): initCheck error -22
------------------------------------------------------------------------------------------

Reproducible:
===========
Yes, 5/5

Impact:
========
Unable to record speech (PCM audio) for this configuration- PCM/16bit/11KHz

Logs:
====
Serial Logs snippet (Logcat):
----------------------------------------------------------------------------
I/ActivityManager( 1526): Start proc com.android.speechrecorder for activity com.android.speechrecorder/.SpeechRecorderActivity: pid=1963 uid=10023 gids={}
#
# D/installd( 1465): DexInv: --- BEGIN '/system/app/SpeechRecorder.apk' ---
D/dalvikvm( 1971): creating instr width table
D/dalvikvm( 1971): DexOpt: load 4ms, verify+opt 16ms
D/installd( 1465): DexInv: --- END '/system/app/SpeechRecorder.apk' (success) ---
D/dalvikvm( 1526): GREF has increased to 401
I/ARMAssembler( 1526): generated scanline__00000177:03515104_00001002_00000000 [ 87 ipp] (110 ins) at [0x440e9678:0x440e9830] in 152588 ns
I/ActivityManager( 1526): Displayed com.android.speechrecorder/.SpeechRecorderActivity: +1s124ms
# input keyevent 23
D/AndroidRuntime( 1972):
D/AndroidRuntime( 1972): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 1972): CheckJNI is ON
D/dalvikvm( 1972): creating instr width table
I/ethernet( 1972): Loading ethernet jni class
D/AndroidRuntime( 1972): Calling main entry com.android.commands.input.Input
I/SendKeyEvent( 1972): 23
D/SpeechRecorderActivity( 1963): mRecord.OnClickListener.onClick
D/SpeechRecorderActivity( 1963): setupRecording
D/SpeechRecorderActivity( 1963): going to record /data/data/com.android.speechrecorder/app_recordings/call_adam_varro.wav
D/dalvikvm( 1963): GC_FOR_MALLOC freed 323K, 51% free 2773K/5575K, external 722K/1038K, paused 15ms
I/dalvikvm-heap( 1963): Grow heap (frag case) to 6.201MB for 441016-byte allocation
D/dalvikvm( 1963): GC_FOR_MALLOC freed <1K, 47% free 3203K/6023K, external 722K/1038K, paused 13ms
W/AudioHardwareInterface( 1463): getInputBufferSize bad sampling rate: 11025
E/AudioRecord( 1963): Unsupported configuration: sampleRate 11025, format 1, channelCount 1
E/srec_jni( 1963): initCheck error -22
D/SpeechRecorderActivity( 1963): run audio capture thread
W/dalvikvm( 1963): threadid=9: thread exiting with uncaught exception (group=0x401ca560)
E/AndroidRuntime( 1963): FATAL EXCEPTION: Thread-10
E/AndroidRuntime( 1963): java.lang.NullPointerException
E/AndroidRuntime( 1963): at com.android.speechrecorder.SpeechRecorderActivity$4.run(SpeechRecorderActivity.java:192)
W/ActivityManager( 1526): Force finishing activity com.android.speechrecorder/.SpeechRecorderActivity
D/AndroidRuntime( 1972): Shutting down VM
D/dalvikvm( 1972): GC_CONCURRENT freed 98K, 72% free 289K/1024K, external 0K/0K, paused 0ms+0ms
----------------------------------------------------------------------------

Steps:
==========
1. Bootup DUT
2. Open Speech recorder app.
3. Select radio button for PCM/16bit/11KHz option (Selected by default)
4. Select Record option.
Issue: Speech Recorder app crashes on starting recording.

Hardware:
==========
Snowball: V5
HDMI Out to TV - via HDMI cable
USB-Serial Logging
(No ethernet connection)

Software:
==========
https://android-build.linaro.org/builds/~linaro-android/staging-snowball-11.09-release/
build 1

Tags: snowball
Revision history for this message
Abhishek Paliwal (abhishek-paliwal) wrote :
Zach Pfeffer (pfefferz)
Changed in linaro-android:
status: New → Confirmed
Revision history for this message
Mathieu Poirier (mathieu.poirier-deactivatedaccount) wrote :

Sound on snowball is currently not connected to userspace and at this time a working audio driver is not available on the july-ALK3.0 kernel.

Changed in linaro-landing-team-ste:
status: New → Confirmed
Revision history for this message
Abhishek Paliwal (abhishek-paliwal) wrote :

Same issue is observed with iMX53 Hardware(Rev G) with build:
https://android-build.linaro.org/builds/~linaro-android/stage-imx53-11.10-release/

Logcat attached.

Revision history for this message
Abhishek Paliwal (abhishek-paliwal) wrote :
summary: - Snowball: Speech Recorder app crashes when trying
+ iMX53/Snowball: Speech Recorder app crashes when trying
recording(PCM/16bit/11KHz)
Revision history for this message
Abhishek Paliwal (abhishek-paliwal) wrote :
Lee Jones (lag)
Changed in linaro-landing-team-ste:
importance: Undecided → Medium
assignee: nobody → Mathieu Poirier (mathieu.poirier)
importance: Medium → Wishlist
Revision history for this message
Abhishek Paliwal (abhishek-paliwal) wrote :
Revision history for this message
Abhishek Paliwal (abhishek-paliwal) wrote :
Revision history for this message
Abhishek Paliwal (abhishek-paliwal) wrote :
Revision history for this message
Abhishek Paliwal (abhishek-paliwal) wrote :
Revision history for this message
Eric Miao (eric.y.miao) wrote :

Need to test w/ 3.1 kernel

Changed in linaro-landing-team-freescale:
status: New → Incomplete
Revision history for this message
Abhishek Paliwal (abhishek-paliwal) wrote :

issue not observed on ICS releases, marking as fixed.

Changed in linaro-android:
status: Confirmed → Fix Released
Changed in linaro-landing-team-ste:
status: Confirmed → Fix Released
Revision history for this message
Abhishek Paliwal (abhishek-paliwal) wrote :
Anmar Oueja (anmar)
Changed in linaro-landing-team-freescale:
importance: Undecided → Medium
Revision history for this message
Abhishek Paliwal (abhishek-paliwal) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.