bugGNU Octave - Bugs: bug #48673, add_hdf5_data fails for structs

 
 

bug #48673: add_hdf5_data fails for structs

Submitted by:  Dmitry Messerman <mdmitry>
Submitted on:  Mon 01 Aug 2016 01:29:09 PM UTC  
 
Category: LibrariesSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: NoneAssigned to: None
Originator Name: Dmitry MessermanOpen/Closed: Open
Release: 4.0.2Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Mon 01 Aug 2016 01:29:09 PM UTC, original submission:

The following code:

#include <octave/oct.h>
#include <octave/load-save.h>
#include <octave/oct-map.h>
#include <octave/ls-hdf5.h>

using namespace std;

typedef symbol_table::symbol_record OctaveSymbolRecord;

int main() {
auto my_map = octave_map();
my_map.setfield(string("mykey"),octave_value(0));
hdf5_ofstream ofs("octave_bug.hdf5");
write_header(ofs, LS_HDF5);
do_save(ofs, OctaveSymbolRecord(0, "my_map", octave_value(my_map)), LS_HDF5, false);
return 0;
}

Fails with the following error message:

error: full: invalid operation for %s type: wrong type argument 'scalar struct'
error: octave_base_value::save_binary(): wrong type argument '<unknown type>'
error: save: error while writing 'my_map' to hdf5 file

Dmitry Messerman <mdmitry>

 

(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 mdmitry (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):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1