#9258·sway

Crash when connection to docking station

Author: NDagestadCreated Aug 13, 2026Updated Sep 3, 2026
Labelsbug

Sway version:

 ~ $ swaymsg -t get_version
sway version 1.12
 ~ $ hostnamectl 
...
 Operating System: Arch Linux                 
           Kernel: Linux 7.1.5-zen1-2-zen
     Architecture: x86-64
  Hardware Vendor: Lenovo
   Hardware Model: ThinkPad T14 Gen 6
     Hardware SKU: LENOVO_MT_21QH_BU_Think_FM_ThinkPad T14 Gen 6
 Firmware Version: N4HET24W (1.12 )
    Firmware Date: Wed 2026-02-25
     Firmware Age: 5month 2w 3d

I have tested on both 1.12 and on master, the crash appears on both

crash.log Backtrace: https://paste.git.dagestad.fr/~nicolai/bed11ca089f1447ad6a6c3574933e7fa312ebf20

crash_master.log Backtrace: https://paste.git.dagestad.fr/~nicolai/88e4da663a0e2386dbd7a0d08a2be6e03c872353

In both case I started sway then connected my docking station, which has 3 displays connected (2 DP + 1 HDMI), a bunch of USB devices (Keyboard, mouse, hub) and an ethernet cable.

I see some messages from USB guard about my devices being plugged in, then sway crashs. In both cases I use a completely empty configuration file.

I believe the issue comes from my laptop apparently only supporting having 3 outputs at a time. When more than 3 external displays are connected, the internal screen get's turned off. When I have only 2 screens on connected to my docking station, I can plug and unplug the laptop without issues.

Although, my limited understanding of the backtrace makes it look like it might be something else:

(gdb) print *state->connector
$1 = {output = {impl = 0x7fccbe1809e0 <output_impl>, backend = 0x561048aa4f10,
 event_loop = 0x561048a9ee40, global = 0x0, resources = {prev = 0x5610499f1260,
 next = 0x5610499f1260}, name = 0x5610497a91d0 "DP-5", 
 description = 0x5610499f1870 "HP Inc. HP E24i G4 CNK1360YZH (DP-5)", 
 make = 0x561049977bb0 "HP Inc.", model = 0x561049977bd0 "HP E24i G4",
 serial = 0x561049977bf0 "CNK1360YZH", phys_width = 520, phys_height = 330, 
...

It appears in the handling of one of the external monitors, not the internal one that disappears so I don't really know what the issue can be at this point ¯\_(ツ)_/¯

If you need more information I am happy to provide whatever I can.