Skip to content

lighttable: clamp stale thumbnail offsets - #21952

Merged
TurboGit merged 1 commit into
darktable-org:masterfrom
Arecsu:fix-21860-blank-lighttable
Aug 22, 2026
Merged

lighttable: clamp stale thumbnail offsets#21952
TurboGit merged 1 commit into
darktable-org:masterfrom
Arecsu:fix-21860-blank-lighttable

Conversation

@Arecsu

@Arecsu Arecsu commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Fixes #21860

The filemanager could restore a stale thumbnail offset after leaving preview/culling. When that offset was beyond the current collection, the redraw queried past the end and loaded zero thumbnails, leaving the lighttable blank.

The filemanager now clamps restored offsets to a valid row-aligned position before rebuilding thumbnails.

The issue was reported on Windows, but the affected state restoration is shared across platforms. Windows testing is still required. Seems somewhat flaky to trigger though so unsure about how to test this properly

@Arecsu Arecsu changed the title NEEDS WINDOWS TESTING: lighttable: clamp stale thumbnail offsets lighttable: clamp stale thumbnail offsets Aug 22, 2026
@TurboGit TurboGit added this to the 5.8 milestone Aug 22, 2026
@TurboGit TurboGit added bugfix pull request fixing a bug gtk4 and removed gtk4 labels Aug 22, 2026

@TurboGit TurboGit left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@TurboGit
TurboGit merged commit a05abcb into darktable-org:master Aug 22, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix pull request fixing a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lighttable occasionally shows no images (empty) in filemanager layout

2 participants