Closed Bug 1841252 Opened 2 years ago Closed 1 month ago

[Intel] Firefox crashes when watching video using VA-API

Categories

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

Firefox 121
x86_64
Linux
defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox-esr115 --- wontfix
firefox123 --- wontfix
firefox124 --- wontfix
firefox125 --- wontfix

People

(Reporter: monsterovich, Unassigned)

References

(Blocks 1 open bug, )

Details

(Keywords: crash)

Crash Data

Attachments

(2 files)

Attached file log.txt

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

Steps to reproduce:

FF may crash at any moment, for example after 15 minutes of watching video on YouTube. I haven't found a way to cause it intentionally.

Actual results:

Firefox closes entirely. Also offers to send a bug repport.

Expected results:

The most interesting thing is that this happens only on Intel iGPU. On NVidia with this (https://github.com/elFarto/nvidia-vaapi-driver) driver this doesn't happen.

libva info: VA-API version 1.14.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.14 (libva 2.12.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 22.3.1 ()
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSliceLP
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSliceLP
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointEncPicture
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
VAProfileVP8Version0_3 : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointVLD

Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core
Attached file about:support.txt
Severity: -- → S2

Do you have anything in your about:crashes? Can you submit that and attach crash ID here?
See https://fedoraproject.org/wiki/How_to_debug_Firefox_problems#Collect_information_for_a_bug_report for details.
Thanks.

Flags: needinfo?(monsterovich)

I have a lot of them on different browser versions.
https://crash-stats.mozilla.org/report/index/e2a9f69f-8b3e-4e80-b14a-d2fc10230710

Probably still need to build Firefox with debug symbols otherwise we won't see stacktrace. How to do that with mach thing, btw?

Flags: needinfo?(monsterovich)
Flags: needinfo?(monsterovich)
Severity: S2 → S3
Flags: needinfo?(monsterovich)

(In reply to Martin Stránský [:stransky] (ni? me) (PTO, Back Feb 12) from comment #4)

Please try to use plain Mozilla binaries:
https://fedoraproject.org/wiki/How_to_debug_Firefox_problems#Testing_Mozilla_binaries
Thanks.

Flags: needinfo?(monsterovich)
Whiteboard: [closeme 2024-02-25]

I managed to catch a crash while watching YouTube videos. Here's the stacktrace. Sorry for the delay the bug is very random-ish.

https://pastebin.com/e8PPCkff

What's interesting is that somehow you can even catch it watching the same parts of the video, but maybe it's unrelated and just random.

Flags: needinfo?(monsterovich)
Version: Firefox 114 → Firefox 121

It's a crash in iris_dri.so which is Intel gfx driver. Can you try to install debug info for /usr/lib/x86_64-linux-gnu/dri/iris_dri.so and try again?
Also do you see the crash if you set media.hardware-video-decoding.enabled to false?
Thanks.

Flags: needinfo?(monsterovich)

https://gitlab.freedesktop.org/mesa/mesa/-/issues/10656

Here's a full stacktrace. Whether this issue needs to be closed or not is up to you. It seems to be a bug in the driver.

Also do you see the crash if you set media.hardware-video-decoding.enabled to false?

Need to test for a few days...

Flags: needinfo?(monsterovich)
Whiteboard: [closeme 2024-02-25]
Priority: -- → P3
Summary: Firefox crashes when watching video using VA-API → [Intel] Firefox crashes when watching video using VA-API
Status: UNCONFIRMED → NEW
Crash Signature: [@ abort | _iris_batch_flush ] [@ <name omitted> | abort | _iris_batch_flush ] [@ mozalloc_abort | abort | _iris_batch_flush.cold ]
Ever confirmed: true
Keywords: crash
OS: Unspecified → Linux
Hardware: Unspecified → x86_64

The problem has gone away for me so far after upgrading to kernel 6.*

Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: