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

bugfix: proper fix for history-paste crashes #17455

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

ralfbrown
Copy link
Collaborator

We already had code to skip pasting to the image currently being edited in darkroom (to avoid similar issues), but that code explicitly allowed the paste if the operation was started from darkroom view -- since otherwise pastes to the current image become impossible.

When doing bulk history operations, we now check whether one of the involved images is the current darkroom image, and if so, we process it synchronously (which has already proven to avoid the crash) before queuing the rest.

Full fix for #17452. Unlike #17453, it won't be possible to have cases like copying from one image on the filmstrip, moving to another, selecting all and then pasting. It would even be immune to switching to another image which gets its history updated after switching if we weren't already preventing that by limiting user interaction to cancellation until the job completes.

Apply on top of #17453 (already merged).

We already had code to skip pasting to the image currently being
edited in darkroom (to avoid similar issues), but that code explicitly
allowed the paste if the operation was started from darkroom view --
since otherwise pastes to the current image become impossible.

When doing bulk history operations, we now check whether one of the
involved images is the current darkroom image, and if so, we process
it synchronously (which has already proven to avoid the crash) before
queuing the rest.
@ralfbrown ralfbrown added bugfix pull request fixing a bug priority: medium core features are degraded in a way that is still mostly usable, software stutters labels Sep 10, 2024
@TurboGit TurboGit added this to the 5.0 milestone Sep 10, 2024
@TurboGit TurboGit self-requested a review September 10, 2024 16:20
Copy link
Member

@TurboGit TurboGit left a comment

Choose a reason for hiding this comment

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

Works for me, thanks!

@TurboGit TurboGit merged commit 42d92ca into darktable-org:master Sep 10, 2024
6 checks passed
@ralfbrown ralfbrown deleted the paste_fix_2 branch September 10, 2024 16:57
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 priority: medium core features are degraded in a way that is still mostly usable, software stutters
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants