| Summary: | Combined shapes plus redo operations lead to a crash | ||
|---|---|---|---|
| Product: | [Applications] krita | Reporter: | Elena Sagalaeva <alenacpp> |
| Component: | Layers/Vector | Assignee: | Elena Sagalaeva <alenacpp> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | git master (please specify the git hash!) | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Microsoft Windows | ||
| Latest Commit: | https://invent.kde.org/graphics/krita/-/commit/478ddf4e6e5cebe3dbe0473d88d239c28e89ad01 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Elena Sagalaeva
2026-07-15 00:22:31 UTC
The issue is happening because Krita creates a new path shape each time during the "redo()" call. The subsequent operations don't know about it and continue to use the old one. I used "Delete" to reproduce the issue, but other operations could be used instead. "Move", for example. A possibly relevant merge request was started @ https://invent.kde.org/graphics/krita/-/merge_requests/2870 Git commit 9ab35881aebecc78971292849d86558a79a39999 by Dmitry Kazakov, on behalf of Elena Sagalaeva. Committed on 27/07/2026 at 11:50. Pushed by dkazakov into branch 'master'. Do not create a new path shape in KoMultiPathPointMergeCommand::redo() call The subsequent operations don't know about the new shape and continue to use the old one, which causes crashes. M +26 -20 libs/flake/commands/KoMultiPathPointMergeCommand.cpp M +63 -0 libs/flake/tests/TestPointMergeCommand.cpp M +3 -0 libs/flake/tests/TestPointMergeCommand.h https://invent.kde.org/graphics/krita/-/commit/9ab35881aebecc78971292849d86558a79a39999 Git commit 478ddf4e6e5cebe3dbe0473d88d239c28e89ad01 by Dmitry Kazakov, on behalf of Elena Sagalaeva. Committed on 27/07/2026 at 11:59. Pushed by dkazakov into branch 'krita/6.0'. Do not create a new path shape in KoMultiPathPointMergeCommand::redo() call The subsequent operations don't know about the new shape and continue to use the old one, which causes crashes. M +26 -20 libs/flake/commands/KoMultiPathPointMergeCommand.cpp M +63 -0 libs/flake/tests/TestPointMergeCommand.cpp M +3 -0 libs/flake/tests/TestPointMergeCommand.h https://invent.kde.org/graphics/krita/-/commit/478ddf4e6e5cebe3dbe0473d88d239c28e89ad01 |