Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ANR when playing mp4 multiple times with Sony Bravia #3439

Closed
yqritc opened this issue Nov 8, 2017 · 2 comments
Closed

ANR when playing mp4 multiple times with Sony Bravia #3439

yqritc opened this issue Nov 8, 2017 · 2 comments

Comments

@yqritc
Copy link
Contributor

yqritc commented Nov 8, 2017

Issue description

After playing and releasing mp4 content multiple times, the device freeze because of ANR.
This issue can be seen by using the ExoPlayer r2.5.0 or above with demo content, "Dizzy" mp4.
Originally I've found this issue when playing mp4 in asset directory in my app.
By using my local mp4, r2.4.4 does not have this problem, but r2.5.0 or the above get ANR.
( I could not confirmed r2.4.4 with demo "Dizzy" mp4, since the player failed to play due to 302 status code)
After checking the previous issues, I've found the similar issues, #3236 #3355 (Bravia uses the same decoder with TCL TVs).
So I've tried to add the output surface workaround and then ANR seems to be fixed.
But I'm not 100% sure, this is the correct way to fix the problem.
I'm appreciate it if you can confirm this.

Reproduction steps

Describe how the issue can be reproduced, ideally using the ExoPlayer demo app.

  1. Launch demo application
  2. Select "Misc" -> "Dizzy" and starts playing the content
  3. After playing a few seconds, press back button and back to SampleChooserActivity
  4. Repeat step 2 and step 3
  5. The device freeze because of ANR

Link to test content

Demo app "Dizzy" mp4 content

Version of ExoPlayer being used

dev-v2
r2.5.4
r2.5.0

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

Build.DEVICE: BRAVIA_ATV2,
Build.MODEL: BRAVIA 4K GB,
Build.MANUFACTURER: Sony,
API level: 24

Build.DEVICE: SVP-DTV15,
Build.MODEL: BRAVIA 4K 2015,
Build.MANUFACTURER: Sony,
API level: 23

A full bug report captured from the device

I will send it via email.

@yqritc yqritc changed the title ANR when releasing player multiple times with Sony Bravia ANR when playing mp4 multiple times with Sony Bravia Nov 8, 2017
@ojw28
Copy link
Contributor

ojw28 commented Nov 8, 2017

Thanks for the pull request. See one pending comment there. Happy to merge once the workaround is targeted more precisely somehow :).

@ojw28 ojw28 closed this as completed Nov 13, 2017
@ojw28
Copy link
Contributor

ojw28 commented Nov 13, 2017

#3440 was merged to fix this.

@google google locked and limited conversation to collaborators Mar 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants