Bug 437387 - Hang after magnetic selection undo
Summary: Hang after magnetic selection undo
Status: RESOLVED DUPLICATE of bug 439896
Alias: None
Product: krita
Classification: Applications
Component: Tools/Selection (show other bugs)
Version: 4.4.3
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
: 437388 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-05-20 01:50 UTC by Seth Burgess
Modified: 2021-07-26 11:04 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
attachment-13519-0.html (2.07 KB, text/html)
2021-05-20 14:58 UTC, Seth Burgess
Details
Magnetic Selection 4.4.3 crash log (23.90 KB, text/x-log)
2021-05-21 14:45 UTC, Ahab Greybeard
Details
Magnetic Selection 5.0.0 crash log (24.23 KB, text/x-log)
2021-05-21 14:45 UTC, Ahab Greybeard
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***