It is currently Fri Jun 12, 2026 7:14 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 37 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Still Can't Stop Scripts From Running!
PostPosted: Sat Nov 30, 2013 8:49 pm  (#1) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 14017
Location: Native to NYC living in Arizona, Gimp 2.8 - 3.0, Win 11 PC.
GIMP Version: 2.6.11
Operating System: Windows
GIMP Experience: Advanced Level

List any relevant plug-ins or scripts:
Most Scripts

List any ERROR messages you received:
N/A



I've always had this issue. I can't seem to stop scripts from running no matter what I do or what script it is.
The only way that I can stop it is to force it to stop using Windows Task Manager.
I should be able to stop any script from running, shouldn't I? :gaah

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Last edited by Wallace on Mon Dec 02, 2013 3:44 pm, edited 1 time in total.

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: Still Can't Stop Scripts From Running!
PostPosted: Sun Dec 01, 2013 6:20 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7388
Location: Göteborg at last!
You've probably already tried this, but I would say that if anything is going to stop them, it's the ESC key.


Top
 Post subject: Re: Still Can't Stop Scripts From Running!
PostPosted: Sun Dec 01, 2013 6:21 am  (#3) 
Wallace wrote:
GIMP Version: 2.6.11
Operating System: Windows
GIMP Experience: Advanced Level

List any relevant plug-ins or scripts:
All Scripts

List any ERROR messages you received:
N/A



I've always had this issue. I can't seem to stop scripts from running no matter what I do or what script it is.
The only way that I can stop it is to force it to stop using Windows Task Manager.
I should be able to stop any script from running, shouldn't I? :gaah

ditto


Top
 Post subject: Re: Still Can't Stop Scripts From Running!
PostPosted: Sun Dec 01, 2013 10:37 am  (#4) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
The progression bar at the bottom of GIMP window and the red cross at the right end.
Clicking the red cross cancels script/plugin execution (it doesn't work only if the script/plugin freezes gimp)


Top
 Post subject: Re: Still Can't Stop Scripts From Running!
PostPosted: Sun Dec 01, 2013 10:42 am  (#5) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 14017
Location: Native to NYC living in Arizona, Gimp 2.8 - 3.0, Win 11 PC.
Erisian wrote:
You've probably already tried this, but I would say that if anything is going to stop them, it's the ESC key.


I've tried this and it does nothing. :(

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Still Can't Stop Scripts From Running!
PostPosted: Sun Dec 01, 2013 10:54 am  (#6) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 14017
Location: Native to NYC living in Arizona, Gimp 2.8 - 3.0, Win 11 PC.
K1TesseraEna wrote:
The progression bar at the bottom of GIMP window and the red cross at the right end.
Clicking the red cross cancels script/plugin execution (it doesn't work only if the script/plugin freezes gimp)


Some scripts don't show that progress bar, but the ones that do I'm able to stop them by clicking on the 'red X' .
If I run a script that doesn't show this progress bar, nothing I do will stop the script from running. The option to 'cancel' these kind of scripts from running is grayed-out. Using Windows Task Manager is the only way I've found to stop them.

Here's an example screenshot, in this screenshot I've run the filter 'Chip Away'.
From this image you can see that there's no progress bar and the option to cancel is grayed-out. There isn't any obvious way of stopping this script from running.
Image
Even clicking on the little 'X' on the upper-right hand corner that's on the script's dialog box to close it does nothing.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Still Can't Stop Scripts From Running!
PostPosted: Sun Dec 01, 2013 11:35 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
You've asked a question about 'all scripts'.
True, some 3rd party scripts doesn't have working stop/cancel option
but it's a question for the script writers why.


Top
 Post subject: Re: Still Can't Stop Scripts From Running!
PostPosted: Sun Dec 01, 2013 11:36 am  (#8) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16023
Yes most scripts assume if you do not like the result you can just use ctrl +z or Edit>Undo "Script Name Here". That is provided it isn't creating a NEW image normally you just start over with a NEW image again so group undo isn't added to those scripts. But most script writers will add the group-start and group end tags so the last filter can be undone as a whole and not as each step of the script functions if a NEW image ISN'T being created.
Perhaps a small code block can be written to cancel any running script? Not sure if that exists though. If it does it would be a nice feature within the HELP menu.
Help>Cancel running script
Help>Cancel running plug-in

_________________
Image


Top
 Post subject: Re: Still Can't Stop Scripts From Running!
PostPosted: Sun Dec 01, 2013 11:37 am  (#9) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
A decent window manager will offer an option to kill the window in its title bar menu (the dropdown under the button in the upper left corner of the window; this menu has other commands such as Move, Maximize, Always On Top, etc).

If your window manager is indecent, you might consider making an easily reachable shortcut for the 'xkill' program. This program will turn your cursor into a skull-and-crossbones symbol and wait for you to click on the scripts dialog box.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Still Can't Stop Scripts From Running!
PostPosted: Sun Dec 01, 2013 11:42 am  (#10) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16023
If this is an executable you could use a help menu item to call it too. Good idea Saulgoode. :)

_________________
Image


Top
 Post subject: Re: Still Can't Stop Scripts From Running!
PostPosted: Sun Dec 01, 2013 12:31 pm  (#11) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16023
Windows version of XKILL
it's portable - simply doubleclick it's icon to place it in the tray in ready mode.
http://suprvillain.deviantart.com/art/W ... -100737525
CTRL +ALT + BACKSPACE brings the skull/crossbones cursor up and you simply click the open app dialog window you want to kill. Pretty simple.
BUT when i ran it on Chip-Away it removed the entire set of links in the Create>Logo menu set. Actually it removed every menu link for a schema script-fu in the GIMP menus. :lol So it would probably be easiest to just wait for the script to run and just start over if you don't like the results. Or add some scripting to KEEP LAYERS and fix what you don't like yourself.

This app is great for those stubborn apps task manager can't close though. :bigthup

_________________
Image


Top
 Post subject: Re: Still Can't Stop Scripts From Running!
PostPosted: Sun Dec 01, 2013 12:35 pm  (#12) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 14017
Location: Native to NYC living in Arizona, Gimp 2.8 - 3.0, Win 11 PC.
Rod wrote:
Windows version
http://suprvillain.deviantart.com/art/W ... -100737525
CTRL +ALT + BACKSPACE brings the cursor up and you simply click the open app dialog window you want to kill. Pretty simple.
BUT when i ran it on Chip-Away it removed the entire set of links in the Create>Logo set. So probably easier to just wait for the script to run and just start over if you don't like the results. Or add some scripting to KEEP LAYERS and fix what you don't like yourself.

Thanks for this solution. It sounds like a good idea, but I don't want to delete anything in my filter setup. I guess that's just the way it is.
There are still some scripts that can't be undone once they've been run. I'm not sure what these scripts are, but I'll have to either use the undone method or resort to killing it with windows task manager.
Is this the way scripts behave for everyone using Gimp? If so, I'm glad to know that I'm not alone with this issue. It's not an end-all, I've been using Gimp for years thinking it was only effecting me.
Can't something be done about this, to be able to simply click on the 'cancel' button provided by the dialog box?

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Still Can't Stop Scripts From Running!
PostPosted: Sun Dec 01, 2013 1:24 pm  (#13) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16023
Wallace wrote:
Rod wrote:
Windows version
http://suprvillain.deviantart.com/art/W ... -100737525
CTRL +ALT + BACKSPACE brings the cursor up and you simply click the open app dialog window you want to kill. Pretty simple.
BUT when i ran it on Chip-Away it removed the entire set of links in the Create>Logo set. So probably easier to just wait for the script to run and just start over if you don't like the results. Or add some scripting to KEEP LAYERS and fix what you don't like yourself.

Thanks for this solution. It sounds like a good idea, but I don't want to delete anything in my filter setup. I guess that's just the way it is.
There are still some scripts that can't be undone once they've been run. I'm not sure what these scripts are, but I'll have to either use the undone method or resort to killing it with windows task manager.
Is this the way scripts behave for everyone using Gimp? If so, I'm glad to know that I'm not alone with this issue. It's not an end-all, I've been using Gimp for years thinking it was only effecting me.
Can't something be done about this, to be able to simply click on the 'cancel' button provided by the dialog box?

First off, sorry for the double post.
Secondly, because schema normally runs very quickly with most applications just selecting Edit>Undo is usually sufficient enough.
Thirdly and most important is that any time you stop a script-fu from running you close the script-fu executable which means you now have to restart GIMP to restart the script-fu plug-in. At least this has been my experience with task manager. Sometimes this even crashes GIMP itself
If anyone knows of a way to close a running script without closing script-fu executable that is what you need to figure out. :)
In my humble opinion the best way is to just use Edit>Undo group.
If you start a schema filter that creates a new image. Let it finish and simply close view without save. Then start again.
If you start a schema filter that adds to the image just use (Edit>Undo) CTRL +Z to delete everything that script added to your image.

_________________
Image


Top
 Post subject: Re: Still Can't Stop Scripts From Running!
PostPosted: Sun Dec 01, 2013 1:53 pm  (#14) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 14017
Location: Native to NYC living in Arizona, Gimp 2.8 - 3.0, Win 11 PC.
Rod wrote:
Wallace wrote:
Rod wrote:
Windows version
http://suprvillain.deviantart.com/art/W ... -100737525
CTRL +ALT + BACKSPACE brings the cursor up and you simply click the open app dialog window you want to kill. Pretty simple.
BUT when i ran it on Chip-Away it removed the entire set of links in the Create>Logo set. So probably easier to just wait for the script to run and just start over if you don't like the results. Or add some scripting to KEEP LAYERS and fix what you don't like yourself.

Thanks for this solution. It sounds like a good idea, but I don't want to delete anything in my filter setup. I guess that's just the way it is.
There are still some scripts that can't be undone once they've been run. I'm not sure what these scripts are, but I'll have to either use the undone method or resort to killing it with windows task manager.
Is this the way scripts behave for everyone using Gimp? If so, I'm glad to know that I'm not alone with this issue. It's not an end-all, I've been using Gimp for years thinking it was only effecting me.
Can't something be done about this, to be able to simply click on the 'cancel' button provided by the dialog box?

First off, sorry for the double post.
Secondly, because schema normally runs very quickly with most applications just selecting Edit>Undo is usually sufficient enough.
Thirdly and most important is that any time you stop a script-fu from running you close the script-fu executable which means you now have to restart GIMP to restart the script-fu plug-in. At least this has been my experience with task manager. Sometimes this even crashes GIMP itself
If anyone knows of a way to close a running script without closing script-fu executable that is what you need to figure out. :)
In my humble opinion the best way is to just use Edit>Undo group.
If you start a schema filter that creates a new image. Let it finish and simply close view without save. Then start again.
If you start a schema filter that adds to the image just use (Edit>Undo) CTRL +Z to delete everything that script added to your image.

Yeah I get it, but I've never noticed a closing of the script-fu executable and my Gimp has never crashed while using task manager to force scripts to stop running. I have gotten multiple errors, if I stop a script from running using the TM, but haven't noticed any other issue. Hmmm...
Thanks Rod, I don't think I'll be trying to figure out how to close a running script without closing script-fu's executable's any time soon.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Still Can't Stop Scripts From Running!
PostPosted: Sun Dec 01, 2013 5:58 pm  (#15) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
All my scripts that add to an existing Image have an undo function whereas those that create an Image don't

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Still Can't Stop Scripts From Running!
PostPosted: Sun Dec 01, 2013 7:02 pm  (#16) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 14017
Location: Native to NYC living in Arizona, Gimp 2.8 - 3.0, Win 11 PC.
Graechan wrote:
All my scripts that add to an existing Image have an undo function whereas those that create an Image don't


Is that how it works? I knew some scripts couldn't be undone. I guess we just have to delete those layers created by them.
Any idea how to stop a script called up from running, without any side-affects?

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Still Can't Stop Scripts From Running!
PostPosted: Sun Dec 01, 2013 7:58 pm  (#17) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
Wallace why not allow the script to finish, if its a particular script that concerns you contact the scripts author or as here why it takes so long to finish
some scripts that use GMIC or lighting affects are slow

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Still Can't Stop Scripts From Running!
PostPosted: Sun Dec 01, 2013 8:26 pm  (#18) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 14017
Location: Native to NYC living in Arizona, Gimp 2.8 - 3.0, Win 11 PC.
Graechan wrote:
Wallace why not allow the script to finish, if its a particular script that concerns you contact the scripts author or as here why it takes so long to finish
some scripts that use GMIC or lighting affects are slow

Yes, when I notice what script I'd like to have updated, I'll look into it, thanks.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Still Can't Stop Scripts From Running!
PostPosted: Mon Dec 02, 2013 2:43 pm  (#19) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
The simplest way I've found to kill badly behaving scripts is to delete the layer they are working on. This usually causes them to fail, and then you can undo the layer delete (as long as the undo stack wasn't disabled by the stack author, that is...)

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: Still Can't Stop Scripts From Running!
PostPosted: Mon Dec 02, 2013 3:17 pm  (#20) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 14017
Location: Native to NYC living in Arizona, Gimp 2.8 - 3.0, Win 11 PC.
RobA wrote:
The simplest way I've found to kill badly behaving scripts is to delete the layer they are working on. This usually causes them to fail, and then you can undo the layer delete (as long as the undo stack wasn't disabled by the stack author, that is...)

That's a good suggestion RobA, but wouldn't it be easier to just click on the 'cancel' button in the script's dialog box? Being able to click 'cancel in the script's dialog box' would just stop whatever the script is from running, nothing else need be done after this, script canceled end of story.
What's so difficult about this procedure that I'm not getting? :gaah

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
Post new topic Reply to topic  [ 37 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group