Closed Bug 1780962 Opened 2 years ago Closed 1 years ago

[NVIDIA] VAAPI shows corrupt video eventually leading to system freeze

Categories

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

Firefox 104
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: ilgaz, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

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

Steps to reproduce:

  1. Enable EGL
  2. Enable VAAPI
  3. Watch a video such as https://twitter.com/i/status/1550834928480407552

Actual results:

Video shows corrupt contents with a blue tone eventually freezes Firefox and whole system requiring power button poweroff. Happens on current stable version too.

Expected results:

Show video either using VAAPI or fallback to ffmpeg decoding.

inxi -G
Graphics:
Device-1: NVIDIA C79 [GeForce 9400M] driver: nouveau v: kernel
Device-2: Apple Built-in iSight type: USB driver: uvcvideo
Display: x11 server: X.Org v: 21.1.3 with: Xwayland v: 22.1.3 driver: X:
loaded: modesetting unloaded: fbdev,vesa gpu: nouveau
resolution: 1280x800~60Hz
OpenGL: renderer: NVAC v: 3.3 Mesa 22.1.3

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
Severity: -- → S4
Priority: -- → P3

Can you share your about:support? "Copy text to clipboard" -> paste in comment -> bugzilla will ask to make it an attachment -> yes

Flags: needinfo?(ilgaz)

Unfortunately it will have to wait since I am in quarantine because of covid 19 and that particular laptop is at my workplace. I will submit this information in a week. Thanks for caring.

Flags: needinfo?(ilgaz)
Attached file about_support (deleted) —
(In reply to Robert Mader [:rmader] from comment #3) > Can you share your `about:support`? "Copy text to clipboard" -> paste in comment -> bugzilla will ask to make it an attachment -> yes Hello Here is the information needed.

(In reply to Robert Mader [:rmader] from comment #3)

Can you share your about:support? "Copy text to clipboard" -> paste in comment -> bugzilla will ask to make it an attachment -> yes

Hello

Here is the information needed.

Summary: VAAPI Nouveau shows corrupt video eventually leading to system freeze → [NVIDIA] VAAPI shows corrupt video eventually leading to system freeze
Attached file about:support (nightly) (deleted) —
I noticed openSUSE Tumbleweed moved to nouveau 22.3.3 series with better multi threading support so I tested again with vaapi enabled. On Firefox 108.0.2 video sometimes plays without glitches but generally showing the same corruption and after several minutes of playback, it may freeze the system. Interestingly, on nightly 111.0a1 (2023-01-20) (64-bit) video plays perfectly with considerably lower CPU than software rendering and no freezes of any kind have been noticed. about support (of nightly) attached

On Firefox 110.0.1 (64-bit) on openSUSE Tumbleweed / nouveau 23.0 / kernel 6.2.1 this issue has been resolved.
Tested on Twitter and https://archive.org/details/BigBuckBunny_124 (h264 file selected)

inxi -G
Graphics:
Device-1: NVIDIA C79 [GeForce 9400M] driver: nouveau v: kernel
Display: wayland server: X.org v: 1.21.1.7 with: Xwayland v: 22.1.8
compositor: kwin_wayland driver: X: loaded: modesetting unloaded: fbdev,vesa
dri: nouveau gpu: nouveau resolution: 1280x800
API: OpenGL v: 3.3 Mesa 23.0.0 renderer: NVAC

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → WORKSFORME

This issue recently popped up again so I did a Mozilla regression test(GUI). The application shows this as a result:
2023-05-09T14:21:23.566000: DEBUG : Found commit message:
Bug 1812030 - Fix pref observers in nsCookieInjector. r=timhuang

  • Fix typo in IsEnabledForCurrentPrefState leading to component not enabling if
    one of the service modes was set to disabled.
  • Clean up pref observer code by moving list of prefs to array.

Differential Revision: https://phabricator.services.mozilla.com/D167664

2023-05-09T14:21:23.566000: DEBUG : Did not find a branch, checking all integration branches
2023-05-09T14:21:23.574000: INFO : The bisection is done.
2023-05-09T14:21:23.612000: INFO : Stopped

Status: RESOLVED → UNCONFIRMED
Resolution: WORKSFORME → ---

Please file a new bug as it's a new regression. Does this only occur if you force-enable hardware video decoding / vaapi? (Please put the answer in the new bug report.)

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago1 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: