Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CRASHING Elsamuko Nationa Geographic NEXT GEN in 2.99.19
#1
I tried to port Elsamuko National Geographic to Gimp 2.99.19 (this filter works on 2.10 Compat OFF)... but I get a complete Gimp crash.

I think it's the line:

Code:
(car (plug-in-decompose 0 aimg 1 (vector adraw) "rgb" TRUE FALSE)) ;2.99.19

Maybe I'm wrong in the syntax, or it's Gimp 2.99.19 that has a problem, in which case I should report it to the developers, but a second opinion would be of clarification, before causing trouble for the wrong reasons.

Here the scm file:

https://github.com/vitforlinux-gimp/scm-...xt-gen.scm



THANK YOU
Reply
#2
Hi vitforlinux
I tested with an appimage by ivanhc. Here is the console error:


Code:
(script-fu:4778): scriptfu-WARNING **: 22:11:56.127: Missing arg type: GimpObjectArray
gimp-2.99: fatal error: Segmentation fault
Reply
#3
The bug could be in Gimp. When I do Colors > Components > Decompose
closing the new image(s) gives an error message.
Reply
#4
In Gimp3 there is no longer a single active layer but several, so the layer argument can be an array/list.
Reply
#5
I believe that plugin-despeckle on 2.99.19, although the syntax is as indicated by the guide, has some problems that only developers can solve.

I forgot to mention that I also use IvanHC appimages... but I don't think the problem is because of that.

@Ofnuts: I have this bad habit of pretending to make double-use files, for now I still manage to do it, I think that if they wanted to make Gimp totally Array it would take years.


THANKS!
Reply
#6
Crash solved... new error. (updated script)

Changed syntax of gimp-edit-copy:


Code:
       (if (= (string->number (substring (car(gimp-version)) 0 3)) 2.10)
           (gimp-edit-copy ShadowLayer)
           (gimp-edit-copy 1 (vector ShadowLayer)))

Now the error is in line:


Code:
(gimp-floating-sel-anchor (car (gimp-edit-paste ShadowMask TRUE)))

I think something would be needed to convert a vector to a number.

Thanks
Reply
#7
Quote:My updated filters for 2.99.19-WIP!

That is looking really good. Congratulations.
Reply
#8
Thanks, unfortunately I also got it into my head to port the Elsamuko filters, but I don't know how to solve it... I don't know how to write the block used to do copy & paste in 2.99 language.
Reply
#9
NOW WORKS correctly in 2.10 and 2.99.19!!!

(updated file)

I found suggestions in this scm folder for Gimp 2.99... written by experts.

https://gitlab.gnome.org/GNOME/gimp/-/tr...type=heads


Code:
       (if (= (string->number (substring (car(gimp-version)) 0 3)) 2.10)
           (begin (gimp-edit-copy ShadowLayer)
       (gimp-floating-sel-anchor (car (gimp-edit-paste ShadowMask TRUE))))
           (begin (gimp-edit-copy 1 (vector ShadowLayer))
                  (let* (
           (pasted (gimp-edit-paste ShadowMask FALSE))
           (num-pasted (car pasted))
           (floating-sel (aref (cadr pasted) (- num-pasted 1)))
          )
     (gimp-floating-sel-anchor floating-sel)
    )))
Reply
#10
Do you know anything new? Instead of indicating each one's speed, the sliders now all indicate zero, but this happened after an update of Gimp 2.99.19.

Instead, spinners work, and indicate their value.

This is if you use the old interface in the fu scripts like I do, but if you use the new interface there are only spinners.

What is the difference between sliders and spinners? That the sliders have a convenient button to slide to change the value.

I reported this defect... let's hope it will be resolved.
Reply


Forum Jump: