bugGNU Octave - Bugs: bug #41446, waitbar function causes multiple...

 
 

bug #41446: waitbar function causes multiple figures to load

Submitter:  None
Submitted:  Mon 03 Feb 2014 04:30:13 PM UTC
   
 
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  None
Originator Name:  Colin Foster Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.8.1
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Mon 28 Apr 2014 11:41:00 PM UTC, comment #9: 

Tested the latest build. Works great!  Thanks Rik

Colin Foster <cfoster>
Mon 28 Apr 2014 06:17:43 PM UTC, comment #8: 

There was a really deep problem with one of the utility routines (_gnuplot_get_var_.m) accidentally calling gcf() which would open a new figure.  I fixed it on the stable branch which will become part of the bug fix release 3.8.2.  The changeset is here (http://hg.savannah.gnu.org/hgweb/octave/rev/0b95b9c5ac71).  I also pulled the change across to the gui-release and development branches so if you do a new 'hg pull' you will get the fix.

Closing report.

Rik <rik5>
Group administrator
Mon 28 Apr 2014 02:13:59 PM UTC, comment #7: 

The issue is only with gnuplot.  That wasn't specified until the last series of tests which is why we couldn't verify it.  I've re-opened the bug and marked it as confirmed.  Any fix will also have to account for bug #41914.

Rik <rik5>
Group administrator
Mon 28 Apr 2014 02:11:10 PM UTC, comment #6: 

Ok, with gnuplot yes I am able to reproduce. You are right, this was fixed for the 3.8 release but is broken again in the development version (have not tried gui-release yet). Marking as a regression in the development version.

This was previously reported and fixed as bug #35773 for the 3.8 release.

Mike Miller <mtmiller>
Group Member
Mon 28 Apr 2014 01:49:18 PM UTC, comment #5: 

It certainly is an issue on my machine: Gentoo, pulled the hg with hg clone http://www.octave.org/hg/octave

Build with the suggestions in the HACKING file
Run with no gui (./run-octave --no-gui)

Create a waitbar with the WBH variable

1> WBH = waitbar(0)
2> waitbar(.15, WBH)

Three total figures open:
A standard waitbar with 0%
An empty, standard looking figure
A second waitbar with 25% completion, in the size of the standard figure.

gnuplot is the graphics toolkit that I am using.

Colin Foster <cfoster>
Fri 25 Apr 2014 11:06:42 PM UTC, comment #4: 

I don't see any problem with the current hg development branch (rev a142f35f3cb6) running your original example.

Mike Miller <mtmiller>
Group Member
Fri 25 Apr 2014 10:45:27 PM UTC, comment #3: 

I have pulled the latest 4.1.0+ src and this problem seems to have re-emerged. I'll look more into the issue when I have time but just want to make sure it is still fixed

Colin Foster <cfoster>
Mon 03 Feb 2014 09:59:51 PM UTC, comment #2: 

This did get fixed in time for the 3.8 release.  Upgrade and you should be good to go.  Closing report.

Rik <rik5>
Group administrator
Mon 03 Feb 2014 05:55:52 PM UTC, comment #1: 

I submitted this. I'm sorry, it already exists and seems to have been fixed in the 3.8 version.

Colin Foster <cfoster>
Mon 03 Feb 2014 04:30:13 PM UTC, original submission:  

I run code similar to the following:

WBH = waitbar(0,'foo')

...

waitbar(.25, WBH, 'bar')

What happens is the correct figure opens during the first call, but the second call causes a blank figure to open and a third figure opens with a new waitbar that works properly. The end result is three open figures.  If, however I open a blank figure before the first waitbar command and pause for one second, the waitbar function works correctly.

figure
pause(1)
WBH = waitbar(0,'foo')
...
waitbar(.25, WBH, 'bar')

I hope this is descriptive enough. Keep up the great work!

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by cfoster (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 13 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-04-28 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
        Release3.6.4 3.8.1
    2014-04-28 rik5 Releasedev 3.6.4
        Summarywaitbar function causes multiple figures to load with gnuplot waitbar function causes multiple figures to load
    2014-04-28 mtmiller CategoryPlotting Plotting with gnuplot
        Item GroupPerformance Regression
        StatusFixed Confirmed
        Open/ClosedClosed Open
        Release3.6.4 dev
        Summarywaitbar function causes multiple figures to load waitbar function causes multiple figures to load with gnuplot
    2014-02-03 rik5 StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code