Closed iisharankov closed 6 months ago
A2.zip
Looking at this one, it happens at row
3442
of 3912
.
If i comment out
i get: Are you 100% confident that the card you use in the camera isn't faulty?
Looks like adobe dng converter also does not like these. I very strongly suspect that there's either a hardware issue (memory card/card reader/camera's card writer/cable), or bitrot after copying.
The other applications which are showing the images without corruption are almost certainly displaying the embedded JPEG image, which is typically at an earlier position in the file than the actual raw data. So if there's corruption late in the file or the file is incomplete, it will still seem fine in those applications.
Hey all. Thanks for the quick replies. I ended up sick with a stomach bug and couldn't so much as leave the bed the last days, apologies for the delayed response.
I hadn't considered that it could be the SD card, which was the same between the MII and MIII. It's a new SanDisk card so it'd be quite surprising, but possible. I agree everything points to a hardware/reading issue now. I'll test with another card these next days and see if there is a difference before closing.
FWIW, this could also be a camera/writing issue.
@iisharankov I hope you have successfully found the hardware cause of image data corruption. In any case, this has nothing to do with darktable, so there is no point in keeping this issue open. So, just in case you forget to close the issue after doing your research, I'll close it now.
Describe the bug
Certain images fail to load consistantly between multiple versions and OSs of darktable. They work and are viewable on other applications, and even in darktable in the lighttable view. But in darkroom the below error is given. From my hours of googling and debugging with no avail, the issue seems to be something that causes the header file to fail to be loaded, which causes the colour matrix not to be found and the camera not to be found in the database.
Steps to reproduce
Import files into darktable. All of them are imported successfully in lighttable and their thumbnails visible. Go to darkroom, some photos load, others do not and kick you to lighttable. It's unclear what causes a file to be corrupted or error prone to do this, but the files it does this to are consistent. I've dived into hex editors and on the surface nothing seemed wrong, but that was about the time i gave up and decided I needed help...
Expected behavior
darktable should be able to open the files in darkroom so i can edit them normally
Logfile | Screenshot | Screencast
When opening about 10% of my photos (.ORF type on a Olympus E-M5 Mark III) I get the following error:
Text: (for google searches if someone else stumbles on this)
This error is repeatable with the same images every time i try to open them, nothing has been able to fix them. I've also gotten it on my Olympus E-M5 Mark II, so it's on multiple cameras. It effects between 5% and 10% of photos. I am able to open them in other raw GUI viewers and see them, and the header data is nearly identical between working and broken images spare semantics.
I am on Ubuntu but have also tried on a fresh install on a Windows PC with the same files, and the same ones are "corrupted", leading me to believe it's the file and how darktable reacts to them. But it makes no sense as many of these photos are taken seconds apart from each other from the exact same camera and setup. I ran darktable with
-d opencl
but don't think that's the related issue, but nevertheless here you go:There seems to be a buffer overflow but I cannot deduce more as is.
Commit
No response
Where did you obtain darktable from?
distro packaging
darktable version
darktable 4.7.0~git850.928f08d3-1+11510.1
What OS are you using?
Linux
What is the version of your OS?
Ubuntu 22.04
Describe your system?
Are you using OpenCL GPU in darktable?
No
If yes, what is the GPU card and driver?
No response
Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip
Apologies for the size. I've given three working files and three broken ones. The _2.zip ones are the ones that are broken.
A1.zip A2.zip B1.zip B2.zip C1.zip C2.zip