-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Repeating single media causes the player to freeze on certain frame intermittently #3829
Comments
I tried to reproduce your problem by leaving the test sample looping for about 10-15 minutes without noticeable problems.
The test log you sent doesn't show any suspicious entries and also the warning in your post is unrelated. (The warning may be triggered when the player is released, but should be harmless). |
The issue can only be reproduced after playing it for at least 1 day. |
Here is the new bugreport when the frame freezes. The app seems to be running normally, except the videoview. When it freezes the video stops playing and it just stuck on the same frame. |
Unfortunately, the bug report still doesn't show any obvious error. There are some minor oddities which are most likely not relevant:
I'm going to try and loop your file for a longer period (more than a day) to see if I can reproduce the bug locally. I assume you load the file from storage and not from a server. Is that correct? Also, do you know whether the player switches from state READY to state BUFFERING when the video freezes? That's difficult to tell from the bug report as there are no log entries about state changes. |
I played the file looping for multiple days without any problems. So I'm afraid it's almost impossible to reproduce and without further hints there is unfortunately nothing we can do about it. Closing for now for this reason. If you have any further information that might help, feel free to reopen the issue. |
Just found another similar issue with the above issue, @tonihei . I'll send the content and video capture of the issue by email. Here is the bug report dump. When it freezes, the logcat shows
I also saw some error on discontinuity. The app i'm using is just a modification of the demo video app that has a file finder built-in. So there's only single activity. |
Did you try disabling the edit list handling as suggested on #4559? If it helps, then it's probably the same issue. |
Hi @tonihei,
Still seeing |
I just checked the new sample files you've sent and I can now reproduce the issue. Thanks for that! However, the issue seems to be indeed an exact duplicate of #4559 and can be prevented by setting the FLAG_WORKAROUND_IGNORE_EDIT_LISTS flag (or by commenting out the gapless information handling as I've done in #4559). |
@tonihei I tried to use the workaround and it doesn't work on the first try. I tried to change the loop mode from using player.setRepeatMode to using LoopingMediaSource and it started to work. That's what i thought. The video that used to start freezing in 5 minutes now plays for 1 day without any problem, but when I checked the next day, the video freezes. I'll send you another video file by email to help you reproduce the problem. Note: I still see |
That's interesting. Do I understand you correctly that player.setRepeatMode and LoopingMediaSource lead to different behaviour? They both use the same underlying functionality to loop media, so I wouldn't expect a difference. Besides that I can also see the audio track discontinuities from time to time. But they don't cause the freezing as before (the freezing usually happens when an underrun was reported). |
I've done some test and it took 1.5 days to eventually freeze. It's the same video that i've sent you before.. i will send you the video sample and bug report by email |
Thanks. It's still a duplicate of #4559 I think. The file provided there shows the same effect. Freezing after some loops with edit lists. And occasional discontinuities when the FLAG_WORKAROUND_IGNORE_EDIT_LISTS is enabled. May take a look again later on. |
When the stream is changed in the audio renderer, the timestamps of the samples can no longer be expected to match the calculations in the AudioSink. This change tracks the samples at which the stream is changed and notifies the AudioSink of the discontinuity. Issue:#4559 Issue:#3829 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=212435859
Issue description
I tried to play one video in a loop by Setting play mode to REPEAT_MODE_ALL. After it runs for a while, it will freeze on the same frame intermittently.
MessageQueue: Handler (com.google.android.exoplayer2.upstream.Loader$ReleaseTask) {426ebbe8} sending message to a Handler on a dead thread java.lang.RuntimeException: Handler (com.google.android.exoplayer2.upstream.Loader$ReleaseTask) {426ebbe8} sending message to a Handler on a dead thread at android.os.MessageQueue.enqueueMessage(MessageQueue.java:320) at android.os.Handler.enqueueMessage(Handler.java:626) at android.os.Handler.sendMessageAtTime(Handler.java:595) at android.os.Handler.sendMessageDelayed(Handler.java:566) at android.os.Handler.sendEmptyMessageDelayed(Handler.java:530) at android.os.Handler.sendEmptyMessage(Handler.java:515) at com.google.android.exoplayer2.upstream.Loader$ReleaseTask.run(Loader.java:433) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:841)
Reproduction steps
Just set single media running from local storage and set the player mode to player.setRepeatMode(Player.REPEAT_MODE_ALL);
The player will play normally, but it will freeze after a while.
Link to test content
By email
Version of ExoPlayer being used
2.6.1
Device(s) and version(s) of Android being used
Orange Pi PC Plus Android v4.4
A full bug report captured from the device
log.txt
The text was updated successfully, but these errors were encountered: