XYCopy refuses to exit. Multiple running copies. Can't be killed.
XYCopy refuses to exit. Multiple running copies. Can't be killed.
I have a problem with XYCopy staying running, even with no background jobs and nothing using it (Xyplorer itself is closed).
Upon trying to kill it, all but one thread exits then it stays and can't be killed. Reboot hangs as well because the threads won't exit, forcing a hard power off.
Of the two copies that I cannot kill at the moment, they have two different wait conditions:
1) Wait:WrResource
2) Wait:Executive
Windows in the past week updated to Windows 10 Build 20H2. I do not know if this is related.
Upon trying to kill it, all but one thread exits then it stays and can't be killed. Reboot hangs as well because the threads won't exit, forcing a hard power off.
Of the two copies that I cannot kill at the moment, they have two different wait conditions:
1) Wait:WrResource
2) Wait:Executive
Windows in the past week updated to Windows 10 Build 20H2. I do not know if this is related.
-
- Site Admin
- Posts: 60541
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: XYCopy refuses to exit. Multiple running copies. Can't be killed.
You cannot kill XYcopy.exe using Task Manager? That would be a first.
FAQ | XY News RSS | XY Twitter
Re: XYCopy refuses to exit. Multiple running copies. Can't be killed.
Over the course of my career, I've seen this a decent number of times.
Often the only solution is to reboot, and depending on the hung thread, a forced power off may be required.
The actual error received when trying to kill it is "An attempt was made to access an exiting process." And from the screenshots you can see that there's a single thread left waiting on something, which never exits. "taskkill /f /im /t" does nothing as well.
https://techcommunity.microsoft.com/t5/ ... a-p/723389
-
- Site Admin
- Posts: 60541
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: XYCopy refuses to exit. Multiple running copies. Can't be killed.
And this problem happens repeatedly? Sometimes, or always?
FAQ | XY News RSS | XY Twitter
-
- Site Admin
- Posts: 60541
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: XYCopy refuses to exit. Multiple running copies. Can't be killed.
So it happened again. I currently cannot see how this happens. If you ever see a way to reproduce it let me know.
FAQ | XY News RSS | XY Twitter
Re: XYCopy refuses to exit. Multiple running copies. Can't be killed.
I have the same here with portable XYplorer version.
The effect doesnt allow me to update the program folder since XYcopy.exe is locked.
May be the unkillable XYcopy processes have lost the parent process XYplorer?
XYlorer has to wait for terminating all possible XYcopy processes before exiting itself.
Only an idea.
The effect doesnt allow me to update the program folder since XYcopy.exe is locked.
May be the unkillable XYcopy processes have lost the parent process XYplorer?
XYlorer has to wait for terminating all possible XYcopy processes before exiting itself.
Only an idea.
-
- Site Admin
- Posts: 60541
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: XYCopy refuses to exit. Multiple running copies. Can't be killed.
When you close XYplorer it will try to kill any idle XYcopy processes, and then close (no matter whether that worked or not).
I have never experienced unkillable XYcopy processes, and don't know what could cause that.
I have never experienced unkillable XYcopy processes, and don't know what could cause that.
FAQ | XY News RSS | XY Twitter
Re: XYCopy refuses to exit. Multiple running copies. Can't be killed.
I've seen lingering xycopy tasks in the background as well but a simple
E.g.:
taskkill
had no problems to close them. I'm using this way in my XY update script to make sure that everything works as expected and it never failed so farE.g.:
Code: Select all
TASKKILL /F /IM hh.exe /T >NUL 2>NUL
TASKKILL /F /IM XY64.exe /T >NUL 2>NUL
TASKKILL /F /IM XY64contents.exe /T >NUL 2>NUL
TASKKILL /F /IM XY64ctxmenu.exe /T >NUL 2>NUL
TASKKILL /F /IM XYcopy.exe /T >NUL 2>NUL
One of my scripts helped you out? Please donate via Paypal
Re: XYCopy refuses to exit. Multiple running copies. Can't be killed.
Good hint, thanks.
Re: XYCopy refuses to exit. Multiple running copies. Can't be killed.
In most instances, this is all that's needed. However, it's not always the case either (nor do I think it should be required, the installer should handle this).highend wrote: ↑30 Oct 2021 10:48 I've seen lingering xycopy tasks in the background as well but a simpletaskkill
had no problems to close them. I'm using this way in my XY update script to make sure that everything works as expected and it never failed so far
E.g.:Code: Select all
TASKKILL /F /IM hh.exe /T >NUL 2>NUL TASKKILL /F /IM XY64.exe /T >NUL 2>NUL TASKKILL /F /IM XY64contents.exe /T >NUL 2>NUL TASKKILL /F /IM XY64ctxmenu.exe /T >NUL 2>NUL TASKKILL /F /IM XYcopy.exe /T >NUL 2>NUL
Re: XYCopy refuses to exit. Multiple running copies. Can't be killed.
My script doesn't use the installer, it upgrades via the .zip file (portable)the installer should handle this
One of my scripts helped you out? Please donate via Paypal
-
- Site Admin
- Posts: 60541
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: XYCopy refuses to exit. Multiple running copies. Can't be killed.
Not the installer, XY itself attempts to close them on exit. No idea why it fails. Cannot reproduce a fail here.
Just curious: Are you upgrading to a new version while the current version is doing file operations in the background?
Just curious: Are you upgrading to a new version while the current version is doing file operations in the background?
FAQ | XY News RSS | XY Twitter