bugGNU Octave - Bugs: bug #35004, Plotting: Nonsensical axis values...

 
 

bug #35004: Plotting: Nonsensical axis values cause hang for label commands

Submitter:  Lukas Reichlin <paramaniac>
Submitted:  Wed 07 Dec 2011 05:54:50 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.4.3 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Thu 14 Mar 2013 01:35:31 AM UTC, comment #8: 

This has been fixed since version 3.6.0.  Closing report.

Rik <rik5>
Group administrator
Mon 12 Dec 2011 03:00:25 PM UTC, comment #7: 

I tried the commands below on Octave-3.4.3 from Fink.


semilogx (1:10)
axis ([1, 10, NaN, Inf])
title title


Octave hung on the title command.  After a few ctrl+C, the core dumped.

I think the xlim, ylim, zlim, clim (others?) should be checked when set to be sure they have non-NaN values.

I checked the behavior of matlab ...


>> figure
>> set (gca, 'ylim', [NaN, Inf])
Error using set
Bad property value found.
Object Name :  axes
Property Name : 'YLim'
Values must be increasing and non-NaN.

>> get (gca, 'ylim')

ans =

     0     1

>> set (gca, 'ylim', [-Inf, Inf])
>> get (gca, 'ylim')

ans =

  -Inf   Inf


For the last example, the displayed plot had y-limits of [0,1].

The crash will be more difficult to track down.

Ben Abbott <bpabbott>
Group Member
Sun 11 Dec 2011 08:09:36 PM UTC, comment #6: 

BTW: I filed a new bug report:
#35034
https://savannah.gnu.org/bugs/?35034

If the code in #35034 would be working, I could solve the problem quite elegantly in my plotting commands of the control package. In that case, bug #35004 would not be a show stopper any more.

Lukas Reichlin <paramaniac>
Sat 10 Dec 2011 05:01:52 PM UTC, comment #5: 

I have access to a MacOS 10.6 install of Octave (Fink). I'll try the script on Monday.

Ben Abbott <bpabbott>
Group Member
Sat 10 Dec 2011 01:43:20 PM UTC, comment #4: 

Sorry for the delay. The hang occurs on my MacOS X 10.6 machine and Octave 3.4.3, both FLTK and Gnuplot backends.

Laurent Tissier <libr.tissier@wanadoo.fr>- who reported the bug for "bode" of the control package on the octave help mailing list - confirmed that ubuntu 10.10 with octave 3.4.3 hangs with the code below:


semilogx (1:10, 1:10)
ax = [1, 10, NaN, Inf]
axis (ax)
grid on
title ("title")
xlabel ("xlabel")
ylabel ("ylabel")


Lukas Reichlin <paramaniac>
Sat 10 Dec 2011 03:10:56 AM UTC, comment #3: 

Lucas,

Are you able to reproduce the hang?


Ben Abbott <bpabbott>
Group Member
Wed 07 Dec 2011 11:56:27 PM UTC, comment #2: 

I checked the developers sources on MacOS X 10.7. I am able to reproduce Jordi's results (no hang).

Ben Abbott <bpabbott>
Group Member
Wed 07 Dec 2011 07:41:46 PM UTC, comment #1: 

I can't reproduce this in dev (at cset 7ab497513c1a). Instead, I get the two attached images for gnuplot and fltk. Admittedly they are both weird, but at least the thing doesn't hang.

You said this happened in any operating system. Did you really test this in several operating systems?


Jordi GutiƩrrez Hermoso <jordigh>
Group Member
Wed 07 Dec 2011 05:54:50 PM UTC, original submission:  


semilogx (1:10, 1:10)
ax = [1, 10, NaN, Inf]
axis (ax)
grid on
title ("title")
xlabel ("xlabel")
ylabel ("ylabel")


I came across these nonsensical axis values (NaN, Inf) when I fixed the control package. As reliable interpreters should never crash or hang, I think Octave should throw an error message. The problem is not limited to semilogx. plot or semilogy are also affected.

Lukas Reichlin <paramaniac>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #24542:  gnuplot.png added by jordigh (21KiB - image/png)
file #24543:  fltk.png added by jordigh (5KiB - image/png)

 

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 bpabbott (Posted a comment)
  • -email is unavailable- added by jordigh (Updated the item)
  • -email is unavailable- added by paramaniac (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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-03-14 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2011-12-12 bpabbott StatusNeed Info Confirmed
    2011-12-07 jordigh StatusNone Need Info
    2011-12-07 jordigh Attached File- Added gnuplot.png, #24542
        Attached File- Added fltk.png, #24543

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code