-
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
CodecException: Error 0xffffffff #8776
Comments
@andrewlewis Can you take a look? Basically |
Are you handling the There may be informative errors just before the stack trace from If that doesn't shed any light on it then we'd probably need a minimal sample project to reproduce the issue here. |
@andrewlewis Hi, I've decided to explain the error more exactly and how to replay this one:
Also I am attaching a list of logs, please, take a look. |
@andrewlewis Are there any updates? |
This logging just before the first error looks suspicious:
If you play a stream that doesn't require a secure decoder (like the sample streams with ad tags in the demo app) do you see the same behavior? |
@andrewlewis I've checked this case, so If I use HLS or Dash without encryption it will be work well. Actually this error appearance when the app uses DASH with encryption. |
Does calling |
I saw that same error message in #8668 - I don't know if the discussion there is any help. Otherwise I agree with Andrew that the easiest way for us to help would be a minimal reproducible example that demonstrates the problem in a way that we can build locally. This could be an Android Studio project on GitHub, or zipped up and sent to [email protected] using a subject in the format "Issue #1234", where "#1234" should be replaced with your issue number. Please also update this issue to indicate you’ve done this. |
@andrewlewis @icbaker Hi, I have replied this issue in a little project. I've taken sources from ExoPlayer-Demo and I would like to highlight that the error arise when I use H264. Please, take a look: https://github.com/KostyaLyapochkin/ExoPlayerErrorExample I am attaching a video too: 2021-05-19-10-28-51.mp4 |
Had a quick look at the linked project and I spot any likely causes for this. Did you try |
@andrewlewis Yes, I did. But It has not helped at all. |
I'm unable to reproduce the problem using the linked project and repeating the orientation changes shown in the attached video. I tried on a real Pixel 3a XL and an emulated Pixel 4. In both cases playback continued after the second orientation change. Do you see this error 100% of the time? Do you see it on all devices? |
For instance, All Android Emulators work without this error and I can't say something about Pixel 3a XL but Pixel 4/4A work as well. What doesn't work? Galaxy S8 (Android 9), Galaxy S6 Edge (Android 7.1), Galaxy Note 8 (Android 9), Samsung SM T810 (Android 7.1), Galaxy A50 2016 (Android 7.1), Pixel 2XL, Xiaomi Note 7 Pro (Android 10), Xiaomi Redmi Note 8 Pro (Android 9), Huawei Honor 10 (Android 9) |
This is a bug in ExoPlayer, rather than in the underlying platform. Which is good news, since it means we can easily fix it! The problem occurs when |
Issue: #8776 PiperOrigin-RevId: 376186877
This should be fixed by the commit referenced above. We'll get it into 2.14.1. |
Issue: #8776 PiperOrigin-RevId: 376186877
Hi @ojw28 . I spotted this issue in the changelog for 2.14.1 and realised that we have this issue as well (albeit not the top and hence not something I was actively looking into). Even we weren't using the We aren't able to update to 2.14.x right now so I am hoping to resolve the issue with this flag. |
@saurabharora90 - This issue was tracking a specific bug that would cause a |
Hi. A strange issue has come about in a project.
As I said before this bug arises in the strange way. What happens? I had to add supporting of ad to the project so I used ExoPlayer’s ima extensions. The application supports rotation and I keep the player inside of a retain fragment.
It happens When the first ad is playing and I change the orientation of the device at the same time.
But when the main content is playing after rotation and the ad was in progress and then I try to change orientation again I will catch this exception moreover if I wait for a while and get the next ad and then I change orientation I will not catch this error. In other words I have this bug when rotation was changed when the ad was playing then it ended and then I change orientation again.
However, “codecNeedsSetOutputSurfaceWorkaround” helps to escape this error but I have a little delay therefore It’s not suitable for me.
Finally, Only emulators can work fine. I have this problem on almost all physical devices.
Honestly speaking, I have not been able to repeat this issue in a demo project.
Maybe the problem is that the retain fragment re-creates views... It means that a Surface is not ready to handle the player... Can It happen? I use Widevine DASH
The text was updated successfully, but these errors were encountered: