winft / disman

Qt/C++ display management library
GNU Lesser General Public License v2.1
3 stars 1 forks source link

Can't start disman on sway #43

Closed romangg closed 8 months ago

romangg commented 3 years ago

In GitLab by @rxt30 on Oct 13, 2021, 20:59

Hello,

i would like to use disman with sway. But after trying to start with exec dismanctl -o in the config or dismanctl -o from the command line, i received the following error:

disman: Failed to request backend: "org.freedesktop.DBus.Error.Spawn.ChildSignaled" : "Process org.kwinft.disman received signal 6"
disman.ctl: Received initial config has error.
disman.ctl: Invalid config.

journalctl gave the following ouput:

ct 13 20:48:22 maxh-arch-p14s dbus-daemon[72646]: [session uid=1000 pid=72646] Activating service name='org.kwinft.disman' requested by ':1.102' (uid=1000 pid=76828 comm="dismanctl -o ")
Oct 13 20:48:22 maxh-arch-p14s disman_backend_launcher[76831]: Failed to create wl_display (No such file or directory)
Oct 13 20:48:22 maxh-arch-p14s disman_backend_launcher[76831]: qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
Oct 13 20:48:22 maxh-arch-p14s disman_backend_launcher[76831]: qt.qpa.xcb: could not connect to display :0
Oct 13 20:48:22 maxh-arch-p14s disman_backend_launcher[76831]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
Oct 13 20:48:22 maxh-arch-p14s disman_backend_launcher[76831]: 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, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposit>
Oct 13 20:48:22 maxh-arch-p14s systemd-coredump[76836]: [LNK] Process 76831 (disman_backend_) of user 1000 dumped core.

                                                        Found module linux-vdso.so.1 with build-id: 1b7cecdad90631a6c47a59e5f4f30972fa444cc3
                                                        Found module libnss_myhostname.so.2 with build-id: 85e3af36be89e3dd478bb0f4ecfc70cac35f5cfa
                                                        Found module libnss_mymachines.so.2 with build-id: 69bbf25886965f8796b670d6c345749a85613f55
                                                        Found module libnss_files.so.2 with build-id: 1a36dfc01d3a1010b2ee79766a24a8090a3266d5
                                                        Found module libuuid.so.1 with build-id: 832a09e0d9568cc6dbe699472218ea2f79dc0f34
                                                        Found module libxcb-util.so.1 with build-id: 4188ebc629b472b560849c5792a69c1803c3d1a4
                                                        Found module libxkbcommon-x11.so.0 with build-id: 821e1e75e92f3aaa96d19ed31fe98dbbd4d34627
                                                        Found module libICE.so.6 with build-id: af53458a64fe1e62a4d95606f7b03c210b2b098c
                                                        Found module libSM.so.6 with build-id: ac7b055fd3f16b4f29373285ab04ed52eebb632d
                                                        Found module libxcb-xinput.so.0 with build-id: 6403174c48f05f40cf7c168beb86f2886b9f09c1
                                                        Found module libxcb-xkb.so.1 with build-id: fce20d2101f3e5439923e9283c489c2cad4420c3
                                                        Found module libxcb-xinerama.so.0 with build-id: b328103ce7502d94fd3a4e2e8773978a9aa84adc
                                                        Found module libxcb-xfixes.so.0 with build-id: a6b197ace5b9b59f913f5969eb419a88d1194f47
                                                        Found module libxcb-sync.so.1 with build-id: dda14591103b01b1311906053bf1ca9e82ade35c
                                                        Found module libxcb-shape.so.0 with build-id: f1b3376c4534fab0469feb1cd19f022ff98df533
                                                        Found module libxcb-render.so.0 with build-id: a37bdb37744b508be9dd29fd9ccb9bb0170d43e5
                                                        Found module libxcb-render-util.so.0 with build-id: c64fb28ea20a320a9754273d9ea3af85f6f74b17
                                                        Found module libxcb-randr.so.0 with build-id: b6c1c7d4b28863b55ade251813db7f246b7ffe8b
                                                        Found module libxcb-keysyms.so.1 with build-id: 333e5eb4075795f947c924a2085f17e2e2ae7147
                                                        Found module libxcb-shm.so.0 with build-id: fb797f299a446f559a95afcc168227482cc800d1
                                                        Found module libxcb-image.so.0 with build-id: ee7f8577926fe7c1d6972036c2f8e6f727e43b1b
                                                        Found module libxcb-icccm.so.4 with build-id: 73f1e12d76af383aa969a60279ed5ed922045f47
                                                        Found module libX11-xcb.so.1 with build-id: 0db4f94d8ae31b8dc9a83f825a9171656f1e532c
                                                        Found module libQt5XcbQpa.so.5 with build-id: 8b9689410cdfec61a28b6ca994e71328206accd8
                                                        Found module libqxcb.so with build-id: a4c3d9f46783cf41b680a3cea04f04c70a2ec52d
                                                        Found module libexpat.so.1 with build-id: 8850138eae6d9d4d43c5c4b2ac48393bc4279037
                                                        Found module libffi.so.7 with build-id: de60e99f39569d11d09160bbdcd486cedc87d2b6
                                                        Found module libxkbcommon.so.0 with build-id: 1f1bc7527e57c886c3df5803068122e1971d4724
                                                        Found module libfontconfig.so.1 with build-id: 1103a641395c7d3b42e49b793d3a9ea927c77bf6
                                                        Found module libwayland-client.so.0 with build-id: 58038363d7ea1fd5e6532f6e5f90b1a3ce09388a
                                                        Found module libwayland-cursor.so.0 with build-id: a8b45436314425ee9a92efaff68bd2b79f870e77
                                                        Found module libQt5WaylandClient.so.5 with build-id: d48cf656839904c81663681d9ab030810714bff7
                                                        Found module libqwayland-generic.so with build-id: 077059600a840f32222e9a52fcf7de04cde67310
                                                        Found module libXdmcp.so.6 with build-id: 8ca0792d23c8b8b4c0864297512349292bea5955
                                                        Found module libXau.so.6 with build-id: 1c67764663e07bec24d8951e5fd93f4d165979ff
                                                        Found module libbrotlicommon.so.1 with build-id: f68934f94312f770550ebc6c5acfd6359b098b07
                                                        Found module libxcb.so.1 with build-id: 0d1ef11740a5daad2ee331e812a51aa6574af222
                                                        Found module libgpg-error.so.0 with build-id: ba85170c2d9343ea05eea8fa2048c212ff4ef552
                                                        Found module libbrotlidec.so.1 with build-id: f871e6f204ab8d48099915126ba01be989a8000f
                                                        Found module libbz2.so.1.0 with build-id: 919597c477c9b2cb9cdbb7745ed6494ac0e6da60
                                                        Found module libX11.so.6 with build-id: e9192497aa39fab51358826d1a1b5fb77edc5081
                                                        Found module libpcre.so.1 with build-id: 845483dd0acba86de9f0313102bebbaf3ce52767
                                                        Found module libicudata.so.69 with build-id: 0ab994a49ef1848499c4af333b3266f28432a922
                                                        Found module libgcrypt.so.20 with build-id: db45f5d5e0f7af1e77324fea1885f974619ad268
                                                        Found module libcap.so.2 with build-id: c1674f9082fedd415876b9f7d9712269163259b5
                                                        Found module liblz4.so.1 with build-id: e63600ab23b2f6997f42fac2fa56e1f02ce159a1
                                                        Found module liblzma.so.5 with build-id: 8b615460aa230708c5183f16bede67aa0437d95e
                                                        Found module librt.so.1 with build-id: 75484da2d6f1515189eefa076e0a40328834cd16
                                                        Found module libgraphite2.so.3 with build-id: 47761dc11e553f519cde97ed9ee985be12ccdae2
                                                        Found module libfreetype.so.6 with build-id: 65e7f4a1e5557b0ceeaa433e5356f857fe9c669b
                                                        Found module libGLX.so.0 with build-id: 0f40ceaa036edc65147e9559b94e0219472493fc
                                                        Found module libGLdispatch.so.0 with build-id: 195b34c1bb271f3b1162c897cfbcfb859e656b93
                                                        Found module ld-linux-x86-64.so.2 with build-id: 040cc3dd10461562f177df39e3be2f3704258c3c
                                                        Found module libglib-2.0.so.0 with build-id: 1fe1592d097fa28822c23e96d9f357583b48424d
                                                        Found module libzstd.so.1 with build-id: 4b10444c1560ebc574af4d5f488b7408b22d450e
                                                        Found module libpcre2-16.so.0 with build-id: 983354d71426f38a37695490499fc89d050d7cc5
                                                        Found module libdl.so.2 with build-id: 5abc547e7b0949f89f3c0e21ab0c8331a7440a8a
                                                        Found module libicuuc.so.69 with build-id: 5cf18c56e2f64efdac32cf61fb9c0c48e9bb1797
                                                        Found module libicui18n.so.69 with build-id: 9cdecde5b2e47a2bd81dc14915cbfefcade76c12
                                                        Found module libdouble-conversion.so.3 with build-id: 5bffb4317594514068e082d4b4e9acd99987ec47
                                                        Found module libsystemd.so.0 with build-id: f776aaa16b4e2ba7056d01d928e4b2726ffe2b8b
                                                        Found module libdbus-1.so.3 with build-id: 74f2ab9c60512f3a93c932c3f627564d42e0b11e
                                                        Found module libgcc_s.so.1 with build-id: 7f8508bb914546ada778809b64b99d234337d835
                                                        Found module libm.so.6 with build-id: 2b8fd1f869ecab4e0b55e92f2f151897f6818acf
                                                        Found module libmd4c.so.0 with build-id: 2151dba72cdc9960097e6e960a58a2f03c8bb96e
                                                        Found module libharfbuzz.so.0 with build-id: f954dfb80265c0dd2484e766282305a739b8239d
                                                        Found module libz.so.1 with build-id: 81bf6e728a6d6f5b105b0f8b25f6c614ce10452a
                                                        Found module libpng16.so.16 with build-id: 2dc0bce07f199bf983c07a05fb95a6f4af83a9b3
                                                        Found module libGL.so.1 with build-id: 8b3028bab286029945569a0dfcf695f0f61d9c3b
                                                        Found module libpthread.so.0 with build-id: 07c8f95b4f3251d08550217ad8a1f31066229996
                                                        Found module libc.so.6 with build-id: 4b406737057708c0e4c642345a703c47a61c73dc
                                                        Found module libstdc++.so.6 with build-id: 8ab0e57054dd1dcba681f217016afc6a4e639783
                                                        Found module libQt5Core.so.5 with build-id: c64628e7d9f71477150fd382b63907957cc067e3
                                                        Found module libQt5DBus.so.5 with build-id: 9b913e483c1701d15899015a4c1d9a065fe09c17
                                                        Found module libQt5Gui.so.5 with build-id: 1926a834e78a6846b71f45aa85860b19eabbc7ed
                                                        Found module libDisman.so.0 with build-id: 8afa99260fbee25d1ddc829c8d2c6b9ac34b0279
                                                        Found module disman_backend_launcher with build-id: fdce32c855481a44038509a926512c3efd333387
                                                        Stack trace of thread 76831:
                                                        #0  0x00007f1efbc75d22 raise (libc.so.6 + 0x3cd22)
                                                        #1  0x00007f1efbc5f862 abort (libc.so.6 + 0x26862)
                                                        #2  0x00007f1efc0ab910 _ZNK14QMessageLogger5fatalEPKcz (libQt5Core.so.5 + 0x90910)
                                                        #3  0x00007f1efc735155 _ZN22QGuiApplicationPrivate25createPlatformIntegrationEv (libQt5Gui.so.5 + 0x130155)
                                                        #4  0x00007f1efc735661 _ZN22QGuiApplicationPrivate21createEventDispatcherEv (libQt5Gui.so.5 + 0x130661)
                                                        #5  0x00007f1efc2db0d7 _ZN23QCoreApplicationPrivate4initEv (libQt5Core.so.5 + 0x2c00d7)
                                                        #6  0x00007f1efc738673 _ZN22QGuiApplicationPrivate4initEv (libQt5Gui.so.5 + 0x133673)
                                                        #7  0x00007f1efc739698 _ZN15QGuiApplicationC1ERiPPci (libQt5Gui.so.5 + 0x134698)
                                                        #8  0x000055cec13ed081 n/a (disman_backend_launcher + 0x3081)
                                                        #9  0x00007f1efbc60b25 __libc_start_main (libc.so.6 + 0x27b25)
                                                        #10 0x000055cec13ed2ae n/a (disman_backend_launcher + 0x32ae)
