I’m getting an ANR issue in Android Vitals with the tag AudioMix. It says it is a Stuck partial wake lock. It only happens on Android 8.0.0. I’m not doing nothing special with the audio. I’ve read that this ANR can appear when there are audio decoding threads. Can this be related to AudioEngine?
I haven’t been able to reproduce it… so the only thing I have is the report from Google Play Console. Even in the section where I can see some ANR traces, I haven’t find any related to the AudioMix :S. Here you have a capture of the console:
I’m having the exact same problem with Stuck Partial Wake Locks tagged AudioMix. I’ve looked everywhere in my code and can’t find anything related to a wakelock being acquired and not released. I can’t even find any reference to AudioMix. Any help would be greatly appreciated as this is killing my Android Vitals on the Play Store! Thanks
Thanks @drelaptop!
FYI, I have tested the problem in my game a bit more using adb shell dumpsys power, although I only have a device to test :S. Anyway I will tell you what I discovered using this device (OnePlus A3003 with android 8.0.0).
When downloading the game form the store, an AudioMix wakelock appears when the game is in foreground. It disappears seconds after going background.
When using the same code debugged through Android Studio no wakelock appears, never.
Sorry to bother again with this, but it is getting worse. Now it affects Android 8.0.0 and 8.1 and the percentage of sessions with anr is higher because the percentage of android devices with android 8 is growing up. @slackmoehrle there is nothing we can do to solve it?
I have tried to reproduce the issue on my devices with no success. The anr is appearing on the google play console and the “By device” section is empty -_-
Thx for the info!
By your words, I understand there is no solution for the problem, am I right? :S
In the other hand, this issue is appearing for me under “ANR rate” report, so I called it an ANR issue. Sorry if this misled you to an incorrect approaching to the problem
partly true, for no any wakelock being acquired in the engine code.
don’t worried for this warn info, it doesn’t have bad effect when someone playing your game. I suggest you to test battery usage for your game, attention to monitor the game player behavior.