Bug 506904 - Kdeconnect crashes when calling virtual display twice in a row
Summary: Kdeconnect crashes when calling virtual display twice in a row
Status: REPORTED
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: cyrozap
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-11 08:46 UTC by Rémi Piau
Modified: 2025-09-11 23:23 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
GDB backtrace with debuginfod enabled (44.92 KB, text/plain)
2025-07-11 08:46 UTC, Rémi Piau
Details

Note You need to log in before you can comment on or make changes to this bug.
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.