Bug 444338 - gmic qt stuck on applying filter
Summary: gmic qt stuck on applying filter
Status: RESOLVED UPSTREAM
Alias: None
Product: krita
Classification: Applications
Component: G'Mic for Krita (show other bugs)
Version: nightly build (please specify the git hash!)
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-24 19:06 UTC by til.schmitter
Modified: 2021-10-29 09:57 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description til.schmitter 2021-10-24 19:06:42 UTC
5.1.0-prealpha (git 6e8aab8)

SUMMARY
tried to use pixel sort on gmic and applying the filter didn't finish after 5 minutes (it applies within 4 seconds on the stable version)

STEPS TO REPRODUCE
1. make a 4k canvas
2. draw something 
3. use pixel sort in gmic 

OBSERVED RESULT
- filter still stuck computing after 5 minutes
- CPU at 100% the whole time

EXPECTED RESULT
filter applies within 5-10 seconds

SOFTWARE/OS VERSIONS
Windows 10
5.1.0-prealpha (git 6e8aab8)
cpu: i7 6700
gpu: amd rx 5700xt
Comment 1 amyspark 2021-10-25 15:49:26 UTC
I have tested it with GMic 2.9.9 both on 4.4.8 as well as Paint.NET. In both versions the filter takes upwards of 15 minutes with 16 threads.

Closing as UPSTREAM because our fork as well as stock G'MIC match in behaviour.
Comment 2 David Tschumperlé 2021-10-29 08:58:16 UTC
Looks like a bug indeed. I'm investigating.
Comment 3 David Tschumperlé 2021-10-29 09:57:14 UTC
Command 'pixelsort' has been optimized for latest pre-release 3.0.0_pre : 

https://github.com/dtschump/gmic/commit/14729b59d86e7555b8e4ad18760c122e192dd639

Filter on a 4K image now takes only a few seconds to compute.
Should be available as a filter update in a few minutes.