bugGNU Octave - Bugs: bug #45554, Setting label after empty errorbar...


bug #45554: Setting label after empty errorbar plot blocks command prompt

Submitter:  Markus Appel <mappel>
Submitted:  Wed 15 Jul 2015 01:24:49 PM UTC
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 4.0.0 Operating System:  * GNU/Linux
* Mandatory Fields

Add a New Comment (Rich Markup)

Comment Type & Canned Response:


Tue 28 Jul 2015 04:00:52 PM UTC, comment #4: 

There were a bunch of inter-related errors that led to Octave attempting to create a plot with a legend from an empty dataset.  I fixed that on the stable branch here (http://hg.savannah.gnu.org/hgweb/octave/rev/5b7d7051a032).  This will be a part of the 4.0.1 bug fix release.

Rik <rik5>
Project Administrator
Tue 28 Jul 2015 04:05:51 AM UTC, comment #3: 

Confirmed on Linux as well.  The errorbar command is the proximate cause of the problem.  The last command can be anything, not just ylabel.  I tried 'clf' and that also hung the interpreter.

The issue seems to be that x is empty (0x1 empty matrix).  When I exit Octave I get this warning

line 0: warning: Skipping data file with no valid points

Interestingly, I get a different error if I define x as a 0x0 empty matrix.

x = [];
error: called from
    __errplot__>__do_errplot__ at line 275 column 18
    __errplot__ at line 51 column 25
    errorbar at line 181 column 10

Rik <rik5>
Project Administrator
Wed 15 Jul 2015 07:41:37 PM UTC, comment #2: 

Confirmed bug on linux.  Since Cntrl-C is needed three times to force close, I would think the code isn't being hung in the M-file scripts but the core somewhere (probably waiting on gnuplot to complete its previous commands, which aren't valid).

Note that Qt has some peculiar behavior as well.  The


command does not draw a new Qt/fltk errorbar plot, but the legend text is updated to read "test".  Gnuplot at least clears the screen on the errorbar command, which seems better than leaving the old plot visible.

Dan Sebald <sebald>
Wed 15 Jul 2015 06:24:13 PM UTC, comment #1: 

Just FTR & to be sure: works for me on Windows

Philip Nienhuis <philipnienhuis>
Project Member
Wed 15 Jul 2015 01:24:49 PM UTC, original submission:  

This very particular sequence blocks the command prompt and requires octave to be killed with strg-c:

hold on;
x = zeros(0,1);
ylabel 'test'

Tested with octave-cli-4.0.0 on Ubuntu 12.04.5 and gnuplot 5.0.0. Using the fltk backend instead of gnuplot does not show this problem.

Markus Appel <mappel>


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

Attach Files:

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 rik5 (Posted a comment)
  • -email is unavailable- added by sebald (Posted a comment)
  • -email is unavailable- added by mappel (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 project members can vote.





    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-07-28 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2015-07-28 rik5 StatusNone Confirmed

    Back to the top

    Powered by Savane 3.9