score icon indicating copy to clipboard operation
score copied to clipboard

Flatpak (x86_64), Wayland, not opening

Open 38github opened this issue 5 months ago • 13 comments

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.
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, linuxfb, minimal, minimalegl, offscreen, vkkhrdisplay, vnc, wayland-egl, wayland, xcb.

38github avatar Jul 08 '25 21:07 38github

hello! which distro & DE are you using?

jcelerier avatar Jul 10 '25 13:07 jcelerier

also what if you set QT_QPA_PLATFORM=xcb to try to get xwayland?

jcelerier avatar Jul 10 '25 13:07 jcelerier

and, last question: is the the flatpak from flathub, or the one that comes from thisrepo ?

jcelerier avatar Jul 10 '25 16:07 jcelerier

and, last question: is the the flatpak from flathub, or the one that comes from thisrepo ?

It should be the one from here if I do not misremember.

38github avatar Jul 10 '25 20:07 38github

also what if you set QT_QPA_PLATFORM=xcb to try to get xwayland?

That works but has the scaling issues often associated with running under xwayland. Is the QT wayland library not included in the flatpak maybe?

38github avatar Jul 10 '25 20:07 38github

hmmm... the problem is that the graphics pipeline has issues with the wayland QPA so I disabled it. I test on every new Qt version but it still causes GUI glitches that are in Qt code.

jcelerier avatar Jul 10 '25 21:07 jcelerier

It mentions wayland in the plug-in list in your error message so the wayland qt plugin is there:

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

jcelerier avatar Jul 11 '25 02:07 jcelerier

do you think you could run the app with

QT_DEBUG_PLUGINS=1 QT_QPA_PLATFORM=wayland

and give me the output?

jcelerier avatar Jul 30 '25 11:07 jcelerier

do you think you could run the app with

QT_DEBUG_PLUGINS=1 QT_QPA_PLATFORM=wayland

and give me the output?

$ QT_DEBUG_PLUGINS=1 QT_QPA_PLATFORM=wayland flatpak run io.ossia.score
ossia score: starting in failsafe mode
QVariant::load: unknown user type with name TimeVal.
qt.core.plugin.factoryloader: checking directory path "/usr/share/runtime/lib/plugins/platforms" ...
qt.core.plugin.factoryloader: checking directory path "/usr/lib/plugins/platforms" ...
qt.core.plugin.factoryloader: looking at "libqeglfs.so"
qt.core.plugin.loader: Found metadata in lib /usr/lib/plugins/platforms/libqeglfs.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "eglfs"
        ]
    },
    "archlevel": 1,
    "className": "QEglFSIntegrationPlugin",
    "debug": false,
    "version": 395520
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("eglfs")
qt.core.plugin.factoryloader: looking at "libqlinuxfb.so"
qt.core.plugin.loader: Found metadata in lib /usr/lib/plugins/platforms/libqlinuxfb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "linuxfb"
        ]
    },
    "archlevel": 1,
    "className": "QLinuxFbIntegrationPlugin",
    "debug": false,
    "version": 395520
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("linuxfb")
qt.core.plugin.factoryloader: looking at "libqminimal.so"
qt.core.plugin.loader: Found metadata in lib /usr/lib/plugins/platforms/libqminimal.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimal"
        ]
    },
    "archlevel": 1,
    "className": "QMinimalIntegrationPlugin",
    "debug": false,
    "version": 395520
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("minimal")
qt.core.plugin.factoryloader: looking at "libqminimalegl.so"
qt.core.plugin.loader: Found metadata in lib /usr/lib/plugins/platforms/libqminimalegl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimalegl"
        ]
    },
    "archlevel": 1,
    "className": "QMinimalEglIntegrationPlugin",
    "debug": false,
    "version": 395520
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("minimalegl")
qt.core.plugin.factoryloader: looking at "libqoffscreen.so"
qt.core.plugin.loader: Found metadata in lib /usr/lib/plugins/platforms/libqoffscreen.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "offscreen"
        ]
    },
    "archlevel": 1,
    "className": "QOffscreenIntegrationPlugin",
    "debug": false,
    "version": 395520
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("offscreen")
qt.core.plugin.factoryloader: looking at "libqvkkhrdisplay.so"
qt.core.plugin.loader: Found metadata in lib /usr/lib/plugins/platforms/libqvkkhrdisplay.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "vkkhrdisplay"
        ]
    },
    "archlevel": 1,
    "className": "QVkKhrDisplayIntegrationPlugin",
    "debug": false,
    "version": 395520
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("vkkhrdisplay")
qt.core.plugin.factoryloader: looking at "libqvnc.so"
qt.core.plugin.loader: Found metadata in lib /usr/lib/plugins/platforms/libqvnc.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "vnc"
        ]
    },
    "archlevel": 1,
    "className": "QVncIntegrationPlugin",
    "debug": false,
    "version": 395520
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("vnc")
qt.core.plugin.factoryloader: looking at "libqwayland-egl.so"
qt.core.plugin.loader: Found metadata in lib /usr/lib/plugins/platforms/libqwayland-egl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "wayland-egl"
        ]
    },
    "archlevel": 1,
    "className": "QWaylandEglPlatformIntegrationPlugin",
    "debug": false,
    "version": 395520
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("wayland-egl")
qt.core.plugin.factoryloader: looking at "libqwayland-generic.so"
qt.core.plugin.loader: Found metadata in lib /usr/lib/plugins/platforms/libqwayland-generic.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "wayland"
        ]
    },
    "archlevel": 1,
    "className": "QWaylandIntegrationPlugin",
    "debug": false,
    "version": 395520
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("wayland")
qt.core.plugin.factoryloader: looking at "libqxcb.so"
qt.core.plugin.loader: Found metadata in lib /usr/lib/plugins/platforms/libqxcb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "xcb"
        ]
    },
    "archlevel": 1,
    "className": "QXcbIntegrationPlugin",
    "debug": false,
    "version": 395520
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("xcb")
qt.core.plugin.factoryloader: checking directory path "/app/bin/platforms" ...
qt.core.library: "/usr/lib/plugins/platforms/libqwayland-generic.so" loaded library
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.
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, linuxfb, minimal, minimalegl, offscreen, vkkhrdisplay, vnc, wayland-egl, wayland, xcb.

