Force quit XYcopy issues

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Force quit XYcopy issues

Post by zer0 »

It seems that there is a way to make XY think that there is a job in progress when there is not.

To repro:
1. Open Task Manager
2. Start an XYcopy-managed copy job (I did from internal to external HDD)
3. In Task Manager, end XYcopy.exe progress while copy is in progress

XYcopy progress window will close and , after a while, XYcopy.exe will disappear from list of processes. Curiously, the copy does complete successfully (SHA1 comparison), but some corruption does take place. However, Background Job window would still list as in progress.
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

nas8e9
Posts: 2232
Joined: 21 Jun 2008 14:50

Re: Force quit XYcopy issues

Post by nas8e9 »

zer0 wrote:It seems that there is a way to make XY think that there is a job in progress when there is not.

To repro:
1. Open Task Manager
2. Start an XYcopy-managed copy job (I did from internal to external HDD)
3. In Task Manager, end XYcopy.exe progress while copy is in progress

XYcopy progress window will close and , after a while, XYcopy.exe will disappear from list of processes. Curiously, the copy does complete successfully (SHA1 comparison), but some corruption does take place. However, Background Job window would still list as in progress.
A few questions (and welcome back, of course :)):
1. What is the use case for force-quitting a *running* XYcopy.exe-instance? (I'm aware of the dormant instances-problem BTW, which I'm still seeing.)
2. Do you use Custom Copy or Windows Shell copy? (The latter might explain why force-quitting XYcopy.exe doesn't halt the copy.)
3. I'm confused by the copy passing verification and yet you seeing some corruption?

As for the Background Job-window getting confused, I'm guessing that after starting up an XYcopy.exe-instance, it lists the beginning and run-time of the job, but doesn't check regularly with XYcopy.exe and simply waits there for the instance to report completion. If memory serves, Don didn't want to make the Background Jobs a full command center with things like real-time per-job status and queue reordering, in the last XYcopy development round.

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: Force quit XYcopy issues

Post by zer0 »

nas8e9 wrote: A few questions (and welcome back, of course :)):
1. What is the use case for force-quitting a *running* XYcopy.exe-instance? (I'm aware of the dormant instances-problem BTW, which I'm still seeing.)
2. Do you use Custom Copy or Windows Shell copy? (The latter might explain why force-quitting XYcopy.exe doesn't halt the copy.)
3. I'm confused by the copy passing verification and yet you seeing some corruption?
Thanks! I still update on a regular basis and keep an eye out on new features :)

1. Just because. I was intentionally trying to disrupt the process to see how the app handles the situation.
2. Custom Copy.
3. I was confused as well. In my scenario, a video file did not play correctly.
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

nas8e9
Posts: 2232
Joined: 21 Jun 2008 14:50

Re: Force quit XYcopy issues

Post by nas8e9 »

zer0 wrote:1. Just because. I was intentionally trying to disrupt the process to see how the app handles the situation.
It seems an unusual source of problems to me. :)
zer0 wrote:2. Custom Copy.
In that case I can't explain the completion. Roughly how long took these jobs and at which point did you terminate the instance?
zer0 wrote:3. I was confused as well. In my scenario, a video file did not play correctly.
Does the source file exhibit the same playback problem, given its identical hash?

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: Force quit XYcopy issues

Post by zer0 »

nas8e9 wrote:
zer0 wrote:1. Just because. I was intentionally trying to disrupt the process to see how the app handles the situation.
It seems an unusual source of problems to me. :)
Yes, I agree, but still a valid one.
nas8e9 wrote:
zer0 wrote:2. Custom Copy.
In that case I can't explain the completion. Roughly how long took these jobs and at which point did you terminate the instance?
It was just one file that experimented with, so probably about 10-15 seconds or so. I killed the process while copying was taking place.
nas8e9 wrote:
zer0 wrote:3. I was confused as well. In my scenario, a video file did not play correctly.
Does the source file exhibit the same playback problem, given its identical hash?
Source exhibits no problems.
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

nas8e9
Posts: 2232
Joined: 21 Jun 2008 14:50

Re: Force quit XYcopy issues

Post by nas8e9 »

zer0 wrote:
nas8e9 wrote:Does the source file exhibit the same playback problem, given its identical hash?
Source exhibits no problems.
I'm not sure what to make of this. In terms of diagnosis, a file that a SHA-1 hash deems identical should be identical. Just in case, could you either compare with XYplorer's compare command (which doesn't seem to use hashes, but checks both byte-streams against each other) or else check with something like SHA-512?

As for the cause, I don't like to trivialise data corruption, but having the XYcopy.exe-instance force-terminated in whatever way *should* cause the user to check the copy/move. XYcopy is safe in the sense that it won't delete the source file before the move successfully completes, while copying leave the source alone by definition.

Post Reply