darktable icon indicating copy to clipboard operation
darktable copied to clipboard

Add to library feature is broken in lighttable

Open hlvrn opened this issue 6 months ago • 5 comments

Is there an existing issue for this?

  • [x] I checked and did not find my issue in the already reported ones

Describe the bug

Suddenly, it's now impossible for me to add new collections / film rolls into lighttable by clicking on 'add to library' (meaning that, it's not possible at all to use darktable any longer). The program freezes / nothing happens which clicking on 'add to library'.

Steps to reproduce

Click on 'add to library'.

Expected behavior

No response

Logfile | Screenshot | Screencast

darktable-log.txt

Commit

No response

Where did you obtain darktable from?

darktable.org / GitHub release

darktable version

5.4.1

What OS are you using?

Windows

What is the version of your OS?

Win 11

Describe your system

No response

Are you using OpenCL GPU in darktable?

None

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

Clicking on add to library worked a few weeks ago. I dont know what has changed.

hlvrn avatar May 28 '26 17:05 hlvrn

Your log file unfortunately contains no useful information of the last launches of dt.

  • delete your old darktable-log.txt
  • create a new one by starting darktable from the command line with debug option -d common
  • see https://www.darktable.org/about/faq/ for the procedure on Windows
  • attach this log here

pehar1 avatar May 29 '26 07:05 pehar1

darktable-log.txt

Updated log uploaded. To be clear, the programme darktable screen simply freezes - I can't click on anything after having clicked on add to library. It never crashes with a pop up or shuts down. I have to manually shut it down via task manager.

hlvrn avatar May 29 '26 09:05 hlvrn

Looks normal except the last line

6.7250 [mipmap cache get] got a zero-sized ID=6560 mip 1!

You seem to have (at least one) damaged cached thumbnail image in your cache, the one with ID 6560. Inside your darktable cache folder you should find a folder mipmaps-xxxxxxxxx ( with xxx : a huge hex number). Inside this folder you find sub-folders 0, 1, 2 .... . Inside these folders you find the cached images nnn.jpg (with nnn the ID). You can try to delete the image named 6560.jpg in folder 1, then start dt again creating a -d common log. If dt is crashing again, look at the new log, repeat deleting damaged mipmaps.

I'm on Linux, no Windows available, so I can't tell where your dt cache is located, you might find some info in the FAQ or just use your preferred search engine or Windows file / folder search.

pehar1 avatar May 29 '26 09:05 pehar1

Thank you!

I found the cache folder, located in %LOCALAPPDATA%\Microsoft\Windows\INetCache\darktable. Deleted the jpg, but still same issue.

However, I did some digging and with the help of AI, may have found the solution.

The issue was apparetntly caused by a corrupted darktablerc configuration/preferences file in %LOCALAPPDATA%\darktable. Renaming darktablerc to darktablerc.old forced darktable to regenerate a fresh config, which fixed the “Add to library” freeze while preserving the image databases (library and data).

hlvrn avatar May 29 '26 13:05 hlvrn

It happens from time to time, that a damaged darktablerc causes a crash. If your issue is fixed, think about closing this report. If you are interested in knowing the critical line in darktablerc you could search for it by bisecting the file. Divide the file into 2 in the middle, test with the first part, then with the second. Take the part that causes the crash, divide it again, repeat testing the two parts, and so on.

pehar1 avatar May 29 '26 14:05 pehar1