ExoPlayer icon indicating copy to clipboard operation
ExoPlayer copied to clipboard

ANR on some devices when changing Surface during playback

Open aarondib opened this issue 8 years ago • 3 comments

Issue description

ANR on some devices after setting Surface during playback.

Reproduction steps

During video playback set Surface to "null" and after creating new Surface set a new one. Video will not scaled correctly (small picture on the left-upper corner with the rest space in green). Then ANR on player.release().

Link to test content

Any video.

Version of ExoPlayer being used

Used versions: 2.6.1 and 2.8.1.

Device(s) and version(s) of Android being used

1) Model: INVIN X2 (s905x018) Manufacturer: Amlogic Board: s905x018 Hardware: amlogic Android: 6.0.1

2) Model: x96 (p212) Manufacturer: Amlogic Board: p212 Hardware: amlogic Android: 6.0.1

aarondib avatar Jun 20 '18 13:06 aarondib

Sounds like a problem similar to #4006 or #3724.

There is workaround filter which we can activate for these devices. See here. For that, it would be great if you can tell use the decoder name which causes the problem and the exact value of Build.DEVICE and/or Build.MODEL.

tonihei avatar Jun 20 '18 13:06 tonihei

It looks like p212 and s905x018 are the Build.DEVICE values, so we can add those to the workaround. I'll do this as part of #4468.

ojw28 avatar Jul 13 '18 18:07 ojw28

@ojw28 that would be great, thanks!

aarondib avatar Jul 16 '18 07:07 aarondib