cryptoadvance / specter-desktop

A desktop GUI for Bitcoin Core optimised to work with hardware wallets
MIT License
793 stars 236 forks source link

Specter on Windows doesn't stop all specterd.exe instances after quitting #772

Open hodlnym opened 3 years ago

hodlnym commented 3 years ago

Whenever Specter Desktop is started on Windows 10, for some reason it (at least in my case) runs as 4 Specter.exe processes and 2 specterd.exe processes. After the application is closed (using the Quit button in taskbar) all 4 Specter.exe processes are correctly stopped, together with one of the specterd.exe processes. The other specterd.exe however keeps running (until e.g. killed manually).

If the Specter Desktop is started again, the same thing happens, so after closing it there are now 2 specterd.exe instances hanging.

This can be very annoying especially when installing new version of Specter - after installation Specter downloads new version of specterd.exe ("Fetching specter binaries...") and then fails when trying to unzip it because it cannot replace the existing file that is being blocked by the hanging process. Specter Desktop then displays error "Error: Script failed to execute, this normally means an error was thrown. Check the renderer console for the error." which isn't very helpful and doesn't in any way indicate that user should just kill all hanging specterd.exe instances and everything would be fine.

I noticed this behavior at first when upgrading from Specter v0.10.1 to v0.10.4, but the latest v0.10.4 behaves the same way.

mmikeww commented 7 months ago

i already reported this same problem in #923 and #1447 but i will confirm yet again that this problem still exists when i tried to update just now to version 2.0.2