darktable-org / darktable

darktable is an open source photography workflow application and raw developer
https://www.darktable.org
GNU General Public License v3.0
9.8k stars 1.14k forks source link

Version 4.8.1 NEF file cannot be edited, but RawTherapee does without any problems #17388

Open scheichreisuli opened 2 months ago

scheichreisuli commented 2 months ago

Describe the bug

Hi,

I want to switch from Capture One to Darktable, because their new license-conditions do not meet my needs. Darktable version 4.8.1 is my first Darktable version (Windows 10, 64bit professional).

When I import a Nikon RAW NEF-file, the image is added to the library and a small sample is displayed, but a message is shown (... unknown format). When I open the image in the darkroom the image is not displayed (grey background) and a message is shown:

... cannot read whitebalence".

This is reproducable with all my NEF-files.

The image I tried to import was processed by EXIFTOOL (added some META-tags).

When I try to open the same file (version BEFORE adding META-tags by EXIFTOOL), the image opens properly and can be edited.

This is strange, because I also have SONY Raw ARW-files, processed with exactly the same EXIFTOOL-commands as the NEF-files (only added META-data), they open properly in Darktable's Darkroom. Sony RAW-files work, Nikon files don't.

I used RawTherapee 5.1 (latest version) to check if the NEF-files are really broken. RawTherapee opened the files without any problems as RAW-files, all editing-options for RAW-files worked. In Capture One and Nikon Studio the files work, too.

So I think there must be a bug in Darktable's Darkroom module. I can provide sample images (working and non working examples) if you are interested as a download from my cloud-storage. Please let me know about this. You will get a download-link which will have a download-time-limit for security purposes. Please send me a personal email, my answer will give you the download-link.

Have a nice day

Steps to reproduce

  1. goto import or drag an image to the import-tab
  2. a message is shown "... unknown file-format", a thumbnail of the image is displayed
  3. add the image to the library, no problems
  4. double-click the thumbnail
  5. the darkroom opens, the background is grey, a message is displayed "... cannot read whitebalance"
  6. the lighttable is displayed
  7. clicking on the image again crashes darktable sometimes, sometimes not.

Expected behavior

darktable should open the darkroom and enable all editing-options

Logfile | Screenshot | Screencast

No response

Commit

No response

Where did you obtain darktable from?

downloaded from www.darktable.org

darktable version

4.8.1

What OS are you using?

Windows

What is the version of your OS?

10 professional

Describe your system?

64GB RAM, AMD, SSD, 2HDD

Are you using OpenCL GPU in darktable?

Yes

If yes, what is the GPU card and driver?

no idea, but the driver is not the problem

Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip

No response

kmilos commented 2 months ago

When I try to open the same file (version BEFORE adding META-tags by EXIFTOOL), the image opens properly and can be edited.

Doesn't sound like a fundamental dt issue if OOC files work, and the question can be equally directed to exiftool.

See also related https://github.com/darktable-org/darktable/issues/15562#issuecomment-1824526754 and/or https://github.com/darktable-org/darktable/issues/5149

Although there are no guarantees given (because supporting modified raw files is not a design goal of dt), it would still be good to have both the OOC and the modified NEF samples (shared via some cloud service etc.) for any further analysis possibly.

Also, the "[rawspeed] ..." error lines from the log when running darktable -d imageio could be useful to have here as well.

scheichreisuli commented 2 months ago

Thank you for your quick response.

I cannot run x86_64-w64-ranlib.exe. Windows refuses execution because of virus-protection.

I add tags for author, copyright, userComment, keywords using an args-file (for batch-processing). The script is a WINDOWS Powershell-script. All these tags show properly in any image-software/viewer.

I know about a lot of threads in the internet about problems with NEF-files. The strange thing is that other RAW-converters read the files with no problem.

BTW: SONY Raw files have the extension ARW which all work fine.

I will run darktable with -d imageio.

See you

scheichreisuli commented 2 months ago

I started darktable with the suggested parameters but I cannot find any log-file or similar file.

I had a look to the log-link in your last reply but there is nothing I can deal with.

I'm no system-admin or programmer and the Windows-rabbithole is not my subject. I'm just a Windows-user.

I can provide the working and not working images if you like, but exploring Windows on this level is not my thing, sorry.

victoryforce commented 2 months ago

I cannot run x86_64-w64-ranlib.exe. Windows refuses execution because of virus-protection.

What is it and why are you trying to run it? darktable has no executable file with this name.

scheichreisuli commented 2 months ago

This was part of the first reply.

Maybe I got malware???

victoryforce commented 2 months ago

This was part of the first reply.

I don't see any answers here that include links to executables.

Maybe I got malware???

If such a comment WAS here, it could mean that the comment was removed by GitHub and then it is highly likely that it was a malicious comment to spread malware.

derklaro commented 2 months ago

This was part of the first reply.

Maybe I got malware???

You probably did, yeah. Your account posted a link to malware on another issue (in a different repository) a few minutes ago.

scheichreisuli commented 2 months ago

We are working at it...

scheichreisuli commented 2 months ago

Back to "What is the command line? "

I contacted the author (working in my company). Here is an excerpt of the EXIFTOOL-args-file for a single NEF-file

-filename=P:\sources\digital\nikon\2018\20180829\20180829-124702,086_d850_00000.nef -make=NIKON -model=D850 -artist=Uwe Fißenebert -copyright=(C) 2018, Uwe Fißenebert - All rights reserved -usercomment= P:\original\digital\nikon\2018\20180829\2018_08_29_12-47-02.NEF -execute0530470

This takes a source-file, adds tags, renames the file and sends a copy to a new location.

I had a look at darktables camera XML. The data for camera D850 shows for Make 'NIKON CORPORATION', same as in OOC-files. The NEF-files proceeded show 'NIKON' for the EXIF:Make-tag.

I changed it back to 'NIKON CORPORATION' in the file but that did not solve the problem.

You can download sample-file here (220MB):

https://cloud.ufc.de/index.php/s/nxibassnwzqLD3w

The link expires on 2024-09-02.

Maybe the images help to solve the problem.