Bug 384905

Summary: Locked up in "waiting for action" indefinitely
Product: [Applications] krita Reporter: Storm Engineer <storm.anthro>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: halla
Priority: NOR    
Version First Reported In: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot of indefinite waiting

Description Storm Engineer 2017-09-20 23:19:22 UTC
Created attachment 107922 [details]
Screenshot of indefinite waiting

Sometimes Krita tells you that you need to wait for an action to complete, such as transform or saving.

This popup never disappears, and Krita is suspended in this state. The only way to make Krita proceed is by manually closing this popup, when that's possible.

In one instance upon trying to close Krita it tried to wait for saving the document, and this popup was unclosable, causing the save to never happen and being forced to kill Krita resulting in changes not getting saved. See attached screenshot.

This may be related to another issue where Krita refuses to save and the only way to save is to close the document and say Yes when Krita asks if I want to save changes.
Comment 1 Storm Engineer 2017-10-09 10:30:04 UTC
Issue still present. Recently lost work twice due to Krita getting locked up in trying to save the document but never actually saving it, leaving no choice but to terminate it.
Comment 2 Storm Engineer 2017-11-13 08:31:02 UTC
UPDATE

Found a way to reliably replicate in case of saving:
1; Start saving a (preferably large, so it's slow) document
2; Cancel the saving process before it's complete
3; Try to save again - Krita will try to save indefinitely, and never succeed. Document is unsaveable.
Comment 3 Halla Rempt 2017-11-26 15:44:52 UTC
Fixed by Dmitry in 

commit f01a5ea1f5f8128c1319e97b2bab6d50e8b4d369
Author: Dmitry Kazakov <dimula73@gmail.com>
Date:   Fri Nov 24 19:23:45 2017 +0300

    Fix a hangup when cancelling exporting a PNG image
    
    We should unlock the locks when cancelling the operation
    
    Fixes T7194