Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Equalizer] AudioEffect crashing on ICS and JB #24

Closed
dargad opened this issue Sep 8, 2012 · 1 comment
Closed

[Equalizer] AudioEffect crashing on ICS and JB #24

dargad opened this issue Sep 8, 2012 · 1 comment

Comments

@dargad
Copy link
Contributor

dargad commented Sep 8, 2012

I experience major problems using Jamendo Android app on ICS and JB.

Starting one song works just fine, but when it switches to another one (either jumping to the next entry in the playlist or switched manually) the app crashes with:

09-08 20:20:14.335: E/AndroidRuntime(5704): java.lang.RuntimeException: AudioEffect: set/get parameter error
09-08 20:20:14.335: E/AndroidRuntime(5704):     at android.media.audiofx.AudioEffect.checkStatus(AudioEffect.java:1247)
09-08 20:20:14.335: E/AndroidRuntime(5704):     at android.media.audiofx.Equalizer.getProperties(Equalizer.java:532)
09-08 20:20:14.335: E/AndroidRuntime(5704):     at com.teleca.jamendo.media.PlayerEngineImpl.play(PlayerEngineImpl.java:223)
09-08 20:20:14.335: E/AndroidRuntime(5704):     at com.teleca.jamendo.media.PlayerEngineImpl$3.onPrepared(PlayerEngineImpl.java:327)
09-08 20:20:14.335: E/AndroidRuntime(5704):     at android.media.MediaPlayer$EventHandler.handleMessage(MediaPlayer.java:1975)
09-08 20:20:14.335: E/AndroidRuntime(5704):     at android.os.Handler.dispatchMessage(Handler.java:99)
09-08 20:20:14.335: E/AndroidRuntime(5704):     at android.os.Looper.loop(Looper.java:137)
09-08 20:20:14.335: E/AndroidRuntime(5704):     at android.app.ActivityThread.main(ActivityThread.java:4930)
09-08 20:20:14.335: E/AndroidRuntime(5704):     at java.lang.reflect.Method.invokeNative(Native Method)
09-08 20:20:14.335: E/AndroidRuntime(5704):     at java.lang.reflect.Method.invoke(Method.java:511)
09-08 20:20:14.335: E/AndroidRuntime(5704):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
09-08 20:20:14.335: E/AndroidRuntime(5704):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:558)
09-08 20:20:14.335: E/AndroidRuntime(5704):     at dalvik.system.NativeStart.main(Native Method)

The crash happens in this line (PlayerEngineImpl.java:223):

newEqualizer.setProperties(equalizer.getProperties());

According to what's pointed out on StackOverflow and on code.google.com it's caused by a bug in ICS and (probably) JB.

Do you have any ideas how to fix this crash?
So far I just commented out lines 218-228 in PlayerEngineImpl.java which simply disables the Equalizer. It may be used as a temporary workaround for ICS and JB, but dropping equalizer is surely not the final solution.

I have verified that this issue is reproducible on my Nexus S (with official ICS and Cyanogenmod 9 and 10) and Sony Xperia P.

@MarcinGil
Copy link
Collaborator

Hmm.. Don't have anything with ICS/JB - that's why it probably slipped through. So for now either we should disable it API level based or put a catch for that particular exception.

@dargad dargad closed this as completed Sep 13, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants