It is currently Tue Apr 16, 2024 2:57 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 91 posts ]  Go to page 1, 2, 3, 4, 5  Next
Author Message
 Post subject: Need Assistance Testing Another Simple Script
PostPosted: Sat Apr 18, 2015 7:51 am  (#1) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
This test script is to confirm a bug in GIMP or to determine why this is occurring.

When I run the attached test-zero script and set the menu option to zero with the spinner, I get a value like this:
Value: 1.387778781e-15

When I set the menu option to zero using the slider, I actually get zero:
Value: 0

Menu Location: Script-Fu/Test Zero
The Value will be displayed on the Error Console.

1) Start GIMP clean.
2) Create a new image
3) Run: Script-Fu/Test Zero
4) Use spinner to set the value t zero and click OK.

I would appreciate if others would give this a try and post back their results using both the spinner and the slider. Thanks!


Attachments:
File comment: Test Zero
test-zero.scm [2.25 KiB]
Downloaded 105 times

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill
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: Needs Assistance Testing Another Simple Script
PostPosted: Sat Apr 18, 2015 7:59 am  (#2) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
[Deleted]


Last edited by jontait2 on Sat Apr 18, 2015 8:26 am, edited 1 time in total.

Top
 Post subject: Re: Needs Assistance Testing Another Simple Script
PostPosted: Sat Apr 18, 2015 8:09 am  (#3) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13003
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
This is what I got, but I'm not sure if I did it correctly.
Image

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


Top
 Post subject: Re: Needs Assistance Testing Another Simple Script
PostPosted: Sat Apr 18, 2015 8:12 am  (#4) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
:ninja by Wallace. Here are my results. Image

_________________
Image


Top
 Post subject: Re: Needs Assistance Testing Another Simple Script
PostPosted: Sat Apr 18, 2015 8:28 am  (#5) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
@jt - Thanks!

@Molly - Thanks for testing! I see the same issue on your system.

Wallace wrote:
This is what I got, but I'm not sure if I did it correctly.

You're the first one who has tested this in Windows. Did you try it with both the spinner and the slider? From my testing, it occasionally gives the correct value with the spinner.

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: Needs Assistance Testing Another Simple Script
PostPosted: Sat Apr 18, 2015 8:33 am  (#6) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13003
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
GnuTux wrote:
@jt - Thanks!

@Molly - Thanks for testing! I see the same issue on your system.

Wallace wrote:
This is what I got, but I'm not sure if I did it correctly.

You're the first one who has tested this in Windows. Did you try it with both the spinner and the slider? From my testing, it occasionally gives the correct value with the spinner.

I don't know what you mean when you say spinner. How do I run that test?

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


Top
 Post subject: Re: Needs Assistance Testing Another Simple Script
PostPosted: Sat Apr 18, 2015 8:36 am  (#7) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
The slider is the bar across the middle, where you slide to change values. The spinner is the box at the end, where you use arrows to spin the values up and down. The slider seems to work correctly and consistently. The spinner appears very inconsistent on my system and only occasionally returns zero.

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: Needs Assistance Testing Another Simple Script
PostPosted: Sat Apr 18, 2015 8:41 am  (#8) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
I thought it might be a GTK problem, but that doesn't appear to be the case now - I've just tried getting double float values from a GTK spinbutton in another C plugin and that doesn't show any anomalies.

What I did find with your test script is that this funny is not confined to value zero - the miniscule residual is present with other values but is comparatively too small to be displayed by (number->string).
For example, if you amend the script to subtract 2.7 from the value passed to the script before displaying the test message and then set the spinbutton to 2.7, the error message again shows some ridiculously small non-zero number (e-15 or smaller). So the residual value is there, just not shown with values other than zero.

Also, it happens even without a slider (ie. if you use SF_ADJUSTMENT with option SF_SPINNER).


Top
 Post subject: Re: Needs Assistance Testing Another Simple Script
PostPosted: Sat Apr 18, 2015 8:47 am  (#9) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13003
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
GnuTux wrote:
The slider is the bar across the middle, where you slide to change values. The spinner is the box at the end, where you use arrows to spin the values up and down. The slider seems to work correctly and consistently. The spinner appears very inconsistent on my system and only occasionally returns zero.

I get the same results either way.
www.youtube.com Video from : www.youtube.com

_________________
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 Sat Apr 18, 2015 8:59 am, edited 1 time in total.

Top
 Post subject: Re: Needs Assistance Testing Another Simple Script
PostPosted: Sat Apr 18, 2015 8:49 am  (#10) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
@jt - Thanks for your testing. Yes. it seems to only be related to the spinner.

@Wallace - I can't view that video. Asked me to sign in.

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: Needs Assistance Testing Another Simple Script
PostPosted: Sat Apr 18, 2015 8:50 am  (#11) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
I got it to work when I clicked the utube link. Tux

_________________
Image


Top
 Post subject: Re: Needs Assistance Testing Another Simple Script
PostPosted: Sat Apr 18, 2015 8:57 am  (#12) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
Wallace.I can see the video now. Can you start GIMP from scratch, create a new image, then start test-zero, go right to the spinner and move it to zero, then click OK. Those steps almost always produce the incorrect result on my system. Try it several times.

Perhaps it's a Linux issue and as jontait2 suggested, it's GTK related.

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: Needs Assistance Testing Another Simple Script
PostPosted: Sat Apr 18, 2015 9:00 am  (#13) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13003
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
GnuTux wrote:
@Wallace - I can't view that video. Asked me to sign in.

molly wrote:
I got it to work when I clicked the utube link. Tux

Try the video now. You should be able to see it.
GnuTux wrote:
Wallace.I can see the video now. Can you start GIMP from scratch, create a new image, then start test-zero, go right to the spinner and move it to zero, then click OK. Those steps almost always produce the incorrect result on my system. Try it several times.

Perhaps it's a Linux issue and as jontait2 suggested, it's GTK related.

Okay I'll try that.


I opened Gimp, created an image, ran Test Zero Warning using spinner.
Closed Gimp, reopened Gimp, ran Test Zero Warning using slider.
I get the same results for both tests each time.
Image

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


Top
 Post subject: Re: Needs Assistance Testing Another Simple Script
PostPosted: Sat Apr 18, 2015 9:13 am  (#14) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
Thanks, Wallace.

Maybe a few other Windows users can run the test to confirm your findings.

So far, the problem has been seen on 3 different versions of Linux.

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: Needs Assistance Testing Another Simple Script
PostPosted: Sat Apr 18, 2015 9:18 am  (#15) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13003
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
GnuTux wrote:
Thanks, Wallace.

Maybe a few other Windows users can run the test to confirm your findings.

So far, the problem has been seen on 3 different versions of Linux.

I also ran the test several times. Closing Gimp then reopening Gimp with each test and got the same results each time.
Image

_________________
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 Sat Apr 18, 2015 9:26 am, edited 1 time in total.

Top
 Post subject: Re: Needs Assistance Testing Another Simple Script
PostPosted: Sat Apr 18, 2015 9:21 am  (#16) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
I will boot up in Winsoze and try it.

_________________
Image


Top
 Post subject: Re: Needs Assistance Testing Another Simple Script
PostPosted: Sat Apr 18, 2015 9:22 am  (#17) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
Image

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: Needs Assistance Testing Another Simple Script
PostPosted: Sat Apr 18, 2015 9:37 am  (#18) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
This is my test run using Windows 7 (64bit) Image

Tux, I will stay here in Windows until 11:00 in case you want it run again.

_________________
Image


Top
 Post subject: Re: Need Assistance Testing Another Simple Script
PostPosted: Sat Apr 18, 2015 9:47 am  (#19) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
Thanks, Molly. You've confirmed the problem exists in Windows, as well.

Most every time I think a problem might be only Linux or only Windows related, it usually turns out not to be the case. :hehe

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: Need Assistance Testing Another Simple Script
PostPosted: Sat Apr 18, 2015 9:50 am  (#20) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Linux doesn't have issues... :teeth

_________________
Image


Top
Post new topic Reply to topic  [ 91 posts ]  Go to page 1, 2, 3, 4, 5  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) My Experiments On GMIC Testing filters: Simple Graphics (now 14)

1046

No new posts Testing Gmic-Qt Standalone 3.1

4

No new posts Attachment(s) Amazing what can be found under testing

30

No new posts Attachment(s) questions about testing with DIEGO_Render_FillingPlus

13

No new posts Attachment(s) New layer modes in LayerFX-2.10 for testing.

9



* Login  



Powered by phpBB3 © phpBB Group