RSS/Atom feed Twitter
Site is read-only, email is disabled

problem with standalone perl script

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

problem with standalone perl script salsaman 21 Jun 19:33
  problem with standalone perl script Kevin Cozens 22 Jun 19:36
salsaman
2013-06-21 19:33:56 UTC (over 11 years ago)

problem with standalone perl script

Hi,
I have a standalone perl script which used to work fine with older versions of gimp, but now for some reason with 2.8 at least, when I call "exit main;" the on_run callback is never triggered.

I decided to test it another way, by making it a plugin, but when i run gimp -b '(myplugin RUN-NONINTERACTIVE)' -b '(gimp-quit 0)', i see the following:

"Cannot call 'main::gimp_procedural_db_dump' at this time..."

I suspect its something to do with the socket connection to gimp server. gimp_procedural_db_dump() is the first command called.

Testing in standalone mode, I see gimp is being run: /usr/bin/gimp-2.8 --no-splash --console-messages -i -b (extension-perl-server 1 3 5) (gimp-quit 0)
and:

/usr/lib64/gimp/2.0/plug-ins/script-fu -gimp 6 4 -run 0

but doing an strace on the script-fu, it is hanging on:

select(1024, [6], NULL, NULL, NULL

fd 6 is pipe:[1004351], which is the same as fd 7 for the gimp server.

doing an strace on the gimp server shows it is basically doing nothing.

O/S is fedora 17.

Any ideas ?

Regards, Salsaman.

http://lives.sourceforge.net https://www.ohloh.net/accounts/salsaman

Kevin Cozens
2013-06-22 19:36:53 UTC (over 11 years ago)

problem with standalone perl script

On 13-06-21 03:33 PM, salsaman wrote:

I have a standalone perl script which used to work fine with older versions of gimp, but now for some reason with 2.8 at least, when I call "exit main;" the on_run callback is never triggered.

I'm surprised it even works at all with the 2.8 version of GIMP. I haven't tried building the gimp-perl module for GIMP in quite some time as I've been busy on other projects. The gimp-perl code is ugly and really needs a complete overhaul/rewrite.

I can't compile gimp-perl right now as I haven't re-installed some of the needed perl modules since I moved to Linux Mint. I will have a look at the state of gimp-perl and GIMP 2.8 in the future. I wouldn't hold your breath waiting for it as I won't be doing much with it any time soon.

Cheers!

Kevin.

http://www.ve3syb.ca/           |"Nerds make the shiny things that distract
Owner of Elecraft K2 #2172      | the mouth-breathers, and that's why we're
                                 | powerful!"
#include  |             --Chris Hardwick