klayout icon indicating copy to clipboard operation
klayout copied to clipboard

Segfaults in Wayland

Open YibaiMeng opened this issue 4 years ago • 2 comments

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 avatar Jun 10 '21 10:06 YibaiMeng

@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

klayoutmatthias avatar Jun 10 '21 21:06 klayoutmatthias

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.

ChristianRenaux avatar Sep 29 '22 14:09 ChristianRenaux

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?

ChrisZonghaoLi avatar Oct 12 '22 22:10 ChrisZonghaoLi

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.

klayoutmatthias avatar Oct 13 '22 20:10 klayoutmatthias