Bug 257089 - [GStreamer] Youtube broken on NVidia GPU
Summary: [GStreamer] Youtube broken on NVidia GPU
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Nightly Build
Hardware: Other Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
: 257088 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-05-20 10:55 PDT by tarch1
Modified: 2023-07-30 10:44 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tarch1 2023-05-20 10:55:09 PDT
Hi,
I'm running Epiphany browser that works very great in most sites but it will become unusable with youtube, that have working audio but doesn't reproduce video, it instead shows only a white window and when in fullscreen a black one.
I have a laptop with i5-11400H and RTX 3060
The system is Artix, linux kernel 6.3.2, with gnome-shell and gnome relative packages, and by following the Arch wiki I've installed all the Gstreamer plugins.
Whit a video it uses 300 MB and webkitwebprocess uses 750 MB, measured with bpytop.
App version: epiphany 44.2 - webkitgtk-6.0 2.40.1 - webkit2gtk-4.1 2.40.1 - mutter 44.1 - gnome-shell 44.1
Comment 1 tarch1 2023-05-20 10:55:22 PDT
*** Bug 257088 has been marked as a duplicate of this bug. ***
Comment 2 Philippe Normand 2023-05-23 10:18:32 PDT
Can you follow the instructions and upload logs please?

https://github.com/Igalia/meta-webkit/wiki/Providing-useful-GStreamer-Zero-copy-issue-reports#in-webkit
Comment 3 tarch1 2023-05-23 10:56:39 PDT
Manufacturer: ASUSTeK COMPUTER INC.
Model: FX706HM
CPU : 11th Gen Intel(R) Core(TM) i5-11400H @ 2.70GHz
Operating System Version: "Artix Linux"
Kernel : Linux 6.3.2-artix1-1
Video Card: nVidia RTX 3060
Driver : nvidia 530.41.03-11 - nvidia-prime 1.0-4 - nvidia-utils 530.41.03-1
Driver: Intel Mesa Intel(R) UHD Graphics (TGL GT1)
Driver Version: 4.6 (Compatibility Profile) Mesa 23.0.3
OpenGL Version: 4.6
Audio device: Realtek ALC256
RAM: 15721 Mb

gst-inspect-1.0 version 1.22.2
GStreamer 1.22.2
GST packages : clutter-gst gnome-video-effects gst-editing-services gst-libav gst-plugin-gtk gst-plugin-pipewire gst-plugins-bad gst-plugins-bad-libs gst-plugins-base gst-plugins-base-libs gst-plugins-good gst-plugins-openh264 gstreamer-vaapi gupnp-dlna rygel totem

Using  gst-play-1.0 --videosink glimagesink /path/to/video.mp4 with a random video use 2% of CPU and run smoothly
Comment 4 Philippe Normand 2023-05-23 11:52:04 PDT
Did you read the "In WebKit" section of the wiki page?
Comment 5 tarch1 2023-05-23 12:23:01 PDT
I took some info from steam to make it quick
With this command I can't produce any log file in /tmp :
GST_DEBUG="3,webkit*:6" GST_DEBUG_FILE=/tmp/gst.log GST_DEBUG_DUMP_DOT_DIR=/tmp epiphany "https://www.youtube.com/watch?v=EUlC8ue8NFI"

instead in terminal output I have 
(epiphany:12205): Gtk-WARNING **: 21:23:33.323: GtkWindowControls 0x55c27fc62d20 (windowcontrols) reported min width -166, but sizes must be >= 0

(epiphany:12205): Gtk-WARNING **: 21:23:33.325: GtkWindowControls 0x55c27fcc96f0 (windowcontrols) reported min width -166, but sizes must be >= 0

(epiphany:12205): epiphany-WARNING **: 21:23:35.384: Web process crashed

sorry for late