Bug 422406

Summary: Krita freezes and crashes to desktop when after dragging a lone magnetic anchor.
Product: [Applications] krita Reporter: tomtomtomreportingin
Component: Tools/SelectionAssignee: Kuntal Majumder <hellozee>
Status: RESOLVED FIXED    
Severity: crash CC: anna.medonosova, halla, hellozee
Priority: NOR Keywords: triaged
Version First Reported In: 4.3.0-beta2   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: gdb backtrace

Description tomtomtomreportingin 2020-06-03 07:40:27 UTC
SUMMARY
Krita freezes and crashes to desktop after, while using the Magnetic Selection tool, creating a single anchor and dragging it.

STEPS TO REPRODUCE
1. Select the Magnetic Selection Tool.
2. Create a single anchor.
3. Drag that anchor anywhere.
4. At this point, the application has froze and it eventually silently crashes to desktop.

OBSERVED RESULT
Krita freezes once the anchor is dragged and eventually crashes to desktop.

EXPECTED RESULT
No freeze/crash.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian sid
KDE Plasma Version: 5.17.5
KDE Frameworks Version: 5.70.0
Qt Version: 5.12.5

ADDITIONAL INFORMATION
Reposted from https://krita-artists.org/t/second-beta-for-krita-4-3-0-released/7849/13
Comment 1 Anna Medonosova 2020-06-03 21:07:51 UTC
Created attachment 129035 [details]
gdb backtrace
Comment 2 Kuntal Majumder 2020-06-09 09:39:39 UTC
Git commit 92678b937238804fa92ae3495a1dbed5e5c375f4 by Kuntal  Majumder, on behalf of Kuntal Majumder.
Committed on 09/06/2020 at 09:39.
Pushed by kuntalmajumder into branch 'master'.

Fix crash on moving a single lonely anchor

M  +5    -0    plugins/tools/selectiontools/KisToolSelectMagnetic.cc

https://invent.kde.org/graphics/krita/commit/92678b937238804fa92ae3495a1dbed5e5c375f4
Comment 3 Kuntal Majumder 2020-06-09 16:09:51 UTC
Git commit cba30849be0a3fdf7be557e678f090875e80a8ac by Kuntal Majumder.
Committed on 09/06/2020 at 16:09.
Pushed by kuntalmajumder into branch 'krita/4.3'.

Fix crash on moving a single lonely anchor

M  +5    -0    plugins/tools/selectiontools/KisToolSelectMagnetic.cc

https://invent.kde.org/graphics/krita/commit/cba30849be0a3fdf7be557e678f090875e80a8ac
Comment 4 Kuntal Majumder 2020-06-09 16:10:39 UTC
Git commit b311137d2c57a177a24990fa0b7c4054dc4b39a7 by Kuntal Majumder.
Committed on 09/06/2020 at 16:10.
Pushed by kuntalmajumder into branch 'krita/4.3.0'.

Fix crash on moving a single lonely anchor

M  +5    -0    plugins/tools/selectiontools/KisToolSelectMagnetic.cc

https://invent.kde.org/graphics/krita/commit/b311137d2c57a177a24990fa0b7c4054dc4b39a7