Bug 437387

Summary: Hang after magnetic selection undo
Product: [Applications] krita Reporter: Seth Burgess <seth.burgess>
Component: Tools/SelectionAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: ahab.greybeard, shzam
Priority: NOR    
Version: 4.4.3   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: attachment-13519-0.html
Magnetic Selection 4.4.3 crash log
Magnetic Selection 5.0.0 crash log

Description Seth Burgess 2021-05-20 01:50:40 UTC
SUMMARY


STEPS TO REPRODUCE
1. Create a selection with the magnetic selection tool 
2. Undo
3. Start creating another selection

OBSERVED RESULT

Krita becomes unresponsive and needs to be closed.

EXPECTED RESULT

start a new magnetic selection

SOFTWARE/OS VERSIONS
Windows: 10, up to date 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Tiar 2021-05-20 01:51:56 UTC
*** Bug 437388 has been marked as a duplicate of this bug. ***
Comment 2 Ahab Greybeard 2021-05-20 08:18:02 UTC
With the 4.4.3 installed and also the May 19 5.0.0-prealpha (git 341198f1c0) portable .zip on Windows 10. I don't see this happen.

I tried Esc to cancel an incomplete selection, Ctrl+Z to go back from an incomplete selection, Ctrl+Z to Undo a completed selection and Deselect to remove a completed selection.

@Seth Burgess: Can you give more details about what you do for a minimum complexity 'lock up' situation?. Or maybe a video screen capture of the event?
Comment 3 Seth Burgess 2021-05-20 14:58:17 UTC
Created attachment 138613 [details]
attachment-13519-0.html

I closed the loop by clicking the first point, then clicked it again to
create the selection.  I then hit control-z to undo.  When I tried to start
making another selection with the tool, it would hang.  Reproduced 3 times
in a row for me.

I can try to make a video later tonight.

Thanks,

Seth

On Thu, May 20, 2021 at 3:18 AM Ahab Greybeard <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=437387
>
> Ahab Greybeard <ahab.greybeard@hotmail.co.uk> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>                  CC|
> |ahab.greybeard@hotmail.co.u
>                    |                            |k
>
> --- Comment #2 from Ahab Greybeard <ahab.greybeard@hotmail.co.uk> ---
> With the 4.4.3 installed and also the May 19 5.0.0-prealpha (git
> 341198f1c0)
> portable .zip on Windows 10. I don't see this happen.
>
> I tried Esc to cancel an incomplete selection, Ctrl+Z to go back from an
> incomplete selection, Ctrl+Z to Undo a completed selection and Deselect to
> remove a completed selection.
>
> @Seth Burgess: Can you give more details about what you do for a minimum
> complexity 'lock up' situation?. Or maybe a video screen capture of the
> event?
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 4 Ahab Greybeard 2021-05-21 14:44:35 UTC
I can replicate this crash with the 4.4.1 through to May 20 5.0.0-prealpha (git 4d2b6eo) appimages on Linux Debian 10 and also on Windows 10 using the 4.4.3 installed package and the May 21 5.0.0-prealpha (git 390920d56b) portable .zip package.

When it happens on Linux, there is lock up and Linux shows 100% usage of one (of 8) CPU cores that lasts for 30 seconds before it closes with 'Segmentation fault' as the only terminal output.

When it happens on Windows 10, there is lock up and high CPU usage (13% so probably 1 of 8 CPU cores). I can click the window X icon to give a not-responding message and a crash log. I attach two crash logs.

It does not happen if I only use the mouse for repeated cycles of making a selection then Ctrl+Z undoing the selection.
It does not happen if I only use the stylus.

It does happen if I use the mouse to make a selection, do Ctrl+Z, then use the stylus to make a selection.
Comment 5 Ahab Greybeard 2021-05-21 14:45:16 UTC
Created attachment 138648 [details]
Magnetic Selection 4.4.3 crash log
Comment 6 Ahab Greybeard 2021-05-21 14:45:53 UTC
Created attachment 138649 [details]
Magnetic Selection 5.0.0 crash log
Comment 7 sh_zam 2021-07-26 11:04:33 UTC

*** This bug has been marked as a duplicate of bug 439896 ***