bugGNU Octave - Bugs: bug #35227, HDF5 h5ex_t_vlstring.h5 can't be...

 
 

bug #35227: HDF5 h5ex_t_vlstring.h5 can't be loaded

Submitted by:  None
Submitted on:  Tue 03 Jan 2012 02:32:54 PM UTC  
 
Category: LibrariesSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: ConfirmedAssigned to: None
Originator Name: ErichOriginator Email: -unavailable-
Open/Closed: OpenRelease: dev
Operating System: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Thu 05 Jan 2012 10:26:10 AM UTC, comment #3:

*)When you do not like bug call it feature
request.

*)What could I do when I want to put an unsupported
hdf variable to octave?

*)At least the h5ex_t_string.h5 should either load
correctly or an warning that a dataset could not
load should be presented.

Erich

Anonymous
Thu 05 Jan 2012 05:25:21 AM UTC, comment #2:

Octave's load command is supposed to be able to load HDF files saved by Octave's save command. It was not designed to load arbitrary HDF files. So unless your example file was created by Octave using save --hdf5, I'm not sure I would consider this to be a bug.

John W. Eaton <jwe>
Project Administrator
Wed 04 Jan 2012 05:01:01 PM UTC, comment #1:

Confirmed on a recent development tip (14146:2f05228cb959).

In terms of debugging. It is probably easiest to start with the fixed length example. The lack of a last column is probably an off-by-1 error where someone forgot that the length of a C string needs to be one larger than the actual string to account for the null ('\0') at the end.

I'm attaching two files from the reference website to make things easier.

File Description
h5ex_t_string.h5 String example in HDF5 format
h5ex_t_string.tst The expected output for the example

(file #24738, file #24739)

Rik <rik5>
Project Administrator
Tue 03 Jan 2012 02:32:54 PM UTC, original submission:

I am very interested in loading
variable string arrays in octave,
but loading h5ex_t_vlstring.h5
from
fails withs
the error message is in reality much longer.
The file consists of
What can I do to load a h5 file with a vector of
variable length strings.

I want to load a vector of 300 000 strings most of fixed
length butfixed length is not guaranteed.

Which types of HDF5-strings are allowed are supported in octave?
at least
produces DS1
DS1 =

Partin
is suc
sweets
sorrow
-verbatim-
this is also not completly correct! the last column is lost.
See the output from Matlab

Ciau Erich

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #24738:  h5ex_t_string.h5 added by rik5 (2kB - application/octet-stream)
file #24739:  h5ex_t_string.tst added by rik5 (159B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by rik5 (Updated 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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 10 Oct 2013 07:19:53 PM UTCrik5Item GroupCrash=>Incorrect Result
    Wed 04 Jan 2012 05:01:01 PM UTCrik5Attached File-=>Added h5ex_t_string.h5, #24738
      Attached File-=>Added h5ex_t_string.tst, #24739
      StatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup