It is currently Mon Jul 22, 2024 10:47 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 99 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
 Post subject: Re: Test for duplicate scripts
PostPosted: Wed Nov 23, 2011 4:38 am  (#31) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there

It's just possible that you're typing in the wrong place as it's not obvious how to use it:
Image


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Wed Nov 23, 2011 6:41 pm  (#32) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Using these settings

Image

In 2.6.11 nothing returns

in 2.7.4-32bit I get this on my screen

Image

To say I don't understand this script would be an understatement

Maybe someone could fill me in on what version of gimp it is for, and on how to record the output

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


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Wed Nov 23, 2011 7:06 pm  (#33) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
I get the same thing Graechan.
I think where it says found, one of them is your user\.gimp scripts and the other is your gimp\share\script files. looks like you have one dupe and the bottom one, (too many error messages) I don't know.

I also put beside logging > everything

_________________
Image


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Wed Nov 23, 2011 8:25 pm  (#34) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Molly in 2.7.4-port I found the file after setting the script to duplicates instead of none all OK there

in 2.6.11 I found the file after setting the script to duplicates instead of none, file was empty

I also tried setting to everything, same result

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


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Thu Nov 24, 2011 2:27 am  (#35) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
Firstly to explain the "Too many messages":

You have GIMP set to direct errors and warnings to pop-up dialog boxes, and GIMP makes sure it doesn't give you too many, because that would be unfriendly. So it tries to accumulate them into a single pop-up, but if there's still too many, then it shows you that message and stops displaying any more.

To see all the warnings you need to have the error console open: Windows >> Dockable Dialogs >> Error Console, either as a window on it's own, or docked somewhere. Then all the errors and warnings get directed to the Error Console and not to pop-ups.

As for the duplicate, it's reporting that you have two scripts with the same procedure name (script-fu-drop-shadow) in two different files. This has the potential to cause problems and confusion.

Do you have a file named drop-shadow.scm in both C:\gimp-2.7.4-32\.gimp-2.7\scripts and C:\gimp-2.7.4-32\share\gimp\2.0\scripts ? And if you have two files, do the contents look the same?

If you want the script to save all the problems it finds into a separate file then select Logging: Duplicates and it will create a file in C:\gimp-2.7.4-32 called duplicate_scripts.txt

I'll have a go at installing so called 2.7.4 to try it myself and make sure that the installation doesn't duplicate the standard scripts as script-fu-drop-shadow is one that is shipped as standard with GIMP.

Kevin

Update:
I've installed so-called 2.7.4 (hate the dark theme) and it has installed the standard scripts into C:\gimp-2.7.4-32\share\gimp\2.0\scripts on your system. The other directory is something you have created, and possibly put the standard gimp scripts in there as well?


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Thu Nov 24, 2011 5:16 pm  (#36) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
thanks paynekj, I will try the script fu console thing this weekend to do it the right way.


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Thu Nov 24, 2011 6:02 pm  (#37) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Does anyone have this script working in 2.6.11 :help

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


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Thu Nov 24, 2011 8:08 pm  (#38) 
Offline
GimpChat Member

Joined: Mar 29, 2011
Posts: 346
Location: Wisconsin
Graechan wrote:
Does anyone have this script working in 2.6.11 :help

Worked fine for me, but it took quite a bit of time on my elderly machine.
- GIMP 2.6.11 on Windows XP
Image

_________________
Image


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Thu Nov 24, 2011 8:46 pm  (#39) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
When the script runs it takes a while then goes to a not responding state and shuts down after some time.
It leaves nothing on the screen then if I set it to duplicates only it does the same but also leaves a empty file called duplicate_scripts.txt in C:/users/graechan

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


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Thu Nov 24, 2011 11:00 pm  (#40) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Eureka! I found my problem I had 817 scripts installed, I took out 108 and now OK 24 duplicates to sort through.

I would like to know what set the limit so that I can put my scripts back.I'm using win7 with 4gb ram

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


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Fri Nov 25, 2011 2:08 am  (#41) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
There isn't any fixed limit set, but you seem to have found a limitation. I'm not sure what I can do about that, other than questioning how sensible it is to have 817 scripts installed at the same time. ;)

I will think about it, and see if the methods it uses could be improved to cope and of course if anyone else wants to have a go at making improvements, feel free.

Kevin


p.s. I did discover yesterday that malformed scripts will cause this script to crash. I got an "Error reading string" error, which also showed up when doing a Refresh Scripts and I've just this second found that a script which give the error "Error: unmatched parentheses: 1" causes this script to hang in the way you describe. Hmm... I feel version 1.6 coming on, but please be patient and do the Refresh Scripts and deal with unmatched parentheses first.


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Fri Nov 25, 2011 7:55 am  (#42) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Make that 818, I noticed RobA's new script and thought "why not" I guess I'm a collector of sorts.

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


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Sat Nov 26, 2011 2:06 pm  (#43) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
OK, I typed the line into the proper place in the script-fu console, but nothing happened. Do I need to click something?Image


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Sat Nov 26, 2011 5:35 pm  (#44) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
Not click, but press the Return/Enter key to enter what you have typed.


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Sat Nov 26, 2011 10:16 pm  (#45) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
Ok, here ya' go....finally.

Image


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Sat Nov 26, 2011 11:06 pm  (#46) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
2-ton wrote:
Ok, here ya' go....finally.

Image

It looks like you've maybe typed in 'gimp-pimprc-query' -- can you perhaps provide a more zoomed-in screenshot?

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Sun Nov 27, 2011 8:25 am  (#47) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
This time I copied and pasted so I wouldn't make an error!
This is cool, I wish there was a local place that I could take classes on script writing for both python and script-fu....and on advanced uses of Gimp, lol.
Image


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Sun Nov 27, 2011 10:22 am  (#48) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
2-ton wrote:
This time I copied and pasted so I wouldn't make an error!
This is cool, I wish there was a local place that I could take classes on script writing for both python and script-fu....and on advanced uses of Gimp, lol.


Thanks for that. You've successfully shown that MACs are doing things the same way as Linux, at least as far as path separators are concerned.

As far as learning script writing using script-fu/python, as I said to MrBigzz: viewtopic.php?f=9&t=3174&start=0#p40305 have a look at the tutorials, make a start, and start a thread to ask questions in. Remembering of course that there's no such thing as a stupid question.

Kevin


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Sun Nov 27, 2011 1:32 pm  (#49) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
I have tried to learn html and css on my own, and have not done very well, lol. Hopefully one day I will have time to really get into it.


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Mon Nov 28, 2011 9:42 am  (#50) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there

Here we go again... Version 1.6 this time

The changes to this version were mainly to help Graechan diagnose the problem seen earlier: viewtopic.php?f=9&t=3057&start=30#p40101 somewhere in the 108 script-files removed.

The newest User Interface:
Image
Where there is now a new logging level: "Too Much". This tries to log information as it processes the files, so examining the log should show which file is causing the problem.

There is also now an option to control where the "normal" messages go. I have also changed it so that the normal messages are grouped together and only displayed at the end in one go, which will get rid of the "Too many messages" warning.

Normal message:
Image

Normal with few duplicates:
Image

There is downside to this approach when there are many duplicates:
Image

If I'm right about what is causing script-fu to hang-up, a faulty script file with unmatched parentheses , then there doesn't seem to be anything I can do to prevent the hang-up - it hangs at the (read stream) command, and GIMP has to be re-started to get script-fu working again.

Kevin


Attachments:
File comment: Version 1.6
kp24_test_for_duplicate_scripts_1_6.zip [6.17 KiB]
Downloaded 127 times
Top
Post new topic Reply to topic  [ 99 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Juxtapose exactly duplicate paths

2

No new posts Attachment(s) GEGL Jelly - Apply on Duplicate Layer above and use eraser

3

No new posts Attachment(s) pm_create_a_depthmap_image.py (Test)

8

No new posts Jewelry Text Test

8



* Login  



Powered by phpBB3 © phpBB Group