bugGNU Octave - Bugs: bug #41667, root figure parent property should...

 
 

bug #41667: root figure parent property should be empty

Submitter:  Pantxo Diribarne <pantxo>
Submitted:  Sat 22 Feb 2014 10:15:32 AM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Tue 04 Mar 2014 08:42:10 PM UTC, comment #7: 

The root parent is now empty for me also, both on mac and linux.

Pantxo Diribarne <pantxo>
Group Member
Tue 04 Mar 2014 04:21:05 PM UTC, comment #6: 

I checked in the following change.  It seems to fix the problem with the parent property for me.

http://hg.savannah.gnu.org/hgweb/octave/rev/89bd70fae066

Also merged with default.

Running make check works for me, but still fails because qt+opengl
graphics are not availble when running without the gui.  But I think that's a separate problem.

John W. Eaton <jwe>
Group administrator
Sun 02 Mar 2014 10:24:18 PM UTC, comment #5: 

I'll try to think about how to order the initialization so that it works with qt+opengl graphics.  I meant to do that already but was distracted...

John W. Eaton <jwe>
Group administrator
Sun 02 Mar 2014 09:08:07 PM UTC, comment #4: 

This bug has more knock-on effects.  Executing "__run_test_suite__" in the GUI now hangs at guidata.m.  The problem is that the ancestor function ends up getting called like so:


ancestor (0, "figure")


Inside ancestor.m there is a "while (true)" loop that becomes infinite because the call


get (0, "parent")


returns 0 instead of [] as it should.

Rik <rik5>
Group administrator
Sat 22 Feb 2014 05:12:05 PM UTC, comment #3: 

This is an order of initialization problem for the Qt toolkit.  The global Octave_NaN object is not initialized to NaN prior to its use to set the value of the root figure's parent property.

John W. Eaton <jwe>
Group administrator
Sat 22 Feb 2014 04:46:09 PM UTC, comment #2: 

Confirmed.  The 'parent' property of the root figure should always be '[]' according to Matlab since it has no parent.

Rik <rik5>
Group administrator
Sat 22 Feb 2014 04:44:14 PM UTC, comment #1: 

This problem appears after the integration of QtHandles (actually at revision 18503 which fixes compile issues).

I suppose it's a side effect of integrating this huge and beautiful new feature. 

Pantxo Diribarne <pantxo>
Group Member
Sat 22 Feb 2014 10:15:32 AM UTC, original submission:  

This only happens with the GUI (neither with --no-gui nor -cli) and it is a regression from 3.8.0 : 


$ ./run-octave -f
>> get (0, "parent")
ans = 0
>> test ancestor ## loops forever, expecting root to return []


It impacts "ancestor.m" and thus many other plotting scripts.


Pantxo Diribarne <pantxo>
Group Member

 

(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 jwe (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by pantxo (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-03-05 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2014-02-22 rik5 StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code