bugGNU Octave - Bugs: bug #39141, saved objects of user created...

 
 

bug #39141: saved objects of user created class fail to load without explicitly loading constructor

Submitted by:  None
Submitted on:  Sun 02 Jun 2013 11:42:37 PM UTC  
 
Category: LibrariesSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: ConfirmedAssigned to: None
Originator Name: Willem AtsmaOriginator Email: -unavailable-
Open/Closed: OpenRelease: dev
Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 24 Nov 2016 11:45:11 PM UTC, comment #3:

my message was cropped

after: "now start octave and do " comes

Juan Pablo Carbajal <juanpi>
Project Member
Thu 24 Nov 2016 11:43:59 PM UTC, comment #2:

Still present in 4.2.0

now start octave and do

Juan Pablo Carbajal <juanpi>
Project Member
Sun 28 Jul 2013 04:10:26 PM UTC, comment #1:

Confirmed with both quaternion() and gf(). I suspect this may have to do with the way types are registered with the Octave interpreter. Typically the constructor function registers the type on the first call, so this error may be due to that expected sequence not happening.

Mike Miller <mtmiller>
Project Administrator
Sun 02 Jun 2013 11:42:37 PM UTC, original submission:

To reproduce:
- create an object of a class (e.g. "quaternion")
- save object to file
- exit octave
- start octave
- load file

I created a custom object "transform" which has a data member "quaternion" (from the forge package) and ran into this behaviour. If I call the constructor before attempting to load the file it works as it should.

Similarly when I load a single "transform" saved in the matlab binary format:

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by juanpi (Posted a comment)
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 28 Jul 2013 04:10:26 PM UTCmtmillerCategoryNone=>Libraries
      Item GroupNone=>Incorrect Result
      StatusNone=>Confirmed
      Release3.6.4=>dev
      Operating SystemGNU/Linux=>Any

    Back to the top


    Powered by Savane 3.1-cleanup1