#1886 (Bug) “File could not be copied” at the end of a calibration
+1 0
Closed as Fixed
Component: DisplayCAL 3.1 | Milestone: 3.1.1
Created by M Fleming
Last modified
I changed the default directory for a calibration “Choose Save Path” to a folder in my Pictures folders. I named the profile “test5” and let it run, this is the first time I used that name. At the end of the calibration I got an error message that a file could not be copied, see attached screen shots. I also attached a screen shot showing that the .ti3 file was actually copied to the directory despite the error message. I do not always get this error, it SEEMS to only happen with xyz+LUT and not with single curve+matrix.
DisplayCAL-logs (application/x-gzip | 2016-02-13 20:41:44)
test5a (image/jpeg | 2016-02-13 20:41:45)
test5b (image/jpeg | 2016-02-13 20:41:45)
test5c (image/jpeg | 2016-02-13 20:41:45)
It seems another process has grabbed the file in exclusive mode. This is not a bug in DisplayCAL, but possibly in whatever 3rd party software is interfering (a virus scanner?)
Perhaps it is my backup software (Carbonite) because it is looking for new files. I will pause the backup and try again, although I have not had any similar problems with other programs.
It depends on what the other programs are doing – if they are never over-writing or deleting existing files, then it doesn’t matter if files are locked by another process. I’ve changed the current Beta of DisplayCAL to retry for a few seconds if a file seems to be locked, not sure if this’ll help: http://displaycal.net/temp/DisplayCAL-3.1.0.4-win32.zip
I’ve added code to 3.1.1 that will retry to update the file over the course of five seconds. In case the backup software is being sane, it shouldn’t hold a lock on the file for a prolonged period of time, and thus the original problem should be fixed.