TIFF export issue in darktable 4.5.0+1401~gc2455d4619

Anyone know what this is all about?
Win 11 pro 21H2, i5-2400, GTX 1650
Exporting TIFFs I’m getting this after a variable number of successful exports, but once it occurs I can only export one at a time. JPGs seem to export fine.
I can update to the latest nightly if I should, but wondering if it could just be resource (RAM?) related as it seemed possibly dependent on how much other stuff I’m doing. I have 16GB RAM, and about 9GB were in use according to Task Manager.
Running with -d all I get this.

   152.6549 [export_job] exported to `F:\All Sorted Photos starting 2021\2023-12-19 CN Cooma/processed/IMG_0196.tif'
   160.4123 [export_job] exported to `F:\All Sorted Photos starting 2021\2023-12-19 CN Cooma/processed/IMG_0197.tif'
   179.7524 [export_job] exported to `F:\All Sorted Photos starting 2021\2023-12-19 CN Cooma/processed/IMG_0181.tif'
   185.6544 [export_job] exported to `F:\All Sorted Photos starting 2021\2023-12-19 CN Cooma/processed/IMG_0182.tif'
   191.3392 [export_job] exported to `F:\All Sorted Photos starting 2021\2023-12-19 CN Cooma/processed/IMG_0183.tif'
   213.9150 [export_job] exported to `F:\All Sorted Photos starting 2021\2023-12-19 CN Cooma/processedHQ/IMG_0184.tif'
   226.1970 [export_job] exported to `F:\All Sorted Photos starting 2021\2023-12-19 CN Cooma/processedHQ/IMG_0185.tif'
   237.5264 [export_job] exported to `F:\All Sorted Photos starting 2021\2023-12-19 CN Cooma/processedHQ/IMG_0186.tif'
   250.7049 [export_job] exported to `F:\All Sorted Photos starting 2021\2023-12-19 CN Cooma/processedHQ/IMG_0187.tif'
   262.2833 [export_job] exported to `F:\All Sorted Photos starting 2021\2023-12-19 CN Cooma/processedHQ/IMG_0188.tif'
   275.1803 [export_job] exported to `F:\All Sorted Photos starting 2021\2023-12-19 CN Cooma/processedHQ/IMG_0189.tif'
   288.8027 [export_job] exported to `F:\All Sorted Photos starting 2021\2023-12-19 CN Cooma/processedHQ/IMG_0190.tif'
   304.3110 [export_job] exported to `F:\All Sorted Photos starting 2021\2023-12-19 CN Cooma/processedHQ/IMG_0191.tif'
   317.9780 [export_job] exported to `F:\All Sorted Photos starting 2021\2023-12-19 CN Cooma/processedHQ/IMG_0192.tif'
[dt_exif_xmp_attach_export] F:\All Sorted Photos starting 2021\2023-12-19 CN Cooma/processedHQ/IMG_0193.tif: caught exiv2 exception 'F:\All Sorted Photos starting 2021\2023-12-19 CN Cooma/processedHQ/IMG_0193.tif: Failed to open file (r+b): Permission denied (errno = 13)'
   330.7289 [export_job] exported to `F:\All Sorted Photos starting 2021\2023-12-19 CN Cooma/processedHQ/IMG_0193.tif'
[exiv2 dt_exif_write_blob] F:\All Sorted Photos starting 2021\2023-12-19 CN Cooma/processedHQ/IMG_0194.tif: F:\All Sorted Photos starting 2021\2023-12-19 CN Cooma/processedHQ/IMG_0194.tif: Failed to open file (r+b): Permission denied (errno = 13)
   339.0092 [imageio_storage_disk] could not export to file: `F:\All Sorted Photos starting 2021\2023-12-19 CN Cooma/processedHQ/IMG_0194.tif'!

end:   2023:12:19 14:16:55

My export settings look like this:
image

A raw file from the latest offending series just in case it helps, licenced
This file is licensed Creative Commons, By-Attribution, Share-Alike.

I’ve seen this before with other files though. Not sure if I saw it when I was on 4.4.2… hopefully irrelevant but say if you want me to try anything.

IMG_0193.CR2 (16.6 MB)

Edit: just discovered that reducing the image size (to 3000px high in this case) “cures” the issue. Don’t know if that’s a clue or not…

Export is a two step process - first the file is created, then the Exiv2 library adds metadata to it. Your log says it is the second step that fails because there is a permissions issue with the file.

On Windows this is because, after the first step, the file is locked by either being synced by OneDrive or similar, or scanned by an anti-virus for example. The smaller the file - the greater the chance that is finished before the second step begins.

1 Like

:man_facepalming:

Thanks very much for the info! That all makes sense… my only antivirus is windows defender, but it might be that I guess. I never use Onedrive, but my PC tells me at regular intervals to set it up. :crazy_face:

I’ll try to set up Defender to keep out of my photo stuff!

Edit: @kmilos, I’ve set up an exception for the antivirus… thing… (not sure if it’s actually called Defender) and so far so good. I’ve exported around 12 of those big TIFFs now and no issues. Thanks again for the help. Hopefully this will be the permanent solution.