Bug 484619 - Attempting to connect KDE Connect to an unreachable device can hang the application
Summary: Attempting to connect KDE Connect to an unreachable device can hang the appli...
Status: REPORTED
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (other bugs)
Version First Reported In: 24.02.1
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-27 19:47 UTC by Antti Savolainen
Modified: 2024-03-28 17:17 UTC (History)
1 user (show)

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


Attachments
Backtrace (9.86 KB, text/plain)
2024-03-27 19:47 UTC, Antti Savolainen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antti Savolainen 2024-03-27 19:47:47 UTC
Created attachment 167861 [details]
Backtrace

SUMMARY
Demonstrative video: https://www.youtube.com/watch?v=ujYLWQ2uelU
This is not possible to reliably reproduce. I had to go back and forth for about 2 minutes in the demonstrative video to get it to repro and I haven't been able to capture it on video ever since.
If you try to pair with an unreachable device, connect that device back to the network and send a pair request back, you might cause the app to freeze. I produced the coredump with SIGQUIT.

STEPS TO REPRODUCE
1. Connect a phone and a PC to the same network so that they see each other but don't pair
2. Disconnect the phone from the wifi
3. Attempt to pair with the PC
4. Reconnect the phone to the wifi
5. Attempt to pair the phone

OBSERVED RESULT
The application might sometimes freeze unrecoverably

EXPECTED RESULT
No freeze should occur

SOFTWARE/OS VERSIONS
Linux: Arch Linux
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2