Bug 484619

Summary: Attempting to connect KDE Connect to an unreachable device can hang the application
Product: [Applications] kdeconnect Reporter: Antti Savolainen <antti.savo>
Component: commonAssignee: Albert Vaca Cintora <albertvaka>
Status: REPORTED ---    
Severity: crash CC: andrew.g.r.holmes
Priority: NOR    
Version First Reported In: 24.02.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Backtrace

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