"Blend edges" crashes when used with large images: Can someone test this please?

Hi,

The following pipelines crash GIMP or my Terminal :

gmic run 'sp lena,9000 +gradient_norm blend edges,1'
gmic run 'sp lena,9000 +gradient_norm blend_edges 1'

I don’t know if it’s my computer’s limitations (macbook air M1, 8gb Ram) or the blend mode not liking large images. It may even crash on smaller images (7000x5000 or 5000x4000px).
Can someone test it?
Thanks.

Works fine for me:

Thanks, have you tried with blend edges,1 also?
Both crash for me but blend_edges seems to take more time.
I’ll try on another computer later.

You need to have space between the comma and the s. It won’t work if you don’t do it. And there’s the built-in error after you add the space because $1 is not specified.

A 9000x9000 color image in G’MIC takes almost 1Gb of RAM.
Not sure how many copies are needed to run your pipeline, but it may overflow your RAM yes.
Also, I don’t know about the possible limitations in MacOS.

I don’t think that’s the problem here. I’m writing a little gmic filter and it just breaks on large images ( smaller images like 3000x4000 are ok) when blend is called with the edges mode. And i think it works fine with most other modes. I think one called shapemin crashed too.

Actually i have Asahi Linux installed I just hate MacOs :slight_smile:
9000x9000 was just an example. Actually it also crashed with a 5000x4000… It’s probably a RAM issue but I don’t remember seeing the filter eat that much memory (around 2 gb i think, I can’t check since i’m on my phone right now).

Alright, i forgot i didn’t have a swap partition/file. I’ve created a swap file and it’s a little better now :slight_smile:
It was indeed eating a lot of ram…

1 Like