Bug 412018 - Nightly build of KDEConnect on Windows crashes following pairing
Summary: Nightly build of KDEConnect on Windows crashes following pairing
Status: RESOLVED FIXED
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (show other bugs)
Version: unspecified
Platform: Microsoft Windows Microsoft Windows
: NOR crash
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-18 12:49 UTC by Jon Spriggs
Modified: 2020-11-10 10:43 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Spriggs 2019-09-18 12:49:44 UTC
SUMMARY
Desktop application crashes, replacing machine name with "Failed to execute program org.kde.kdeconnect: The system cannot" in the desktop application. Service stops responding from phone application

STEPS TO REPRODUCE
1. Download nightly build from https://binary-factory.kde.org/job/kdeconnect-kde_Nightly_win64/kdeconnect-kde-master-146-windows-msvc2017_64-cl.exe and install
2. Pair with device (either initiated Windows -> Phone or Phone -> Windows)
3. Ping device Windows -> Phone
4. Crash

OBSERVED RESULT
Replaced machine name with "Failed to execute program org.kde.kdeconnect: The system cannot" in the desktop application. Service stops responding, disconnecting connected devices.

EXPECTED RESULT
Ping on Phone or Ping on Desktop application

SOFTWARE/OS VERSIONS
Windows: Windows 10 Enterprise 1703
Android: 1.13

ADDITIONAL INFORMATION
Comment 1 Jon Spriggs 2019-09-18 13:03:32 UTC
Last few lines from kdeconnectd run in a command prompt:

Command Line: SnoreToast.exe  -t "KDE Connect Daemon" -m "Pairing request from Personal phone" -p C:/Users/Jon/AppData/Local/Temp/kdeconnect.daemon-jopAxT/0.png -appID kdeconnect.daemon -pid 3916 -id 0 -pipename \\.\pipe\1580314081 -b Accept;Reject
discarding unsupported packet "kdeconnect.runcommand.request" for "Personal phone"
discarding unsupported packet "kdeconnect.mpris" for "Personal phone"
Notifications are disabled
Reason: DisabledForUser Please make sure that the app id is set correctly.
Command Line: SnoreToast.exe  -t Slack -m "SomeText" -p C:/Users/Jon/AppData/Local/Temp/kdeconnect.daemon-jopAxT/1.png -appID kdeconnect.daemon -pid 3916 -id 1 -pipename \\.\pipe\1580314081 -b Reply
Notifications are disabled
Reason: DisabledForUser Please make sure that the app id is set correctly.
Command Line: SnoreToast.exe  -t Slack -m "SomeText" -p C:/Users/Jon/AppData/Local/Temp/kdeconnect.daemon-jopAxT/-2.png -appID kdeconnect.daemon -pid 3916 -id -2 -pipename \\.\pipe\1580314081 -b Reply

Application then stops.

I noted that notifications were disabled on my system. Enabling the notifications and restarting kdeconnectd now has a slightly longer lifespan:

kdeconnect.core: TCP connection done (i'm the existing device)
kdeconnect.core: Starting server ssl (I'm the client TCP socket)
kdeconnect.core: Socket successfully established an SSL connection
kdeconnect.core: It is a known device "Personal phone"
kdeconnect.core: Not loading plugin "kdeconnect_remotesystemvolume" because device doesn't support it
kdeconnect.core: Not loading plugin "kdeconnect_remotecommands" because device doesn't support it
kdeconnect.core: Not loading plugin "kdeconnect_lockdevice" because device doesn't support it
kdeconnect.core: creating pairing handler for "someid"
kdeconnect.core: Unpair request
kdeconnect.plugin.notification: Destroying NotificationsPlugin
kdeconnect.core: Unpair request
kdeconnect.core: Unpair request
kdeconnect.core: Unpair request
kdeconnect.core: Unpair request
kdeconnect.core: Pair request
kdeconnect.plugin.battery: Deleting stale BatteryDbusInterface for "Personal phone"
discarding unsupported packet "kdeconnect.runcommand.request" for "Personal phone"
discarding unsupported packet "kdeconnect.mpris" for "Personal phone"
kdeconnect.core: FileTransferJob Downloading payload to QUrl("file:///C:/Users/Jon/AppData/Local/Temp/kdeconnect_Jon/someid") size: 14430
QMetaObject::invokeMethod: No such method KIO::StoredTransferJob::slotDataReqFromDevice()
kdeconnect.core: Finished transfer QUrl("file:///C:/Users/Jon/AppData/Local/Temp/kdeconnect_Jon/someid")

And then, crash again.
Comment 2 brute4s99 2020-11-09 20:01:19 UTC
Hi Jon! I hope this reply finds you in good health! There has been some improvement on the stability side of things for the Windows port in the last few weeks, please try out the latest build from https://binary-factory.kde.org/job/kdeconnect-kde_Nightly_win64/ and let us know how it goes!
Comment 3 Jon Spriggs 2020-11-10 10:43:09 UTC
Wow, yes, this is a fantastic step up. I'm resolving this issue as it's all working fine!