google / google/ExoPlayer

Application is crashing if AV1 extension is enabled

Open
#11,011 5 comments 0 reactions 1 assignee Assigned to @tonihei View on GitHub
bug: in dependency low priority
Dominant language
Java
Stars
21.9k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

### ExoPlayer Version

2.18.3

### Devices that reproduce the issue

1. Xiaomi Redmi Note 11 Pro+ 5G
2. Google Chromecast 4K
3. Xiaomi Mi Box S

### Devices that do not reproduce the issue

_No response_

### Reproducible in the demo app?

Yes

### Reproduction steps

1. Build and enable AV1 extension;
2. Set Renderer mode to `DefaultRenderersFactory.EXTENSION_RENDERER_MODE_PREFER`;
3. Watch the video until the end.

### Expected result

Video must stop.

### Actual result

Application is crashing when video ends with `Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xa5 in tid 4654 (ExoPlayer:Playb), pid 4195 (my.app)` fatal error.

Only this is available in the log:
```
2023-02-23 15:22:51.565 A pid: 4195, tid: 4654, name: ExoPlayer:Playb >>> com.my.app <<<
2023-02-23 15:22:51.565 A #00 pc 0000000000068848 /data/app/~~6k9XQkBDbYrDWlvm8Hxukg==/com.my.app-IEHIIjZr0KcDf3VXDfJtFw==/lib/arm64/libgav1JNI.so (Java_com_google_android_exoplayer2_ext_av1_Gav1Decoder_gav1ReleaseFrame+100) (BuildId: 4f2560d8317eed9d5043c4136143f7b467bfc4d5)
2023-02-23 15:22:51.565 A #03 pc 0000000000008092 /data/data/com.my.app/code_cache/.overlay/base.apk/classes4.dex (com.google.android.exoplayer2.ext.av1.Gav1Decoder.releaseOutputBuffer+26)
2023-02-23 15:22:51.565 A #05 pc 0000000000007d58 /data/data/com.my.app/code_cache/.overlay/base.apk/classes4.dex (com.google.android.exoplayer2.ext.av1.Gav1Decoder$$ExternalSyntheticLambda0.releaseOutputBuffer+8)
2023-02-23 15:22:51.565 A #07 pc 0000000000019a98 /data/data/com.my.app/code_cache/.overlay/base.apk/classes3.dex (com.google.android.exoplayer2.decoder.VideoDecoderOutputBuffer.release+4)
```

### Media

Media link: https://woolyss.com/f/caminandes-1-llama-drama-av1-opus.webm

### Bug Report

- [ ] You will email the zip file produced by `adb bugreport` to dev.exoplayer@gmail.com after filing this issue.

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.