I tried to debug a kscreen issue and when enabling debugging via ~/.config/QtProject/qtlogging.ini, kscreen_backend_launcher crashed due to a null pointer dereference. Reproducible: Always Steps to Reproduce: 1. set the following content in ~/.config/QtProject/qtlogging.ini [rules] *.debug=false kscreen.xrandr.debug=true 2. run a kscreen command to enable a secondary screen In my case, this was: kscreen-doctor output.320.enable 3. segmentation fault Actual Results: The problem lies in the following line: https://github.com/KDE/libkscreen/blob/v5.7.3/backends/xrandr/xrandrconfig.cpp#L521 kscreenOutput->currentMode() is null, thus kscreenOutput->currentMode()->size() causes the segmentation fault.
Proposed fix: https://phabricator.kde.org/D2330
Patch is in master now. I'll see if I can backport it to 5.7.4, but it should get a few days of testing, first. Thanks for the report!