Skip to content

Instantly share code, notes, and snippets.

@jberkel
Created February 11, 2011 17:07
Show Gist options
  • Save jberkel/822677 to your computer and use it in GitHub Desktop.
Save jberkel/822677 to your computer and use it in GitHub Desktop.
AudioRecord-Java E [ android.media.AudioRecord ] Error code -20 when initializing native AudioR
ecord object.
12127 System.err W java.lang.IllegalStateException: Unable to retrieve AudioRecord pointer for
setPositionUpdatePeriod()
12127 System.err W at android.media.AudioRecord.native_set_pos_update_period(Native Method)
12127 System.err W at android.media.AudioRecord.setPositionNotificationPeriod(AudioRecord.java
:663)
12127 System.err W at com.soundcloud.utils.record.CloudRecorder.<init>(CloudRecorder.java:180)
12127 System.err W at com.soundcloud.android.service.CloudCreateService.startRecording(CloudCr
eateService.java:222)
12127 System.err W at com.soundcloud.android.service.CloudCreateService.access$10(CloudCreateS
ervice.java:213)
12127 System.err W at com.soundcloud.android.service.CloudCreateService$ServiceStub.startRecor
ding(CloudCreateService.java:561)
12127 System.err W at com.soundcloud.android.view.ScCreate.startRecording(ScCreate.java:704)
12127 System.err W at com.soundcloud.android.view.ScCreate.updateUi(ScCreate.java:544)
12127 System.err W at com.soundcloud.android.view.ScCreate.updateUi(ScCreate.java:497)
12127 System.err W at com.soundcloud.android.view.ScCreate.onAction(ScCreate.java:493)
12127 System.err W at com.soundcloud.android.view.ScCreate.access$2(ScCreate.java:474)
12127 System.err W at com.soundcloud.android.view.ScCreate$2.onClick(ScCreate.java:172)
12127 System.err W at android.view.View.performClick(View.java:2364)
12127 System.err W at android.view.View.onTouchEvent(View.java:4179)
12127 System.err W at android.view.View.dispatchTouchEvent(View.java:3709)
12127 System.err W at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:883)
12127 System.err W at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:883)
12127 System.err W at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:883)
12127 System.err W at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:883)
12127 System.err W at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:883)
12127 System.err W at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:883)
12127 System.err W at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:883)
12127 System.err W at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:883)
12127 System.err W at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:883)
12127 System.err W at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:883)
12127 System.err W at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:883)
12127 System.err W at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:883)
12127 System.err W at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouc
hEvent(PhoneWindow.java:1659)
12127 System.err W at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(Pho
neWindow.java:1107)
12127 System.err W at android.app.Activity.dispatchTouchEvent(Activity.java:2061)
12127 System.err W at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEven
t(PhoneWindow.java:1643)
12127 System.err W at android.view.ViewRoot.handleMessage(ViewRoot.java:1691)
12127 System.err W at android.os.Handler.dispatchMessage(Handler.java:99)
12127 System.err W at android.os.Looper.loop(Looper.java:123)
12127 System.err W at android.app.ActivityThread.main(ActivityThread.java:4363)
12127 System.err W at java.lang.reflect.Method.invokeNative(Native Method)
12127 System.err W at java.lang.reflect.Method.invoke(Method.java:521)
12127 System.err W at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.ja
va:860)
12127 System.err W at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
12127 System.err W at dalvik.system.NativeStart.main(Native Method)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment