Bug #3333

java.lang.IllegalStateException in android.media.AudioRecord.startRecording

Added by Anonymous over 3 years ago. Updated over 3 years ago.

Status:NewStart date:05/01/2014
Priority:NormalDue date:
Assignee:vitriolix% Done:

0%

Category:-
Target version:Bugs
Component:

Description

  • Galaxy S3 (d2spr)
  • Apr 25 06:50
    • 0.0.8-build96
    • Android 4.3
    • Galaxy S3 (d2vmu)
java.lang.IllegalStateException: startRecording() called on an uninitialized AudioRecord.
at android.media.AudioRecord.startRecording(AudioRecord.java:532)
at info.guardianproject.mrapp.media.AudioRecorderView.startRecording(AudioRecorderView.java:80)
at info.guardianproject.mrapp.OrderClipsFragment.recordNarration(OrderClipsFragment.java:302)
at info.guardianproject.mrapp.OrderClipsFragment.access$400(OrderClipsFragment.java:41)
at info.guardianproject.mrapp.OrderClipsFragment$3.onClick(OrderClipsFragment.java:195)
at android.view.View.performClick(View.java:4489)
at android.view.View$PerformClick.run(View.java:18803)
at android.os.Handler.handleCallback(Handler.java:730)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5455)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1187)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
at dalvik.system.NativeStart.main(Native Method)

History

#1 Updated by vitriolix over 3 years ago

This was reported by Carrie

#2 Updated by vitriolix over 3 years ago

  • Target version set to Bugs

#3 Updated by vitriolix over 3 years ago

Almost certainly this:

http://stackoverflow.com/a/5440517

Would like to make a small lib that iterates over the mics and audio settings and creates a system profile which lists all good values. then we can only populate dropdowns in settings that fit those. for bonus points, it should cache these in a shareprefs file keyed by the device type somehow in case someone moves the app to another phone with backup/restore. it could be lazily built on first use but also provide a nice async task and progress popup "probing system..."

Also available in: Atom PDF