Oct 13 20:48:22 maxh-arch-p14s dbus-daemon[72646]: [session uid=1000 pid=72646] Activated service 'org.kwinft.disman' failed: Process org.kwinft.disman received signal 6

I tried to clear ~/.local/share/disman, but without success.
Disman works without a problem in a Plasma-Wayland-session.

I hope the provided information are enough.

Best regards and many thanks in advance

Max

Disman: 5.22.0-1 (Installed from disman-kwinft (AUR))
qt-wayland: 5.15.2
kwinft: 5.22.0-2 (Installed from kwinft (AUR))
sway: 1.6.1
plasma-desktop: 5.22.5-1

romangg commented 3 years ago

Thanks for your report. Please add some lines to a config file for more debug output as explained here.

romangg commented 3 years ago

In GitLab by @rxt30 on Oct 13, 2021, 22:39

I don't know if i am just stupid, but creating ~/.config/QtProject/qtlogging.ini and adding the described line didn't enabled anymore debug output for me.
journalctl produced the same output as already posted, and it didn't produced any additional log when running dismanctl -o.

I will try a fresh install tomorrow, to check if any packages conflict with disman.

However, /usr/lib/libexec/disman_backend_launcher doesn't get installed by the AUR-Package, and therefore can not be started as mentioned in the CONTRIBUTING.md

romangg commented 3 years ago

However, /usr/lib/libexec/disman_backend_launcher doesn't get installed by the AUR-Package, and therefore can not be started as mentioned in the CONTRIBUTING.md

According to the PKGBUILD it overrides the CMAKE_INSTALL_LIBEXECDIR variable with lib. So you might find the launcher in a different directory.

romangg commented 3 years ago

In GitLab by @rxt30 on Oct 13, 2021, 23:56

Starting disman_backend_launcher solved the problem.
So it seems like dismanctl can't start disman_backend_launcher, if the location of disman_backend_launcher has changed (e.g. in the case of the Arch-Linux package).

romangg commented 3 years ago

Hmm, the backend should start automatically via D-Bus activation even if it's installed to a different directory I would say.

The issue might actually be that the installed service file fills in a different variable CMAKE_INSTALL_FULL_LIBEXECDIR and not CMAKE_INSTALL_LIBEXECDIR. Not sure if the variable from the PKGBUILD script does override this one too.