xibosignage / xibo-linux

Xibo for Linux - Digital Signage Player
https://xibo.org.uk/xibo-for-linux
GNU Affero General Public License v3.0
76 stars 54 forks source link

Ubuntu/Debian 22.04 LTS with wayland disabled: GstMediaPlayer Error from element sink: Failed to initialize OpenGL with Gtk #273

Closed robertolumbreras closed 2 years ago

robertolumbreras commented 2 years ago

I tried xibo-player on Debian 11/stable (bullseye) and Ubuntu 22.04 LTS + Gnome with same result: player screen is black when playing videos and the following error shows up in the terminal:

[13:38:39.461] [15211] [error]: [GstMediaPlayer] Error from element sink: Failed to initialize OpenGL with Gtk

lsb_release -a

No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04 LTS Release: 22.04 Codename: jammy

snap list

Name Version Rev Tracking Publisher Notes bare 1.0 5 latest/stable canonical✓ base core18 20220428 2409 latest/stable canonical✓ base core20 20220527 1518 latest/stable canonical✓ base firefox 101.0.1-1 1443 latest/stable/… mozilla✓ - gnome-3-28-1804 3.28.0-19-g98f9e67.98f9e67 161 latest/stable canonical✓ - gnome-3-38-2004 0+git.891e5bc 112 latest/stable/… canonical✓ - gtk-common-themes 0.1-79-ga83e90c 1534 latest/stable/… canonical✓ - snap-store 41.3-60-gfe4703a 582 latest/stable/… canonical✓ - snapd 2.56 16010 latest/stable canonical✓ snapd snapd-desktop-integration 0.1 14 latest/stable/… canonical✓ - xibo-player 1.8-R6 108 latest/stable xibosignage -

dasgarner commented 2 years ago

Is that using Wayland or X11?

We know of an issue with Wayland - see #268

robertolumbreras commented 2 years ago

Yes, it's wayland, you are right, it may be the same issue, but the error I got is different. I've just tried with X11 (set WaylandEnable=false in /etc/gdm3/daemon.conf) but then xibo-player doesn't start because it cannot connect to display :0 I tried reinstalling xibo-player but it didn't solve it. I still doesn't understand the snap stuff so I'm stuck with it.

dasgarner commented 2 years ago

You might try switching to the beta channel as we do have some fixes in there, but i'm not hopeful to be honest.

snap refresh xibo-player --channel=beta

If that doesn't work, then if you would kindly grab the exact error by starting the player from the terminal, i'll put this on the queue to look at.

robertolumbreras commented 2 years ago

Hi, Same result with the beta channel. Here you have the output running xibo-player from the terminal.

log-xibo-beta.txt

dasgarner commented 2 years ago

We've built a version of the player against core20 instead of core18, which has made video play under Wayland. You could try the player version in edge, although we are working through some other issues with it too #267

robertolumbreras commented 2 years ago

Ok, I tried and now it works (1.8.R7-240).

But the problem I can see now is that the player doesn't use all the GPU hardware, xibo-player has problems skipping or dropping video frames while playing some videos that play perfectly with the other video players (mpv for example). This is an Intel Celeron J3060 with integrated "Mesa Intel HD Graphics 400 BSW" :-S Ubuntu is the last version (22.04 LTS) so I think it's not because of outdated drivers.

On Wed, Jul 13, 2022 at 9:20 AM Dan Garner @.***> wrote:

We've built a version of the player against core20 instead of core18, which has made video play under Wayland. You could try the player version in edge, although we are working through some other issues with it too

267 https://github.com/xibosignage/xibo-linux/issues/267

— Reply to this email directly, view it on GitHub https://github.com/xibosignage/xibo-linux/issues/273#issuecomment-1182857916, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB4SBISF46YSNBZDVZ5WZX3VTZU3TANCNFSM52CB4DNQ . You are receiving this because you authored the thread.Message ID: @.***>

-- Regards, -- Roberto Lumbreras Debian developer

dasgarner commented 2 years ago

Thank you for testing that - it is good to know that it works under Wayland now (hardware decoding aside).

I'll mention issue #140 here so that we have a record.