Bug 443015

Summary: [Gmic] Crash, Freeze for filter affecting the size of the canvas (eg. Upscale [DCCI2x] )
Product: [Applications] krita Reporter: David REVOY <info>
Component: G'Mic for KritaAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: amy
Priority: NOR    
Version First Reported In: 5.0.0-beta1   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
Latest Commit: Version Fixed In: 5.0.0.beta2
Sentry Crash Report:

Description David REVOY 2021-09-27 14:08:32 UTC
SUMMARY
Hi, a couple of filters in GMic change the geometry of the canvas. In 5.0, crash, freeze or in the best case have no effect. 

STEPS TO REPRODUCE
1. Create a 1000x1000 new document, draw a random colored stroke of painting
2. Open GMIC (Filter > Start GMIC Qt)
3. Open filter (catégory) Repair > Upscale [DCCI2x]

OBSERVED RESULT
The filter usually double the size of the canvas by default (and try to repair the resolution, useful for upscaling and printing low resolution artwork). But I had case with it freezing Krita, Crashing, or sometime going back to the canvas without effect (in case of multilayer?).

Gdb reports: 
warning: Can't read data for section '.eh_frame' in file '/tmp/.mount_krita-Nx4U5z/usr/lib/kritaplugins/../libgomp.so.1'
0x00007fff0ad9b581 in ?? () from /tmp/.mount_krita-Nx4U5z/usr/lib/kritaplugins/../libkritaqmicinterface.so.17

EXPECTED RESULT
The canvas size goes double size.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 20.04LTS
Appimage: krita-5.0.0-beta1-x86_64.appimage
Comment 1 David REVOY 2021-09-27 14:35:08 UTC
@amyspark: Here is the test you adviced on IRC, for this issue too:

I can reproduce the bug on krita-5.0.0-beta1-0c28050-x86_64.appimage (fresh 5.0 beta plus, Gmic 2.9.9) , no freeze, no crash; just nothing happens. Also the preview of DCCI filter is empty ( https://bugs.kde.org/show_bug.cgi?id=443014 )

Something weird: here again krita-5.1.0-prealpha-3e23fc2-x86_64.appimage is robust on it and upscale properly the canvas and apply the DCCI upscaling effect.
Comment 2 David REVOY 2021-10-13 15:43:25 UTC
I can't reproduce on krita-5.0.0-beta2-x86_64.appimage with 2.9.9 Gmic. Thank you @amyspark ! :-)