Closed Bug 1888151 Opened 1 year ago Closed 1 year ago

1440p youtube video no longer plays

Categories

(Core :: Widget: Gtk, defect)

Firefox 125
defect

Tracking

()

RESOLVED DUPLICATE of bug 1878510

People

(Reporter: o2q2tcedsh0, Unassigned)

Details

Attachments

(8 files)

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

Steps to reproduce:

Ubuntu 24.04 Firefox 124.0.1 Snap
Intel i3-1220P

It happens with many YouTube videos that are played in 1440p resolution. If you jump forward in the timeline, the video freezes more quickly.
The play button no longer responds.

The video for example(1440p60)
https://www.youtube.com/watch?v=LXb3EKWsInQ

Actual results:

Video freeze and the play button does not respond anymore.

Terminal output:
tk-Message: 15:12:32.768: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
Gtk-Message: 15:12:34.883: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
libva info: VA-API version 1.20.0
libva info: Trying to open /snap/firefox/4033/gnome-platform/usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_20
libva info: va_openDriver() returns 0
[Parent 20897, Main Thread] WARNING: Couldn't map window 0x7ac948940460 as subsurface because its parent is not mapped.: 'glib warning', file /build/firefox/parts/firefox/build/toolkit/xre/nsSigHandlers.cpp:187

(firefox:20897): Gdk-WARNING **: 15:43:48.226: Couldn't map window 0x7ac948940460 as subsurface because its parent is not mapped.
[Parent 20897, Main Thread] WARNING: Couldn't map window 0x7ac948940460 as subsurface because its parent is not mapped.: 'glib warning', file /build/firefox/parts/firefox/build/toolkit/xre/nsSigHandlers.cpp:187

(firefox:20897): Gdk-WARNING **: 15:43:50.752: Couldn't map window 0x7ac948940460 as subsurface because its parent is not mapped.
[Parent 20897, Main Thread] WARNING: Couldn't map window 0x7ac948940460 as subsurface because its parent is not mapped.: 'glib warning', file /build/firefox/parts/firefox/build/toolkit/xre/nsSigHandlers.cpp:187

(firefox:20897): Gdk-WARNING **: 15:43:50.752: Couldn't map window 0x7ac948940460 as subsurface because its parent is not mapped.

This is from the Gnome logs and there are many entries of it once the video starts.

audit: type=1107 audit(1711551386.803:390): pid=1462 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_signal" bus="system" path="/org/freedesktop/login1" interface="org.freedesktop.DBus.Properties" member="PropertiesChanged" name=":1.3" mask="receive" pid=20897 label="snap.firefox.firefox" peer_pid=1458 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'

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

Component: Untriaged → Widget: Gtk
Product: Firefox → Core
Flags: needinfo?(o2q2tcedsh0)

I have the behavior in a similar way with the Mozilla binaries. The video does not freeze so often anymore. The video doesn't freeze as often and you can click on the timeline and go back a little, after which the video starts running again. Would you like Video debug information from the youtube video(Firefox Snap and Firefox Mozilla binarie)?

Flags: needinfo?(o2q2tcedsh0)

Please attach about:support page from broken setup.

You can also try to disable HW video decode:
https://fedoraproject.org/wiki/Firefox_Hardware_acceleration#Video_decoding

Flags: needinfo?(o2q2tcedsh0)

(In reply to Maddi from comment #3)

Would you like Video debug information from the youtube video(Firefox Snap and Firefox Mozilla binarie)?

I don't quite understand. Do you see any issues with Firefox Mozilla binaries too?
Thanks.

I don't see the error message I inserted in my first post. I meant the information from the video player when the freeze occurs. The video also stops partially after some time with the Firefox binary.

Flags: needinfo?(o2q2tcedsh0)
Attached file firefox-snap.txt
Attached file firefox-binary.txt

Please attach your about:support page.
Thanks.

Flags: needinfo?(o2q2tcedsh0)

This is from my Ubuntu 22.04 installation with Firefox Snap.

Flags: needinfo?(o2q2tcedsh0)
Attached file raw.txt
Attached file text.txt

Please go at about:config page, look at setting media.hardware-video-decoding.enabled and flip it to false and restart browser. Is the video playback better?
Thanks.

Flags: needinfo?(o2q2tcedsh0)

No the same problem occurs with "media.hardware-video-decoding.enabled" to false.

Flags: needinfo?(o2q2tcedsh0)

Okay, please try Mozilla binaries:
https://fedoraproject.org/wiki/How_to_debug_Firefox_problems#Testing_Mozilla_binaries

and run it on terminal with MOZ_LOG="FFmpegVideo:5" env variable and reproduce the issue. It produces a playback log with VA-API / ffmpeg details so please attach the log here. You may run it as:

MOZ_LOG="FFmpegVideo:5" ./firefox > log.txt 2>&1

and attach log.txt.

Thanks.

Flags: needinfo?(o2q2tcedsh0)
Attached file log.txt
Flags: needinfo?(o2q2tcedsh0)

I don't see any error in the log...did you see any issue when you captured it?
Thanks.

Flags: needinfo?(o2q2tcedsh0)

(In reply to Martin Stránský [:stransky] (ni? me) from comment #17)

I don't see any error in the log...did you see any issue when you captured it?

I have not seen any error messages in the terminal or in the logs. But I have seen strange picture errors and when it freezes, the CPU usage is high. I am adding a screenshot.

Sometimne if I hold down the timeline and jump forward in time, the video starts running again.

Flags: needinfo?(o2q2tcedsh0)
Attached image 0.png

It looks like gfx drivers issue. You may try to flip HW acceleration at all but it makes Firefox slow:
https://fedoraproject.org/wiki/Firefox_Hardware_acceleration#Force_disable_hardware_acceleration

Also please set media.hardware-video-decoding.enabled to false, restart browser and attach about:support page here.
Thanks.

Flags: needinfo?(o2q2tcedsh0)
Attached file raw1.txt
Flags: needinfo?(o2q2tcedsh0)
Attached file text1.txt

Thanks, media.hardware-video-decoding.enabled seems to work correctly. Can you please try to flip media.ffmpeg.customized-buffer-allocation to false at about:config and try the decode again? It disabled direct ffmpeg decode to shm. It may not be the issue here but better try.
Thanks.

Flags: needinfo?(o2q2tcedsh0)

After that, the video still freezes. Maybe it helps, under Windows 11 the same thing happens with Firefox and the video freezes. This does not happen with Chrome and Chromium.

Flags: needinfo?(o2q2tcedsh0)

Now the picture errors also happen on another PC and also in 1080p.
This seems to circumvent the error(disable VP9 in Youtube and use AVC).
media.webm.enabled to false

Version: Firefox 124 → Firefox 125

Firefox 127.0.2 solves the problem.
bug 1900191, bug 1878510

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1878510
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: