flathub / org.avidemux.Avidemux

https://flathub.org/apps/details/org.avidemux.Avidemux
3 stars 2 forks source link

Can't launch Avidemux anymore, X11 won't find Xwayland display (even though it seems to be there) and Wayland crashes #29

Open ell1e opened 23 hours ago

ell1e commented 23 hours ago

I can't launch Avdemux anymore even though it used to work, when using a KDE Plasma Wayland session.

This is what happens with the flatseal defaults that allow X11 and disallow native Wayland:

$ flatpak run org.avidemux.Avidemux
...
 [UI_Init] 17:52:22-133  Starting Qt5 GUI...
Failed to create wl_display (No such file or directory)
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
qt.qpa.xcb: could not connect to display :1
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

~ $ ps aux | grep -i xwayl
 3372 user     0:00 /usr/bin/kwin_wayland_wrapper --xwayland
 3373 user     1h59 /usr/bin/kwin_wayland --wayland-fd 7 --socket wayland-0 --xwayland-fd 8 --xwayland-fd 9 --xwayland-display :1 --xwayland-xauthority /run/user/10000/xauth_qmFtRv --xwayland
 3579 user     1:03 /usr/bin/Xwayland :1 -auth /run/user/10000/xauth_qmFtRv -listen 202 -listen 203 -displayfd 194 -rootless -wm 197
 3725 user     0:01 /usr/bin/xwaylandvideobridge
31973 user     0:00 grep -i xwayl

It seems like it can't find Xwayland somehow, despite it being running.

However, if I enable Wayland via flatseal it doesn't work either, and it crashes instead:

$ flatpak run org.avidemux.Avidemux
...
 [initGUI] 17:55:21-647  OpenGL enabled at build time, checking whether we should run it... no.
The screen seems to be 1280 x 720 px
 [destroy] 17:55:21-666  Destroying preview
 [renderDisplayResize] 17:55:21-666  Render to 0x0 zoom=1.0000, old one =0 x 0, zoom=1.0000, renderer=(nil)
 [UI_resize] 17:55:21-666  Resizing the main window to 215x161 px
[RDR] Resizing to 0 x 0
 [initGUI] 17:55:21-677  OpenGL not activated, not initialized
Probing for VDPAU...

*********** BACKTRACK **************
/app/lib/libADM_core6.so(ADM_backTrack+0x7f) [0x7fdddd81609f]:0:<ADM_backTrack>:-2
/usr/lib/x86_64-linux-gnu/libc.so.6(+0x3ee80) [0x7fdddaa51e80]:1:<>:-2
/usr/lib/x86_64-linux-gnu/libvdpau.so.1(+0x1a66) [0x7fdddcaaba66]:2:<>:-2
/usr/lib/x86_64-linux-gnu/libvdpau.so.1(vdp_device_create_x11+0x12b) [0x7fdddcaac22b]:3:<vdp_device_create_x11>:-2
/app/lib/libADM_coreVDPAU6.so(_ZN8admVdpau4initEP14GUI_WindowInfo+0x81) [0x7fdddd84da01]:4:<admVdpau::init(GUI_WindowInfo*)>:0
avidemux3_qt5(_Z10vdpauProbev+0x4a) [0x5654f2737c3a]:5:<vdpauProbe()>:0
avidemux3_qt5(_Z13startAvidemuxiPPc+0x313) [0x5654f2700603]:6:<startAvidemux(int, char**)>:0
avidemux3_qt5(main+0x24) [0x5654f26f0164]:7:<main>:-2
/usr/lib/x86_64-linux-gnu/libc.so.6(+0x2808a) [0x7fdddaa3b08a]:8:<>:-2
/usr/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x8b) [0x7fdddaa3b14b]:9:<__libc_start_main>:-2
avidemux3_qt5(_start+0x25) [0x5654f26f2905]:10:<_start>:-2
*********** BACKTRACK **************
*********** Exiting **************
$
guihkx commented 20 hours ago

Interestingly, I got the same Failed to create wl_display (No such file or directory) message, but Avidemux's window did eventually show up. Also tested on Plasma Wayland 6.2.3:

Screenshot_20241117_210519

The second issue about Avidemux crashing when the Wayland socket is enabled is known, and I believe it's an upstream one...

guihkx commented 20 hours ago

I've downgraded Avidemux one commit prior to the recent update to runtime 24.08 with:

sudo flatpak update --commit=83e829cece4a110c820c032fe4a92355f9ee2f17611fe4d6ff2ec03437fe7738 org.avidemux.Avidemux

In my testing, the Failed to create wl_display (No such file or directory) message still shows up, so I don't think this issue is a byproduct of the runtime update.

I've also verified this on GNOME 47, on Wayland. The message also shows up, but similarly to Plasma, Avidemux's window still shows up:

Screenshot From 2024-11-17 21-34-30