Segfaults in Wayland
When starting klayout 0.26.2 in Ubuntu 21.04 (recently updated to Wayland windowing system), it segfaults with the following output:
$ klayout
Info: Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Aborted (core dumped)
Asking it to use X11 solves the problem:
XDG_SESSION_TYPE=x11 klayout
It seems that Qt 5 supports wayland. Perhaps a configuration bug?
@YibaiMeng I'm not responsible for the Qt configuration on Ubuntu. I'm just taking the system's Qt5. This is not a KLayout bug.
What happens if you follow the error message's advice and set QT_QPA_PLATFORM=wayland?
Matthias
It does not work to set the QT_QPA_PLATFORM=wayland. So far the only that works is to launch Klayout like this:
XDG_SESSION_TYPE=x11 klayout
It makes a bunch of errors at launch, but amazingly it is working after.
It does not work to set the QT_QPA_PLATFORM=wayland. So far the only that works is to launch Klayout like this:
XDG_SESSION_TYPE=x11 klayout
It makes a bunch of errors at launch, but amazingly it is working after.
Yes same here, so is it considered as an official workaround to this?
If it works, it's a workaround.
This is a Qt/Gnome/Wayland issue, not KLayout related. Maybe someone with more experience than me can help fixing this problem.