Wayland: crash when configuring new outputs with kanshi
See original GitHub issueThe issue:
- Qtile version: current master (c50cc12e)
- Running on Wayland
- No relevant logs found in qtile.log
I’m experiencing pretty reliable crashes (but not always) when my outputs (2 monitors at home, 3 at work) are being reconfigured by kanshi
. This happens only when new outputs are added (HDMI cable connected, or USB DisplayLink dock connected, or wlopm --on \*
runs).
Interestingly, the crashes don’t seem to happen when removing outputs, like when a cable is disconnected and only my laptop screen remains active.
My qtile.log
doesn’t contain any information related to this crash, and because I’m running qtile from my .bashrc, I don’t have any stdout or stderr output either (but will add this to the ticket soon if it contains anything interesting). As discussed in https://github.com/qtile/qtile/issues/3298 there don’t seem to be many options to debug these kind of crashes, so I’m currently hoping for the stderr output to contain a traceback.
Required:
- I have searched past issues to see if this bug has already been reported.
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:6 (3 by maintainers)
Sure, no problem! I can pretty reliably reproduce the crash with the following steps:
This yields different debug outputs (I did it twice):
If you want, I can upload the complete debug logs somewhere.
Additionally, here is another crash log with my regular config and without debugging:
and another:
With my regular config (and kanshi running) the crash is almost 100% reproducible, probably because the
screens_reconfigured
hook gets called several times after (un)plugging an external display. Why it isn’t just called once is a mystery to me. Probably has to do with the config getting loaded twice too, which is another mystery.I think this will be fixed by https://github.com/qtile/qtile/pull/3812