Severe Audio Stuttering w/ Certain Sound Effects - LGV20 US996 LOS 18.1
Expected Behavior
Audio effects should play smoothly
Current Behavior
Certain audio effects cause severe lag, stuttering and crackling.
Possible Solution
Logcat points to an exception in AudioFxService. Larger logcat of the entire segment where the audio lags is attached. This error is spammed rapidly during that time - so frequently that it generates 3MB of log within about 5 seconds.
Note: reporting this problem for 18.1 since that's what I'm actively running, but it's also a problem on 17.1 so it's not specific to a given build or a regression
AudioFxService: couldn't create effects for session id: 4065 AudioFxService: java.lang.RuntimeException: Cannot initialize effect engine for type: 0bed4300-ddd6-11db-8f34-0002a5d5c51b Error: -3 AudioFxService: at android.media.audiofx.AudioEffect.(AudioEffect.java:521) AudioFxService: at android.media.audiofx.AudioEffect.(AudioEffect.java:488) AudioFxService: at android.media.audiofx.AudioEffect.(AudioEffect.java:462) AudioFxService: at android.media.audiofx.Equalizer.(Equalizer.java:139) AudioFxService: at org.lineageos.audiofx.backends.EffectSetWithAndroidEq.onCreate(EffectSetWithAndroidEq.java:39) AudioFxService: at org.lineageos.audiofx.backends.AndroidEffects.onCreate(AndroidEffects.java:53) AudioFxService: at org.lineageos.audiofx.backends.EffectSet.(EffectSet.java:41) AudioFxService: at org.lineageos.audiofx.backends.EffectSetWithAndroidEq.(EffectSetWithAndroidEq.java:34) AudioFxService: at org.lineageos.audiofx.backends.AndroidEffects.(AndroidEffects.java:48) AudioFxService: at org.lineageos.audiofx.backends.EffectsFactory.createEffectSet(EffectsFactory.java:22) AudioFxService: at org.lineageos.audiofx.service.SessionManager$AudioServiceHandler.handleMessage(SessionManager.java:321) AudioFxService: at android.os.Handler.dispatchMessage(Handler.java:102) AudioFxService: at android.os.Looper.loop(Looper.java:223) AudioFxService: at android.os.HandlerThread.run(HandlerThread.java:67)
Steps to Reproduce
Easy Reproduction:
- Use the following game: https://play.google.com/store/apps/details?id=com.klab.lovelive.allstars
- Create account, select a character.
- From the main menu, click the shoe icon to enter the training menu. Dismiss any tutorial screen.
- Hit the red button at the bottom
- Hit skip in the top right.
- When the results show, numerous items will be collected. The sound effect for receiving the items is the problematic one. This is the only sound effect in the game that has an issue - but in this location it is played numerous times in fast succession (once per item received). Perhaps the issue has to do with the frequency of usage in this scenario.
Additional note: I reported this for 18.1 since that's what is active, but it can also be repro'd in 17.1 - so it is not a build specific issue or a new regression in 18.1. Does not happen on any version of stock for this device.
/device us996 /version lineage-18.1 /date 2021-04-02 /kernel 3.18.113-perf-ga4b95ea /baseband .2.0.1.c3-00045-M8996FAAAANAZM-1 /mods Google Apps
I have read the directions.