Discussion:
Debugging Stuck partial wake locks (background)
Vlad Svoka
2018-06-09 14:34:40 UTC
Permalink
My app gets "Stuck partial wake locks (background)" bad behaviour badge on
Google Play for 0.2% of sessions, all Android 8.0 or 8.1. I'm pretty sure
it is because of Native Code I have.
Is there any way to debug this issue? I mean, ANRs and Crashes are reported
by system, but is there any way to debug Partial Wake Locks? I don't even
have any direct calls to it. My code literally have no mention of wake
locks at all.

Also, almost all wake locks, according to google console, are happening
over first minute. This is extremely frustrating, to be punished for
something I have no idea why happens, and threshold is 0.1%...

I am looking for any methods to verify "Stuck partial wake locks
(background)" on my device, so I can at least see if I fixed it without
rolling out new updated to user not understanding what I even fixing :(
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/a570efb7-a145-40ea-8eb6-5cd53a310003%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Vlad Svoka
2018-06-13 14:41:58 UTC
Permalink
I figured it out. Problem was in some audio decoding thread I didn't stop
sometimes, so android decided to do AudioMix lock.
Real issue was fixed quite a while ago, but Google Play Vitals was
extremely unhelpful by generating false positives for almost a week after
issue was fixed already.
Even filtering by build which didn't have issue didn't help somehow.
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/6b7e34ea-1d2e-413d-8894-2fac10a44ea3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...