chashion / alembic

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

Unable to view abc files from Maya exporter in SimpleAbcViewer #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Export an abc file from Maya using supplied exporter
2. Specify frame range 1-24, all else default
3. Attempt to open saved abc file with SimpleAbcViewer

What is the expected output? What do you see instead?
I get the following error:
Beginning to open archive: /tmp/alembictest.abc
HDF5-DIAG: Error detected in HDF5 (1.8.5-patch1) thread 0:
  #000: H5F.c line 1509 in H5Fopen(): unable to open file
    major: File accessability
    minor: Unable to open file
  #001: H5F.c line 1300 in H5F_open(): unable to read superblock
    major: File accessability
    minor: Read failed
  #002: H5Fsuper.c line 324 in H5F_super_read(): unable to load superblock
    major: Object cache
    minor: Unable to protect metadata
  #003: H5AC.c line 1597 in H5AC_protect(): H5C_protect() failed.
    major: Object cache
    minor: Unable to protect metadata
  #004: H5C.c line 3333 in H5C_protect(): can't load entry
    major: Object cache
    minor: Unable to load metadata into cache
  #005: H5C.c line 8177 in H5C_load_entry(): unable to load entry
    major: Object cache
    minor: Unable to load metadata into cache
  #006: H5Fsuper_cache.c line 469 in H5F_sblock_load(): truncated file
    major: File accessability
    minor: File has been truncated
EXCEPTION: IArchive::IArchive( iFileName )
ERROR: EXCEPTION:
Could not open file: /tmp/alembictest.abc

What version of the product are you using? On what operating system?
0.9.0 Linux Centos 5.3

Please provide any additional information below.
Example file attached

./Sven

Original issue reported on code.google.com by sven...@gmail.com on 9 Nov 2010 at 6:22

Attachments:

GoogleCodeExporter commented 9 years ago
This indicates that an HDF5 handle is still open from the previous write.

Original comment by miller.lucas on 9 Nov 2010 at 6:31

GoogleCodeExporter commented 9 years ago
Running this through a debugger, it looks like all the handles are closed when 
the ArchiveWriter is going out of scope.

However, there is a mysterious call to H5Fflush before H5Fclose.  This extra 
call should be gratuitous, since there are no open handles to flush, but 
removing it causes problems in the test suite.

This may be indicative of a deeper problem.

Original comment by miller.lucas on 9 Nov 2010 at 9:18

GoogleCodeExporter commented 9 years ago
Hmm.  I am unable to reproduce the following behavior, as reported by Mark 
Davies:

"I can get a valid hdf5 file. The steps are write out the first file it
will be bad, attempt to overwrite the .abc file it will fail, then
write the same data to a new file and it will be ok."

or:

"However, if I give it a frame range it it will say that everything is
fine, i.e. tell me the frames that are written and that it closed the
archive, but the resulting file is not valid. The hdf5 file cannot be
opened by the tools h5stat, h5dump, h5debug etc, they all fail on
H5F_open()."

I've tried this with exporting the full frame range or not the full frame 
range.  My details are:

Maya 2010
HDF5 1.8.5-patch1
Boost 1.44

The scene is a polymesh sphere with animated transforms (translations).

Would it be possible to send me a test Maya scene?

Original comment by ard...@gmail.com on 9 Nov 2010 at 11:31

GoogleCodeExporter commented 9 years ago
I sent Joe an example of a deforming poly sphere which recreates Mark's problem.

I have a potential solution that I think fixes both of your issues.

For more details see:
http://code.google.com/r/millerlucas-dev/source/detail?r=3d72463d0e36f5841c272f6
31d30ae0af6917dff

Original comment by miller.lucas on 10 Nov 2010 at 2:05

GoogleCodeExporter commented 9 years ago

Original comment by scottmmo...@gmail.com on 20 Nov 2010 at 2:35

GoogleCodeExporter commented 9 years ago
This is fixed in the clones ardent-embic and millerlucas-dev.  It will be 
pushed to the mainline in the next couple days (both the hg repo and the source 
download).

Original comment by ard...@gmail.com on 6 Dec 2010 at 11:53