Occasionally ANRs on Huawei devices
See original GitHub issueIssue description
We experience occasionally ANRs on different Huawai devices when clearing video surface on an simpleExoPlayer instance. We experienced something similar before reported by my colleague in #3724.
Reproduction steps
Although we have similar or same devices to test on we cannot reproduce this issue in our environment.
A full bug report captured from the device
Unfortunatly we only have the obfuscated ANR log available but we could deobfuscate the following ANR report from play console:
"main" prio=5 tid=1 Waiting
| group="main" sCount=1 dsCount=0 flags=1 obj=0x751288f0 self=0x7a54615c00
| sysTid=12663 nice=-10 cgrp=default sched=0/0 handle=0x7adaeea548
| state=S schedstat=( 32648761976 3586515706 36908 ) utm=2876 stm=388 core=5 HZ=100
| stack=0x7ff5661000-0x7ff5663000 stackSize=8MB
| held mutexes=
at java.lang.Object.wait (Native method)
- waiting on <0x0f3f840c> (a com.google.android.exoplayer2.O)
at com.google.android.exoplayer2.PlayerMessage.boolean blockUntilDelivered() (SourceFile:8)
- locked <0x0f3f840c> (a com.google.android.exoplayer2.O)
at com.google.android.exoplayer2.SimpleExoPlayer.void setVideoSurfaceInternal(android.view.Surface,boolean) (SourceFile:107)
at com.google.android.exoplayer2.SimpleExoPlayer.void setVideoSurface(android.view.Surface) (SourceFile:11)
at com.google.android.exoplayer2.SimpleExoPlayer.void clearVideoSurface(android.view.Surface) (SourceFile:6)
...
Version of ExoPlayer being used
We are using 2.10.3
in our current release.
Device(s) and version(s) of Android being used
Happens in Android 9 in the following devices
Mate 10 Pro (HWBLA) 103 27,3 %
P20 Pro (HWCLT) 69 18,3 %
P20 (HWEML) 66 17,5 %
Mate 20 lite (HWSNE) 43 11,4 %
HUAWEI P30 lite (HWMAR) 20 5,3 %
P30 Pro (HWVOG) 18 4,8 %
HUAWEI P30 (HWELE) 13 3,4 %
Mate 20 Pro (HWLYA) 10 2,7 %
Mate 20 (HWHMA) 9 2,4 %
HUAWEI P smart 2019 (HWPOT-H) 5 1,3 %
Honor 10 (HWCOL) 5 1,3 %
Honor 8X (HWJSN-H) 5 1,3 %
Issue Analytics
- State:
- Created 4 years ago
- Comments:22 (7 by maintainers)
Top Results From Across the Web
java.lang.error on Huawei devices for android 8.0 + 8.1
Hi, We are experiencing a high number of java.lang.Errors in the Android vitals on google play developer console (ANRs & crashes section).
Read more >My HUAWEI phone/tablet freezes or responds slowly
If your device's running memory or storage space is insufficient, the app may freeze while being used. Open Phone Manager/Tablet Manager, and clean...
Read more >Screen Time on Huawei devices
There can be problems with Screen Time on Huawei devices which are caused by inbuilt features. We have found that changing some of...
Read more >Huawei without Google in 2022: It works but why bother?
In 2022, Huawei is selling 4G smartphones without Google services at over $1000 and that is NOT normal.
Read more >Huawei's Android-Alternative Operating System
Now that Huawei has been banned from accessing parts of Google's Android mobile operating system after the US government placed the company on...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Looks promising! Will try updating it as well and report back how things go. Thanks!
Thanks! In this case, I’ll close this issue because there is nothing we can do about it. If anything new comes up, please feel free to reopen (or file a new issue).