darktable 5.7.0+ enters darkroom mode with crop handles already enabled

I’ve been using 5.7.0+ since the daily builds moved past 5.6.* and I’ve seen this issue on the last couple of builds.

When I enter darkroom mode with an image selected, the crop handles appear and dt is clearly in crop, although the crop module is OFF. In order to proceed, I have to first enable the crop module, then disable it (I usually use the right-click rotate procedure before cropping, so cropping at this point is usually counterproductive).

Should I desire to actually crop before exiting the mode, I can manipulate the handles BUT the crop module remains OFF and when I type C (my shortcut) it enables the crop module but does not crop. I need to type C again for the crop process to complete.

MacOS 15.7, dt version 5.7.0+841, Mac Studio M1 Ultra

Wanted to add that:

  1. Quitting and restarting dt had no effect on this issue.

  2. After editing maybe a dozen photos, suddenly the crop mode began behaving correctly again.

  3. I was able to reproduce it by hitting “space” (the default “go to next photo” shortcut) BEFORE finishing the crop process on a photo. Somehow this disabled the crop module but left the crop handles active. I have never seen this behavior before, and I do occasionally/accidentally hit “space” during a crop.

Reminds me of this issue: Sticky module controls when switching to QAP · Issue #22169 · darktable-org/darktable · GitHub

It might be useful if you could find a way to reliably reproduce, possibly starting from a fresh config. And then report your findings as an issue on github.

2 Likes

Working on that now. It seems that moving to the next image causes the crop module to deactivate, but the crop handles (if present at the time) do not go away. So dt’s crop module is out of sync with the crop handle status thereafter until something resets it. If I can reproduce this reliably I will write it up as an issue.

1 Like

I have noticed this too. Except I didn’t really notice it, I thought it must have been something I’d done.

But now you come to mention it: I share the experience.

5.7.0+813~ga1257a7c55

Yeah I’ve been able to reproduce now too. I don’t 100% know what triggers it but I know how to end the “bad behaviour”: expanding another module “fixed” it for the moment.

2 Likes

This is reproducible by entering an image with crop disabled, pressing c which turns on the crop grid without enabling the module, and pressing space to go to the next image. After that, the setting becomes sticky (can’t be turned off by pressing c again).

But I don’t know to what extent this is a bug rather than how dt acts when the crop module is highlighted (most recently used). Certainly there is at least one bug: in this state, the module becoming enabled (after c is pressed to hide the grid) does not show the grid.

2 Likes

DT 5.7 +841 I opened an image in DT and line surrounded the image. Not really crop handles in my view but I played with crop module to get rid of it.

EDIT: moving between pictures in film strip definitely brings up crop handles when the image opens. I am on Windows.

After further experimentation, I agree - this seems to work to reproduce the issue on my installation, and the artifact of the module being enabled w/o a visible grid is the same.

Just wanted to report that the latest nightly (darktable-5.7.0+932.g5fa6983a50-arm64) seems to behave correctly in terms of the crop handles and module activation syncing. In other words, issue resolved! Well done to the developers.

3 Likes