google / google/ExoPlayer

After updating to Android 12, an ACodec: dequeueBuffer failed: NO_INIT(-19) error occurs.

Open
#10,021 18 comments 5 reactions 1 assignee Assigned to @microkatz View on GitHub
bug: device specific needs triage
Dominant language
Java
Stars
21.9k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

- ExoPlayer version number = 2.16.1 , 2.17.0
- Android version = 12 , API 31
- Android device = Galaxy S10+

Hello.
I am making an app related to video.

Instead of downloading it first, save it locally and then play it.
As a test, I put the mp4 video into a raw file in Android Studio and play it first.

First, let's take a quick look at the logs.
Under normal circumstances, the onPlaybackStateChanged listener will return as below.

Logs > Player.STATE_BUFFERING
Log > Player.STATE_READY
Log > setPlayWhenReady: true

However, if you try to play the video occasionally, the following log appears and the video cannot be played.

Logs > Player.STATE_BUFFERING
Log > Player.STATE_READY
Log > setPlayWhenReady: true
Logs > Player.STATE_BUFFERING
E/BufferQueueProducer: [SurfaceTexture-1-9339-7](id:247b0000002d,api:0,p:-1,c:9339) dequeueBuffer: No producer associated with BufferQueue.
E/ACodec: dequeueBuffer failed: NO_INIT(-19).

After returning READY from the status listener, it returns BUFFERING again.
I get an error with a message stating that there is no producer attached to the BufferQueue.

The funny thing is that this issue occurs when entering and exiting the video playback screen and looping multiple times, and in some cases the error occurs upon first entry.

Other models were also tested.
In the case of the Galaxy Fold 3, no error occurred after repeating more than 15 times.
There were no errors with the LG-V30 device.

For reference, the Galaxy Fold 3 version is 12, and the LG-V30 is version 9.

The Galaxy S10+ is currently the only one with the error.
The difference is that the OS was recently updated.

Please check this issue. thank you

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.