Bug 388201

Summary: Stuck at "Remove Nodes: 0%" after series of operations
Product: [Applications] krita Reporter: Vladimir Savic <vladimir.firefly.savic>
Component: GeneralAssignee: Dmitry Kazakov <dimula73>
Status: RESOLVED FIXED    
Severity: major CC: eneeen, griffinvalley, halla
Priority: NOR Keywords: release_blocker
Version: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:

Description Vladimir Savic 2017-12-24 19:05:04 UTC
After performing series of specific operation Krita gets stuck at high CPU usage. GUI stays partially responsive. I can bring About dialog for example. Closing image is impossible though.

1. New document (for testing purpose let's say: A5 at 300 dpi, 16 bit float/channel)
2. New Fill layer
3. Choose "Color" instead of "Pattern" and hit OK
4. Try deleting layer at bottom of the list (should be "Layer 1")

8 bit images do not exhibit the same problem.
Comment 1 wolthera 2017-12-25 00:07:50 UTC
Can fully reproduce on KDE Neon based on Ubuntu 16.04

Fill layers have been behaving oddly for me since the multithreaded brushes branch got merged, but lord knows why.

Thanks for your report :)
Comment 2 wolthera 2017-12-29 13:11:42 UTC
*** Bug 388317 has been marked as a duplicate of this bug. ***
Comment 3 Halla Rempt 2018-01-02 13:50:53 UTC
Interestingly, this doesn't happen on opensuse.
Comment 4 Halla Rempt 2018-01-02 15:52:32 UTC
This is caused by this commit:

commit f3f864499ed83dd32564b974c4e2be7f61b4c283
Author: Dmitry Kazakov <dimula73@gmail.com>
Date:   Wed Oct 11 16:06:02 2017 +0300

    Post updates to the scheduler in bunches
    
    Otherwise, there is an extremely high contention over the queues and
    updates executes basically in single-threaded mode.
Comment 5 Halla Rempt 2018-01-02 16:01:15 UTC
I have no idea why this breaks on Ubuntu and Windows and not on OpenSUSE, though. On my Windows laptop, I do not see this behaviour with 	krita-nightly-v4.0.0-prealpha.2-465-g8c8c2c91aa.zip
Comment 6 Dmitry Kazakov 2018-01-16 11:35:27 UTC
Should be fixed in

https://cgit.kde.org/krita.git/commit/?id=79f3a44038b5f7d742956ee7fe31d3bc657d6fe9