Summary: | Crash can be induced with 4.3.0 onwards after copying a vector layer to another open image | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | Ahab Greybeard <ahab.greybeard> |
Component: | Layers/Vector | Assignee: | Dmitry Kazakov <dimula73> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | anna.medonosova, dimula73 |
Priority: | NOR | Keywords: | regression, triaged |
Version: | nightly build (please specify the git hash!) | ||
Target Milestone: | --- | ||
Platform: | Debian stable | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/graphics/krita/commit/9475fe1d7301100ef9245da67f39e646bc1b394f | Version Fixed In: | |
Sentry Crash Report: | |||
Bug Depends on: | |||
Bug Blocks: | 456450 | ||
Attachments: | backtrace of the crash |
Description
Ahab Greybeard
2020-07-01 16:52:59 UTC
I can reproduce this issue in krita-5.0.0-prealpha-dd8d748-x86_64.appimage Created attachment 130072 [details]
backtrace of the crash
Git commit 590e9dd98476d5b4146f5371cfec2bd487b67d33 by Dmitry Kazakov. Committed on 10/09/2020 at 19:03. Pushed by dkazakov into branch 'krita/4.3'. Fix crash after pasting a shape layer into a different document We shouldn't expect layer->image() being always set when creating a shape layer. Image may not exist for layers stored in KisMimeData. M +47 -21 libs/ui/flake/kis_shape_layer.cc M +3 -1 libs/ui/flake/kis_shape_layer.h https://invent.kde.org/graphics/krita/commit/590e9dd98476d5b4146f5371cfec2bd487b67d33 Git commit d60b315d4c51895eec12288e96790b6a4a602b01 by Dmitry Kazakov. Committed on 10/09/2020 at 19:03. Pushed by dkazakov into branch 'krita/4.3'. Fix sanity assert when destroying image right after pasting a layer into it Basically, KisNodeJugglerCompressed should stop storing **any** pointers to KisImage after slotEndStrokeRequested() has arrived. The pointers are stored in Private and BatchMoveUpdateData. M +3 -1 libs/image/kis_idle_watcher.cpp M +1 -0 libs/ui/KisDocument.cpp M +7 -4 libs/ui/kis_node_juggler_compressed.cpp https://invent.kde.org/graphics/krita/commit/d60b315d4c51895eec12288e96790b6a4a602b01 Git commit 292835d05ec8650dcfa4648f961351489a4a5430 by Dmitry Kazakov. Committed on 10/09/2020 at 19:03. Pushed by dkazakov into branch 'krita/4.3'. Fix memory leak in KisMimeData M +2 -2 libs/ui/kis_mimedata.cpp https://invent.kde.org/graphics/krita/commit/292835d05ec8650dcfa4648f961351489a4a5430 Git commit 9475fe1d7301100ef9245da67f39e646bc1b394f by Dmitry Kazakov. Committed on 10/09/2020 at 19:04. Pushed by dkazakov into branch 'master'. Fix crash after pasting a shape layer into a different document We shouldn't expect layer->image() being always set when creating a shape layer. Image may not exist for layers stored in KisMimeData. M +47 -21 libs/ui/flake/kis_shape_layer.cc M +3 -1 libs/ui/flake/kis_shape_layer.h https://invent.kde.org/graphics/krita/commit/9475fe1d7301100ef9245da67f39e646bc1b394f Git commit 04c9bf185a05eb02e9151c670e3ba46bed11971b by Dmitry Kazakov. Committed on 10/09/2020 at 19:04. Pushed by dkazakov into branch 'master'. Fix sanity assert when destroying image right after pasting a layer into it Basically, KisNodeJugglerCompressed should stop storing **any** pointers to KisImage after slotEndStrokeRequested() has arrived. The pointers are stored in Private and BatchMoveUpdateData. M +3 -1 libs/image/kis_idle_watcher.cpp M +1 -0 libs/ui/KisDocument.cpp M +7 -4 libs/ui/kis_node_juggler_compressed.cpp https://invent.kde.org/graphics/krita/commit/04c9bf185a05eb02e9151c670e3ba46bed11971b Git commit ba95fd959843b8c034e334855f008f84daad328f by Dmitry Kazakov. Committed on 10/09/2020 at 19:04. Pushed by dkazakov into branch 'master'. Fix memory leak in KisMimeData M +2 -2 libs/ui/kis_mimedata.cpp https://invent.kde.org/graphics/krita/commit/ba95fd959843b8c034e334855f008f84daad328f |