Bug 444338

Summary: gmic qt stuck on applying filter
Product: [Applications] krita Reporter: til.schmitter
Component: G'Mic for KritaAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: amy, David.Tschumperle
Priority: NOR    
Version First Reported In: nightly build (please specify the git hash!)   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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.