DT - very last Raw image always corrupt

Currently I’m using Darktable 5.4.0 and got a weird bug:

After any import, the very last Raw image of my film roll turns always unreadable. I see the image as thumbnail in Lighttable, but If I click on it, the image fails to load in Darkroom,

DT tells me that my usual Raw image format (CR2) is a unknown format and switches back to the Lighttable.

I ran the debug darktable -d common and these errors pop up:

     7,2255 [rawspeed_open] extensions list to ignore: `cr3'
     7,2780 [rawspeed] _MG_9004.CR2 corrupt: rawspeed::RawImage rawspeed::RawDecoder::decodeRaw(), line 338: std::array<std::byte, rawspeed::BitStreamerTraits<Tag>::MaxProcessBytes> rawspeed::BitStreamerForwardSequentialReplenisher<Tag>::getInput() [with Tag = rawspeed::BitStreamerJPEG], line 127: Buffer overflow read in BitStreamer
     7,2780 [libraw_open] extensions whitelist: 'cr3 x3f'
     7,2780 [mipmap read get] error loading ID=2628

Some formatting issues of my memory card?
But I can see all raw images in other applications, even those not loading in DT.

how are you getting your files from camera media onto disk?

can you share a problematic file?

1 Like

I use my own bash script, basically I do a cp this didn’t cause any problems, ever

The first time I experienced this issue happened when I removed my memory card from the usb hub adapter without unmounting my hub first. Might be a formatting error now. Because it happens on every film roll import since then.

I think you should try without the bash. Does it happen always with the last image from a selection or the last image in the card?

1 Like

Same result if I import from my memory card from Darktable, this was to be expected.

Edit

  • It is always the “last image in the card”, each and every time
  • I opened the raw files failing to load in DT without problems in DigiKam. (Zoom, pan, modify) Exporting from DigiKam and importing in Dt worked too, so I could load finally the previously “unknown Raw” format (CR2 in my case)

Time to reformat the card in the camera?

2 Likes

@tankist02
Exactly, I saved all my pictures and reformatted my memory card.
Next I took some random shots, loaded my raw files into Dt, now all load.
I feared already this would be some bug of DT v5.4.0. Was a formatting error kind of eof error.

2 Likes