When I use GMI’C some filters simply stop working without crashing or reporting an error. GMI’C can also be terminated normally by clicking on “Cancel”. Here is the demonstration:
My OS is Kubuntu 18.04 and I have GIMP 2.10.20 and GMI’C 2.9.1 twice: once from the ppa source:
and as appimage:
GIMP works flawlessly and so do most of the filters in GMI’C, except for some that have the problems described above.
Ha yes, having the logs could help, indeed.
To activate the logs, go to Settings -> Others -> Output messages -> Debug (log file).
Then apply your filter, and just when it returns (with no effect), save the file $HOME/.config/gmic/gmic_qt_log and copy-paste it somewhere, so we can look at it !
Ah, that’s big indeed. You probably used it in the past ?
The log file could be deleted without problems before you do the test
Anyway, I’m downloading it, I’ll have a look this afternoon. Thanks!
OK, after looking at the log, I can understand why the log file is so big. That’s because the filter is interactive, and during the interaction, it constantly output the things it does in the log file. As it is a real-time interaction, the log file grows very quickly.
About the filter behavior : I didn’t noticed anything wrong with the filter. It does indeed compute the segmentation, and returns correctly. It just seems that the result is not transferred back to GIMP.
I don’t know why. Could it be that the plug-in API of GIMP has slightly changed in the very last versions ? Maybe something happened in the GIMP plug-in API between GIMP 2.10.18 and GIMP 2.10.20 ?
I’m personally running GIMP 2.10.18 on Ubuntu Focal, and everything works as expected.
It would be interesting to know on what kind of filters this weird behavior occurs. In your case, the filter takes one layer as input and replace them by two layers.
What happens with filters that takes one input layer and produces only one output layer (in-place operation) ?
At this point, I really suspect some (undocumented) changes in the GIMP plug-in API, which prevent G’MIC to transfer its output images back to GIMP.
Unzip, put in ~/.config/GIMP/2.10/plug-ins/ (remove any old version) and also ~/.config/GIMP-AppImage/2.10/plug-ins/ It should supercede the existing built-in plugin. Remember to update the filters (now 545) That works for me.
@Carmelo_DrRaw
Slightly different topic but might be linked. Question came up on g-f.net yesterday about lots of error messages with latest Gimp 2.10.21 appimage + gmic_gimp_qt. Fixed it, but you might want to update your version of gmic_gimp_qt Gory details here: Gimp + Gmic + AppImages
I am just testing, but already I can say that I noticed this behaviour when filter has to calculate for a long time.
My guess was that it might have something to do with allocated memory.
I just tested “dream smoothing” with 2 different photos:
One that was 8288 × 5520 in size. After about 2 min filter just stopped working without error message or crashes, similar to the above video.
On the photo with the wolf (1920 × 1280) filter finished the task and transferred the result to the GIMP as a new layer without any problems.
The settings for the filter were the same. Output mode was “New layer”
Yes, that is very interesting. I have duplicated the photo with the wolf and scaled duplicate to 7000 × 4667 pixels.
Then I tried different filters with original and enlarged duplicate. I tried some filters in “artistic” subornders that take longer to calculate, like “brushify”, “chalk it up” and “dream smothing” and “stylize”.
On the larger duplicate all filters stopped working at some point and on the small file there were no problems.
Here is the result of “brushify”:
That’s interesting. Then, it is not related to a shortage of memory.
I see no reasons then why it couldn’t work with large images…
Really strange, and I’m out of ideas right now
I deleted everything in the .config folder that had to do with GMIC, including the folder with GIMP’s Appimage. Then I re-downloaded GIMP 2.10.20 (with plugins) AppImage from @Carmelo_DrRaw:
If I use “Extract Foreground” filter with this GMIC version and then press ENTER key to confirm interactive window, window disappears and GMIC continues to work (you can see it on the indicator below). But even after 10 minutes nothing happens.