bugGNU Octave - Bugs: bug #61491, appdata not saved/restored with...

 
 

bug #61491: appdata not saved/restored with hgsave/hgload

Submitter:  Rik <rik5>
Submitted:  Tue 16 Nov 2021 03:43:10 AM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
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
   

Fri 19 Nov 2021 10:10:33 AM UTC, comment #5: 

Thanks.  This fix streamlines gui save/reload.

Liang Tang <lt1234>
Fri 19 Nov 2021 04:28:42 AM UTC, comment #4: 

I fixed this on the development branch here: http://hg.savannah.gnu.org/hgweb/octave/rev/cb711825f8e5.

This will be a part of the upcoming 7.1 release at the end of the year.

Rik <rik5>
Group administrator
Tue 16 Nov 2021 04:18:16 PM UTC, comment #3: 

I already have a changeset that fixes this bug, but when running 'make check' I found unrelated failures related to _isprimelarge_ that I have to resolve.  I'll check something in later today.

Rik <rik5>
Group administrator
Tue 16 Nov 2021 12:35:00 PM UTC, comment #2: 

Could it be fixed by adding "__appdata__" in the list of hidden properties in hdl2struct()?
http://hg.savannah.gnu.org/hgweb/octave/file/1830a8f85476/scripts/plot/util/hdl2struct.m#l158

Guillaume <gyom>
Tue 16 Nov 2021 03:51:05 AM UTC, comment #1: 

Confirmed.  Matlab does save/restore appdata so Octave should too.

Rik <rik5>
Group administrator
Tue 16 Nov 2021 03:43:10 AM UTC, original submission:  

There is another item that I can pull a report.  It is also figure related and takes small effort to verify.  Thanks.
The appdata is not saved/reloaded, while userdata is saved and reloaded.


fid=figure; plot([0,1], [0,1]); setappdata(fid, 'a',1);
getappdata(gcf, 'a')
ans = 1
%%% manuall save the figure with default, untitled.ofig.
close all;clear all; hgload('untitled.ofig');
getappdata(gcf, 'a')
ans = [](0x0)


Rik <rik5>
Group administrator

 

(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 lt1234 (Posted a comment)
  • -email is unavailable- added by gyom (Posted a comment)
  • -email is unavailable- added by rik5 (Submitted the item)
  • -email is unavailable- added by rik5
  •  

    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
    2021-11-19 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2021-11-16 rik5 Carbon-Copy- Added lt1234

    Back to the top

    Powered by Savane 3.13-aa77.
    Corresponding source code