Closed Bug 1765824 Opened 3 years ago Closed 3 years ago

ffmpeg/VAAPI (radeonsi_drv_video) Media decode process segfaults on Ubuntu 22.04 (Mozilla binary)

Categories

(Core :: Audio/Video: Playback, defect)

Firefox 99
defect

Tracking

()

RESOLVED DUPLICATE of bug 1751363

People

(Reporter: maikmerten, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0

Steps to reproduce:

Using Mozilla's official Linux binary on Ubuntu 22.04 and visiting (for example, happens on other videos as well) https://www.youtube.com/watch?v=aqz-KE-bpKQ and selecting 1080p leads to a segfault of the media decode process.

The Firefox package provided by Ubuntu seems to be fine in this regard (but is having other problems related to snap packaging).

Actual results:

YouTube displays a message about a media playback problem. Video-playback doesn't proceed.

In Linux kernel logs, following segfault is logged:

[ 657.318840] MediaPD~oder #1[10525]: segfault at 0 ip 00007f5d0823924d sp 00007f5cf42ace50 error 4 in libc.so.6[7f5d0810e000+195000]
[ 657.318857] Code: 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 f3 0f 1e fa 41 55 49 89 fd 41 54 49 89 f4 55 48 89 d5 53 48 89 cb 48 83 ec 08 48 8b 07 <48> 8b 38 48 85 ff 74 1b e8 36 25 00 00 48 89 03 48 85 c0 74 15 48

The numeric values are stable over multiple crashes.

Expected results:

Video playback should function without crashes.

Firefox outputs interesting messages to console during these crashes:

libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_14
ATTENTION: default value of option mesa_glthread overridden by environment.
/usr/share/libdrm/amdgpu.ids: Permission denied
[Child 23450, MediaDecoderStateMachine #1] WARNING: Decoder=7f6e3fbf8000 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /builds/worker/checkouts/gecko/dom/media/MediaDecoderStateMachine.cpp:3577
[Child 23450, MediaDecoderStateMachine #1] WARNING: Decoder=7f6e3fbf8000 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /builds/worker/checkouts/gecko/dom/media/MediaDecoderStateMachine.cpp:3577
[Child 23450, MediaDecoderStateMachine #1] WARNING: Decoder=7f6e3fbf8000 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /builds/worker/checkouts/gecko/dom/media/MediaDecoderStateMachine.cpp:3577
[Child 23450, MediaDecoderStateMachine #1] WARNING: Decoder=7f6e3fbf8000 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /builds/worker/checkouts/gecko/dom/media/MediaDecoderStateMachine.cpp:3577
[Child 23450, MediaDecoderStateMachine #1] WARNING: Decoder=7f6e3fbf8000 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /builds/worker/checkouts/gecko/dom/media/MediaDecoderStateMachine.cpp:3577
[Child 23450, MediaDecoderStateMachine #1] WARNING: Decoder=7f6e3fbf8000 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /builds/worker/checkouts/gecko/dom/media/MediaDecoderStateMachine.cpp:3577
[Child 23450, MediaDecoderStateMachine #1] WARNING: Decoder=7f6e3fbf8000 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /builds/worker/checkouts/gecko/dom/media/MediaDecoderStateMachine.cpp:3577
[Child 23450, MediaDecoderStateMachine #1] WARNING: Decoder=7f6e3fbf8000 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /builds/worker/checkouts/gecko/dom/media/MediaDecoderStateMachine.cpp:3577
[Child 23450, MediaDecoderStateMachine #1] WARNING: Decoder=7f6e3fbf8000 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /builds/worker/checkouts/gecko/dom/media/MediaDecoderStateMachine.cpp:3577
[Child 23450, MediaDecoderStateMachine #1] WARNING: Decoder=7f6e3fbf8000 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /builds/worker/checkouts/gecko/dom/media/MediaDecoderStateMachine.cpp:3577
[Child 23450, MediaDecoderStateMachine #1] WARNING: Decoder=7f6e3fbf8000 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /builds/worker/checkouts/gecko/dom/media/MediaDecoderStateMachine.cpp:3577
[Child 23450, MediaDecoderStateMachine #1] WARNING: Decoder=7f6e3fbf8000 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /builds/worker/checkouts/gecko/dom/media/MediaDecoderStateMachine.cpp:3577

With VA-API being mentioned, I turned off media.ffmpeg.vaapi.enabled and now video playback works.

The Bugbug bot thinks this bug should belong to the 'Core::Audio/Video: Playback' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core

"media.ffmpeg.vaapi.enabled" should default to false.

Severity: -- → S4
Summary: Media decode process segfaults on Ubuntu 22.04 (Mozilla binary) → ffmpeg/VAAPI (radeonsi_drv_video) Media decode process segfaults on Ubuntu 22.04 (Mozilla binary)

MOZ_DISABLE_RDD_SANDBOX=1 environment variable is required until bug 1751363 has been fixed.

No longer blocks: egl-linux-vaapi
Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.