Bug 506904

Summary: Kdeconnect crashes when calling virtual display twice in a row
Product: [Applications] kdeconnect Reporter: Rémi Piau <remi+kde>
Component: commonAssignee: cyrozap <bashing.serene.0v>
Status: REPORTED ---    
Severity: crash CC: andrew.g.r.holmes, bashing.serene.0v, remi+kde
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: GDB backtrace with debuginfod enabled

Description Rémi Piau 2025-07-11 08:46:19 UTC
Created attachment 183156 [details]
GDB backtrace with debuginfod enabled

SUMMARY

Kdeconnect consistently crashes when calling virtual display twice in a row.
Seems related to the interactions between the 'stop' method line 35 and the 'connect' signal line 152  of 'plugins/virtualmonitor/virtualmonitorplugin.cpp'.

STEPS TO REPRODUCE
1. Have 2 computers (A and B) paired with kdeconnect
2. Ask for remote display (kdeconnect drop down) on computer A
3. Cancel KRDC request on computer B
4. Ask again for remote display on computer A


OBSERVED RESULT

kdeconnect crashes on computer A

EXPECTED RESULT

Kdeconnect doesn't crash and tries to launch a new virtual monitor.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20250707
KDE Plasma Version: 6.4.2
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
Kernel Version: 6.15.4-1-default (64-bit)
Graphics Platform: Wayland

(Can be reproduced on the lastest fedora42)

ADDITIONAL INFORMATION

Please see attached backtrace.
Comment 1 cyrozap 2025-09-11 23:23:14 UTC
This will be fixed once https://invent.kde.org/network/kdeconnect-kde/-/merge_requests/857 is merged.