darktable-generate-cache doesn't work

Hi I’m trying to create all the thumbnails using the binary darktable-generate-cache.

It seems ok at the beginnning, but suddenly it aborts with the following lines:

image 545/150199 (0,36%) (id:545, file=foto1.tif)
Corrupt JPEG data: 2984 extraneous bytes before marker 0x8d
Unsupported marker type 0x8d
[tiff_open] error: _TIFFVSetField: \\NAS\Public\HD Foto\2004\foto estate 2004\foto1.tif: Null count for "Tag 32934" (type 4, writecount -3, passcount 1)
     3,8848 [rawspeed] (foto1.tif) virtual std::unique_ptr<rawspeed::RawDecoder> rawspeed::RawParser::getDecoder(const rawspeed::CameraMetaData*), line 91: No decoder found. Sorry.
     3,8848 [libraw_open] extensions whitelist: `cr3'
Magick: \\NAS\Public\HD Foto\2004\foto estate 2004\foto1.tif: Null count for "Tag 32934" (type 4, writecount -3, passcount 1). (_TIFFVSetField).
     3,9017 [GraphicsMagick_open] image `foto1.tif' not found
Assertion failed: exception->signature == MagickSignature, file ../GraphicsMagick-1.3.40/magick/error.c, line 1025

C:\Users\xxxxxx>

I’m using Darktable 4.4.2 and Windows.
Can someone help me with this?
Thanks

If you remove 2004\foto estate 2004\foto1.tif does it continue? Looks like it can’t read that file.

OR a NAS communication issue

As you said, I tried to rename and stealth that .tif picture. In that folder I have several .tif pictures. I had to stealth all of them in order to get the software move on along the full archive of pictures (about 150000 pictures which I used to manage with Lightroom in the past).

Actually that .tif pictures look unreadable and corrupted with several softwares I tried but GIMP. Surprisingly Gimp can read all of them without hassles.

I can say that I solved the problem stealthing that pictures but I think this is not the way that piece of software should work. If it is not able to open a picture it should simply give the user the ability to skip and move on or simply process all the pictures and give a detailed report at the end.

Can you figure it out what does it mean that after long hours of thumbnails creation it stops working for just one difficult to read image?

Can this be suggested to the developers?

Thanks

Yes it can, you can open an issue on the darktable github.

What type of Tif and where did you create them… I know or believe DT can save integer and FP and honestly I don’t use TIF that much but likely Gimp could handle both but maybe other apps not so much… or maybe some other tif variant??

It’s been a long time, I really don’t know what software I used for that Tif.
Anyway, remove the Tifs didn’t allow me to complete the procedure of generating all the thumbnails.
I get plenty of the following errors:

 24661,2528 [jpegxl_open] ERROR: cannot open file for read: 'Z:\HD Foto\_Da spostare fuori da -HD Foto- cartella\IMG_20210623_180037.jpg'
 24661,2796 [rawspeed] (IMG_20210623_180037.jpg) virtual std::unique_ptr<rawspeed::RawDecoder> rawspeed::RawParser::getDecoder(const rawspeed::CameraMetaData*), line 91: No decoder found. Sorry.

Any suggestion for this?

did you check the file if it’s a valid jpg file?

yes they are ok, I can read that jpgs either on windows explorer on Darktable itself