andrewhwood / alembic

Automatically exported from code.google.com/p/alembic
Other
0 stars 0 forks source link

String Dimensions aren't written for duplicated string arrays. #272

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When writing string arrays the dimension HDF5 attribute isn't being written for 
duplicated arrays.

This is causing a problem like this on read:

HDF5-DIAG: Error detected in HDF5 (1.8.8) thread 0:
 #000: H5A.c line 550 in H5Aopen(): unable to load attribute info
from object header for attribute: '0012.dims'
   major: Attribute
   minor: Unable to initialize object
 #001: H5Oattribute.c line 538 in H5O_attr_open_by_name(): can't
locate attribute: '0012.dims'
   major: Attribute
   minor: Object not found

The dimensions need to always be written for strings.

The example included shows that the HDF5 file isn't bad, but the file will 
still give the error show above in apps that read the string array data.

Original issue reported on code.google.com by miller.lucas on 1 Feb 2012 at 10:55

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by miller.lucas on 1 Feb 2012 at 10:57

GoogleCodeExporter commented 9 years ago
Fix is here.
http://code.google.com/r/millerlucas-dev/source/detail?r=7a09c8f137146b2665edad4
34e040ed5cc2c6419

Original comment by miller.lucas on 4 Feb 2012 at 12:32

GoogleCodeExporter commented 9 years ago

Original comment by miller.lucas on 7 Feb 2012 at 8:02

GoogleCodeExporter commented 9 years ago
This was released in 1.0.5

Original comment by miller.lucas on 17 May 2012 at 6:18