[bug #68426] hgsave/hgload should ignore unrestorable callbacks
"Dmitri A. Sergatskov" <[email protected]> Sat, 6 Jun 2026 21:17:09 -0400 (EDT)
| Newsgroups | gmane.comp.gnu.octave.bugs |
|---|---|
| Message-ID | <[email protected]> |
Please use the bug tracker to post updates to a bug report. The mailing list is intended as a read-only notification stream. Info posted to this mailing list address won't appear in the tracker database where it is most useful.
URL:
<https://savannah.gnu.org/bugs/?68426>
Summary: hgsave/hgload should ignore unrestorable callbacks
Group: GNU Octave
Submitter: dasergatskov
Submitted: Sun 07 Jun 2026 01:17:03 AM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Unexpected Error or Warning
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Unlocked
Release: dev
Operating System: Any
Fixed Release: None
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Sun 07 Jun 2026 01:17:03 AM UTC By: Dmitri A. Sergatskov <dasergatskov>
Currently `hgsave` saves unrestorable private graphics functions which become
invalid callbacks after hgload.
E.g:
octave:1> bar(1:3)
octave:2> fname = [tempname() ".ofig"];
octave:3> hgsave (gcf, fname); close all;
octave:4> h = hgload (fname); unlink (fname);
octave:5> close all
error: invalid function handle, unable to find function for
@rm_axes_listeners
error: called from
delete at line 73 column 5
closereq at line 40 column 5
close at line 121 column 5
Dmitri.
--
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?68426>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaiTGlQAKCRCqLAuaBUf3 TvsUAQDfShgU1msn5vpwWSpBOCBm0uTDZVeXhBRLs/M0fXGrVwEAhEGWp5UHsE1F 4o5NaKTVbKePLl8xnaRSN7QJwkFYWQA= =bIs6 -----END PGP SIGNATURE-----