Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failure to process certain DNG files (Leica M246) #343

Open
ubergeek801 opened this issue Feb 9, 2022 · 7 comments
Open

failure to process certain DNG files (Leica M246) #343

ubergeek801 opened this issue Feb 9, 2022 · 7 comments

Comments

@ubergeek801
Copy link
Contributor

Darktable/Rawspeed handle about 95% of the DNG files from a Leica M Monochrom (Typ 246) just fine, but fail on some of them. The failing files can be opened in RawTherapee, so this doesn't seem to be a matter of data corruption.

Using the rstest utility produces some output:

L1000625.DNG failed: /home/jeremy/dev/git/rawspeed/src/librawspeed/decompressors/AbstractDngDecompressor.cpp:224: void rawspeed::AbstractDngDecompressor::decompress() const: Too many errors encountered. Giving up. First Error:
/home/jeremy/dev/git/rawspeed/src/librawspeed/io/Buffer.h:173: const uint8_t* rawspeed::Buffer::getData(rawspeed::Buffer::size_type, rawspeed::Buffer::size_type) const: Buffer overflow: image file may be truncated
Total decoding time: 0s

If there are other diagnostics I can run, I'd be happy to do so. I can of course provide an offending DNG file as well (they tend to be on the order of 20 MB).

@LebedevRI
Copy link
Member

Could you please contribute one such image to https://raw.pixls.us/ ? (please do write a comment there about the problem)

@ubergeek801
Copy link
Contributor Author

I uploaded an image and it seemed to be successful, but I don't see it appearing in the repository. I'll check on it later and, if necessary, try again...

@ubergeek801
Copy link
Contributor Author

Strangely, the file is still not appearing, and if I try to upload it again, I am told that the file already exists. Hopefully I can get this sorted out...

@ubergeek801
Copy link
Contributor Author

pixls still refuses to accept my upload, with the message "The file either already exists, the CC0/modified checkboxes weren't checked, or you forgot to choose a file." The file should have the name L1000625.DNG.

I'll try reaching out to Pat David (pixls.us owner) and see if I can get a response.

@ubergeek801
Copy link
Contributor Author

For what it's worth, this issue occurred with, I believe, three different images the first time I used the camera (about 80 shots, if I recall). Given the upload issue, I wish I had kept the other two!

I've taken perhaps another 100 shots with this camera since then, and the issue hasn't re-occurred. So I couldn't entirely rule out some sort of data corruption, although that hypothesis doesn't provide a satisfying explanation of RawTherapee's ability to process the file...

@kmilos
Copy link
Contributor

kmilos commented Jan 16, 2024

Sounds like this is the same as darktable-org/darktable#11695?

@LebedevRI
Copy link
Member

LebedevRI commented Jan 16, 2024

Ok, well, better than nothing i suppose...
@ubergeek801 thank you for contributing the samples!

Edit: wrong issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@LebedevRI @kmilos @ubergeek801 and others