Bug 438405

Summary: Cannot cancel the operation ongoing
Product: [Applications] krita Reporter: acc4commissions
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: dimula73, halla
Priority: NOR    
Version First Reported In: nightly build (please specify the git hash!)   
Target Milestone: ---   
Platform: Compiled Sources   
OS: All   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description acc4commissions 2021-06-10 12:03:53 UTC
SUMMARY
5.0 prealpha

STEPS TO REPRODUCE
1. Do something that may cost a lot of processing.
2. Press cancel button next to progress reporting in the status bar.

OBSERVED RESULT
It doesn't get canceled, and appears to start again.

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 acc4commissions 2021-07-19 04:28:11 UTC
Still happens in git 17f7be2

How to reproduce, for example : 
1 Select Contiguous Selection tool and click the canvas multiple times.
2 Try to cancel the operation by pressing ESC or do anything to cancel it.
3 Krita stuck. Cannot save('Save without waiting', 'Calcel Operation and Save' both don't work as well), cannot do any other operations. And it eventually leads to having to force closing Krita.
Comment 2 Dmitry Kazakov 2021-07-20 09:39:40 UTC
Well, that would be quite a big project on making all our features cancellable. Right now the granularity of actions is rather high, so cancelling is troublesome.
Comment 3 acc4commissions 2021-07-20 11:35:25 UTC
As a user it's not that big of a deal to not be able to cancel something(although I think it should be possible). The biggest problem is that krita crashes.
Comment 4 Halla Rempt 2022-06-28 11:04:45 UTC
I don't know whether it's because my pc is too fast, but I simply cannot get this to happen. It probably _can_ happen, though, and I've seen it in the past. I'm not sure though what we can do with this report, since it's really hard to reproduce and probably depends on weird timing issues.