Closed Bug 1669189 Opened 4 years ago Closed 3 years ago

Crash in [@ XDisplayString] when enabling VAAPI on proprietary Nvidia (deprecated libva-vdpau-driver does not support Dmabuf)

Categories

(Core :: Widget: Gtk, defect, P5)

Unspecified
Linux
defect

Tracking

()

RESOLVED DUPLICATE of bug 1758473
Tracking Status
firefox83 --- disabled
firefox84 --- disabled
firefox85 --- disabled
firefox93 --- disabled
firefox94 --- disabled
firefox95 --- disabled
firefox96 --- disabled

People

(Reporter: gsvelto, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: crash)

Crash Data

Crash report: https://crash-stats.mozilla.org/report/index/275123e4-52e0-4872-bde5-849fd0200930

Reason: SIGSEGV /SEGV_MAPERR

Top 10 frames of crashing thread:

0 libX11.so.6 XDisplayString /usr/src/debug/libX11-1.6.12-1.fc32.x86_64/src/Macros.c:119
1 vdpau_drv_video.so __vaDriverInit_1_6 /usr/src/debug/libva-vdpau-driver-0.7.4-107.fc32.x86_64/src/vdpau_driver.c:317
2 libva.so.2 va_openDriver /usr/src/debug/libva-2.7.1-1.fc32.x86_64/va/va.c:521
3 libva.so.2 vaInitialize /usr/src/debug/libva-2.7.1-1.fc32.x86_64/va/va.c:742
4 libxul.so mozilla::FFmpegVideoDecoder<58>::CreateVAAPIDeviceContext dom/media/platforms/ffmpeg/FFmpegVideoDecoder.cpp:241
5 libxul.so mozilla::FFmpegVideoDecoder<58>::InitVAAPIDecoder dom/media/platforms/ffmpeg/FFmpegVideoDecoder.cpp:280
6 libxul.so mozilla::FFmpegVideoDecoder<58>::Init dom/media/platforms/ffmpeg/FFmpegVideoDecoder.cpp:378
7 libxul.so mozilla::MediaChangeMonitor::CreateDecoderAndInit dom/media/platforms/wrappers/MediaChangeMonitor.cpp:494
8 libxul.so mozilla::MediaChangeMonitor::CheckForChange dom/media/platforms/wrappers/MediaChangeMonitor.cpp:579
9 libxul.so mozilla::MediaChangeMonitor::Decode dom/media/platforms/wrappers/MediaChangeMonitor.cpp:294

This appears to be a NULL-pointer access when creating a VA-API context on Linux. Given that the actual access happens within external code the issue might not be caused directly by Firefox.

Hi all. Is there any news about this bug?

Here is my crash report: https://crash-stats.mozilla.org/report/index/d0305b58-8ce9-4680-afdf-862240201121
I can reproduce bug and test the fix if there is one. I'm using Nvidia GT 730 with proprietary drivers 450.80.02. Ask if you need more info.

Make sure media.ffmpeg.vaapi.enabled is disabled. The proprietary Nvidia driver doesn't support VAAPI and DMABUF.

Priority: -- → P5
Summary: Crash in [@ XDisplayString] → Crash in [@ XDisplayString] when enabling VAAPI on proprietary Nvidia

If I disable media.ffmpeg.vaapi.enabled then I stop getting the crash.
But VDPAU or NVDEC hardware decoding support on Linux ( https://bugzilla.mozilla.org/show_bug.cgi?id=1210729 ) is not ready, so I'm trying to use vdpau-va-driver.

The line in question doesn't look specious to me, thus I'd assume a bug in one of the downstream components.

Aleksey: unfortunately there's no chance on the proprietary nvidia - it has to support dmabuf, which again is blocked by the kernel (the part in question is GPL-only). So until nvidia and kernel devs have not settled on some solution, there's nothing we can do about it. Nouveau should/might work though.

Linux Arch crash signature.

Crash Signature: [@ XDisplayString] → [@ XDisplayString] [@ libX11.so.6@0x2f090]
Crash Signature: [@ XDisplayString] [@ libX11.so.6@0x2f090] → [@ XDisplayString] [@ libX11.so.6@0x2f090] [@ libX11.so.6@0x32b90 ]

That's dupe of Bug 1751710.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
Summary: Crash in [@ XDisplayString] when enabling VAAPI on proprietary Nvidia → Crash in [@ XDisplayString] when enabling VAAPI on proprietary Nvidia (deprecated libva-vdpau-driver does not support Dmabuf)
You need to log in before you can comment on or make changes to this bug.