38github avatar Jul 30 '25 17:07 38github

hmm,

Failed to create wl_display (No such file or directory)

seems to be the culprit but I have no idea why that would happen :/

jcelerier avatar Jul 30 '25 20:07 jcelerier

What's your environment variables? e.g. the result of the env command (this may have personal information so please review it carefully before sharing it - you can mail it to me at [email protected] )

jcelerier avatar Jul 30 '25 20:07 jcelerier

What's your environment variables? e.g. the result of the env command (this may have personal information so please review it carefully before sharing it - you can mail it to me at [email protected] )

Sorry for the delay. I will get back to you on that.

38github avatar Aug 07 '25 09:08 38github

SHELL=/bin/bash
SESSION_MANAGER=local/openmandriva-x8664:@/tmp/.ICE-unix/1143,unix/openmandriva-x8664:/tmp/.ICE-unix/1143
WINDOWID=94205859179920
COLORTERM=truecolor
XDG_CONFIG_DIRS=/home/user/.config/kdedefaults:/etc/xdg
LESS=-R
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
HISTCONTROL=ignoreboth:erasedups
XDG_MENU_PREFIX=plasma-
HOSTNAME=openmandriva-x8664
HISTSIZE=
ICEAUTHORITY=/run/user/1001/iceauth_PtSTMp
LC_ADDRESS=en_US.UTF-8
LC_NAME=en_US.UTF-8
SSH_AUTH_SOCK=/run/user/1001/ssh-agent.socket
HISTTIMEFORMAT=[%F %T] 
SHELL_SESSION_ID=ec67e671f33296efa7e789186479c093
MEMORY_PRESSURE_WRITE=c29tZSAyMDAwMDAgMjAwMDAwMAA=
DESKTOP_SESSION=plasma
LC_MONETARY=en_US.UTF-8
GTK_RC_FILES=/etc/gtk/gtkrc:/home/user/.gtkrc:/home/user/.config/gtkrc
XDG_SEAT=seat0
PWD=/home/user
XDG_SESSION_DESKTOP=KDE
LOGNAME=user
XDG_SESSION_TYPE=wayland
SYSTEMD_EXEC_PID=1159
XAUTHORITY=/run/user/1001/xauth_GMYvtT
GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/user/.gtkrc-2.0:/home/user/.config/gtkrc-2.0
HOME=/home/user
SSH_ASKPASS=/usr/lib64/ssh/ssh-askpass
LC_PAPER=en_US.UTF-8
LANG=en_US.UTF-8
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;37;41:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.7z=01;31:*.ace=01;31:*.alz=01;31:*.apk=01;31:*.arc=01;31:*.arj=01;31:*.bz=01;31:*.bz2=01;31:*.cab=01;31:*.cpio=01;31:*.crate=01;31:*.deb=01;31:*.drpm=01;31:*.dwm=01;31:*.dz=01;31:*.ear=01;31:*.egg=01;31:*.esd=01;31:*.gz=01;31:*.jar=01;31:*.lha=01;31:*.lrz=01;31:*.lz=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.lzo=01;31:*.pyz=01;31:*.rar=01;31:*.rpm=01;31:*.rz=01;31:*.sar=01;31:*.swm=01;31:*.t7z=01;31:*.tar=01;31:*.taz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tgz=01;31:*.tlz=01;31:*.txz=01;31:*.tz=01;31:*.tzo=01;31:*.tzst=01;31:*.udeb=01;31:*.war=01;31:*.whl=01;31:*.wim=01;31:*.xz=01;31:*.z=01;31:*.zip=01;31:*.zoo=01;31:*.zst=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.jxl=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.m4a=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.oga=01;36:*.opus=01;36:*.spx=01;36:*.xspf=01;36:*~=00;90:*#=00;90:*.bak=00;90:*.crdownload=00;90:*.dpkg-dist=00;90:*.dpkg-new=00;90:*.dpkg-old=00;90:*.dpkg-tmp=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:*.swp=00;90:*.tmp=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:
XDG_CURRENT_DESKTOP=KDE
KONSOLE_DBUS_SERVICE=:1.100
PYTHONSTARTUP=/etc/pythonrc.py
MEMORY_PRESSURE_WATCH=/sys/fs/cgroup/user.slice/user-1001.slice/[email protected]/session.slice/plasma-plasmashell.service/memory.pressure
WAYLAND_DISPLAY=wayland-0
KONSOLE_DBUS_SESSION=/Sessions/1
PROFILEHOME=
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
INVOCATION_ID=28cca5023a004d13acdb8e03304927fd
KONSOLE_VERSION=250400
MANAGERPID=949
META_CLASS=download
QT_QPA_PLATFORM=wayland
KDE_SESSION_UID=1001
XKB_DEFAULT_LAYOUT=se
XDG_SESSION_CLASS=user
TERM=xterm-256color
LC_IDENTIFICATION=en_US.UTF-8
G_FILENAME_ENCODING=@locale
LESSOPEN=|/usr/bin/lesspipe.sh %s
USER=user
COLORFGBG=15;0
QT_WAYLAND_RECONNECT=1
KDE_SESSION_VERSION=6
PAM_KWALLET5_LOGIN=/tmp/kwallet5_user.socket
DISPLAY=:0
SHLVL=1
INPUTRC=/etc/inputrc
LC_TELEPHONE=en_US.UTF-8
LC_SOURCED=1
SYSTEMD_PAGER=/usr/bin/less -FR
LC_MEASUREMENT=en_US.UTF-8
XDG_VTNR=2
XDG_SESSION_ID=c3
PYTHONDONTWRITEBYTECODE=1
XDG_RUNTIME_DIR=/run/user/1001
LC_TIME=en_SE.UTF-8
QT_AUTO_SCREEN_SCALE_FACTOR=0
JOURNAL_STREAM=8:12624
GCC_COLORS=never
XDG_DATA_DIRS=/home/user/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
KDE_FULL_SESSION=true
NLSPATH=/usr/share/locale/%l/%N
PATH=/usr/local/bin:/usr/bin:/usr/games:/usr/local/games:/home/user/.local/bin:/home/user/bin
HISTFILESIZE=
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus
KDE_APPLICATIONS_AS_SCOPE=1
MAIL=/var/spool/mail/user
LESSKEY=/etc/.less
LC_NUMERIC=en_US.UTF-8
LADSPA_PATH=/usr/lib64/ladspa/
KONSOLE_DBUS_WINDOW=/Windows/1
_=/usr/bin/env

38github avatar Aug 09 '25 20:08 38github