It is currently Fri Jul 31, 2026 4:58 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Plugin-curve-bend
PostPosted: Mon Dec 30, 2024 1:30 am  (#1) 
Offline
GimpChat Member

Joined: Dec 30, 2024
Posts: 7
GIMP Version: 2.10
Operating System: Linux
GIMP Experience: New User



Hello,

Does anyone know why it crashes suddenly?

I want to use it in my script-fu

And when I started the GIMP from a terminal it gives me this error:
/usr/lib/gimp/2.0/plug-ins/curve-bend/curve-bend: fatal error: Segmentation fault


Attachments:
crash.png
crash.png [ 42.7 KiB | Viewed 7399 times ]
Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Plugin-curve-bend
PostPosted: Mon Dec 30, 2024 2:54 am  (#2) 
Offline
GimpChat Member

Joined: Apr 11, 2024
Posts: 306
Possibly because the parameters that you pass to it are not correct.


Top
 Post subject: Re: Plugin-curve-bend
PostPosted: Mon Dec 30, 2024 3:17 am  (#3) 
Offline
GimpChat Member

Joined: Dec 30, 2024
Posts: 7
After doing the curve I want inside the gimp I click save points and put it inside my script
here's my script-fu
(define (script-fu-curve-image xcfFile inputImage outputPath)
(define base-img (car (gimp-xcf-load 0 xcfFile xcfFile)))
(define new-img (car (gimp-file-load 0 inputImage "inputImage")))
(define base-layer (car (gimp-image-get-active-layer base-img)))
(define layer-width (car (gimp-drawable-width base-layer)))
(define layer-height (car (gimp-drawable-height base-layer)))
(define new-layer (car (gimp-image-get-active-drawable new-img)))
(let* ((upperx (list->vector (list +0.007843 -1.000000 -1.000000 -1.000000 +0.254902 -1.000000 -1.000000 -1.000000 +0.494118 -1.000000 -1.000000 -1.000000 -1.000000 +0.803922 -1.000000 -1.000000 +0.996078)))
(uppery (list->vector (list +0.498039 -1.000000 -1.000000 -1.000000 +0.482353 -1.000000 -1.000000 -1.000000 +0.478431 -1.000000 -1.000000 -1.000000 -1.000000 +0.482353 -1.000000 -1.000000 +0.494118)))
(lowerx (list->vector (list +0.007843 -1.000000 -1.000000 -1.000000 +0.250980 -1.000000 -1.000000 -1.000000 +0.501961 -1.000000 -1.000000 -1.000000 -1.000000 +0.831373 -1.000000 -1.000000 +1.000000)))(lowery (list->vector (list +0.490196 -1.000000 -1.000000 -1.000000 +0.447059 -1.000000 -1.000000 -1.000000 +0.435294 -1.000000 -1.000000 -1.000000 -1.000000 +0.462745 -1.000000 -1.000000 +0.500000)))
(UPPER_Y (list->vector (list 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0)))
(LOWER_Y(list->vector (list 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0))) )
(gimp-layer-scale new-layer layer-width layer-height FALSE)
(plug-in-curve-bend RUN-NONINTERACTIVE new-img new-layer 0.0 TRUE TRUE FALSE 0 17 upperx 17 uppery 17 lowerx 17 lowery 256 UPPER_Y 256 LOWER_Y)
(gimp-edit-copy new-layer)
(define floating-selection (car (gimp-edit-paste base-layer TRUE)))
(gimp-floating-sel-anchor floating-selection)
(gimp-image-merge-visible-layers base-img CLIP-TO-IMAGE)
(gimp-file-save RUN-NONINTERACTIVE base-img (car (gimp-image-get-active-layer base-img)) outputPath outputPath)))


Top
 Post subject: Re: Plugin-curve-bend
PostPosted: Mon Dec 30, 2024 4:40 am  (#4) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
The first thing I would try is define flat lines, just to see if the problem is with the way the plugin is called or with the parameters.

_________________
Image


Top
 Post subject: Re: Plugin-curve-bend
PostPosted: Mon Dec 30, 2024 5:49 am  (#5) 
Offline
GimpChat Member

Joined: Dec 30, 2024
Posts: 7
I uninstalled GIMP and then reinstalled it. It worked at first, but after about three tries, it crashed again.


Top
 Post subject: Re: Plugin-curve-bend
PostPosted: Mon Dec 30, 2024 9:43 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2646
Location: Poland
Maybe this will help (I checked that it works):
viewtopic.php?f=9&t=14647&p=202825&hilit=curve+bend#p202891

Image

_________________
Image


Top
 Post subject: Re: Plugin-curve-bend
PostPosted: Tue Dec 31, 2024 1:25 am  (#7) 
Offline
GimpChat Member

Joined: Dec 30, 2024
Posts: 7
I discovered that if I set the run mode in the plug-in-curve-bend to RUN-INTERACTIVE, it does not crash. However, it doesn't capture the curve points automatically, so I have to manually create the curve by hand.


Top
 Post subject: Re: Plugin-curve-bend
PostPosted: Tue Dec 31, 2024 1:27 am  (#8) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16139
Yes i was going to suggest using a 1 instead of RUN-NONINTERACTIVE.

(plug-in-curve-bend RUN-NONINTERACTIVE new-img new-layer 0.0 TRUE TRUE FALSE 0 17 upperx 17 uppery 17 lowerx 17 lowery 256 UPPER_Y 256 LOWER_Y)

_________________
Image


Top
 Post subject: Re: Plugin-curve-bend
PostPosted: Tue Dec 31, 2024 1:36 am  (#9) 
Offline
GimpChat Member

Joined: Dec 30, 2024
Posts: 7
I wrote it like you did (plug-in-curve-bend RUN-NONINTERACTIVE new-img new-layer 0.0 TRUE TRUE FALSE 0 17 upperx 17 uppery 17 lowerx 17 lowery 256 UPPER_Y 256 LOWER_Y) but crash


Top
 Post subject: Re: Plugin-curve-bend
PostPosted: Wed Jan 01, 2025 6:29 am  (#10) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16139
ritaA wrote:
I wrote it like you did (plug-in-curve-bend RUN-NONINTERACTIVE new-img new-layer 0.0 TRUE TRUE FALSE 0 17 upperx 17 uppery 17 lowerx 17 lowery 256 UPPER_Y 256 LOWER_Y) but crash


Write it like this...
(plug-in-curve-bend 1 new-img new-layer 0.0 TRUE TRUE FALSE 0 17 upperx 17 uppery 17 lowerx 17 lowery 256 UPPER_Y 256 LOWER_Y)]

_________________
Image


Top
 Post subject: Re: Plugin-curve-bend
PostPosted: Thu Jan 02, 2025 2:25 am  (#11) 
Offline
GimpChat Member

Joined: Dec 30, 2024
Posts: 7
still crash


Top
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group