Why does MATLAB 7.0.4 (R14SP2) quit when I am running HDF5 functions on Mac 10.3x?

1 view (last 30 days)
Whan I executre the following code
if exist('test_hdf5.h5'),
delete('test_hdf5.h5');
end;
! ls -l test*
x = 100 * rand(size(zeros(20, 30)));
gat = 'name1';
gat_details.Name = 'gatt';
gat_details.AttachType = 'group';
gat_details.AttachedTo = '/';
disp('*** build HDF5 file of the volume; start with details only ');
hdf5write('test_hdf5.h5', gat_details, gat)
clear mex
disp('*** finish writing details ');
disp('*** get info ');
hinfo = hdf5info('test_hdf5.h5')
clear mex
x_details.Name = 'x';
x_details.Location = '/';
disp('*** build HDF5 file of the volume; now write data ');
hdf5write('test_hdf5.h5', x_details, x, 'WriteMode', 'append')
clear mex
disp('*** finish writing data ');
disp('*** get info ');
hinfo = hdf5info('test_hdf5.h5')
clear mex
[snip]
the ‘get info’ line is displayed and MATLAB hangs up after that. After some time, a dialog opens displaying the following error:
MATLAB Application has quit unexpectedly

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This bug was fixed in MATLAB 7.1 (R14SP3). If you are using a previous version please read the following:
There is a bug in MATLAB 7.0.4 (R14SP2) that shows up when using HDF5 functions on Mac 10.3x. To work around this issue, download the attached version of the Mexmac-files and Dylib-file. Here are the required steps:
1. Quit MATLAB
2. Rename the following Mexmac-files and a Dylib-file:
$MATLAB/toolbox/matlab/imagesci/private/hdf5readc.mexmac
$MATLAB/toolbox/matlab/imagesci/private/hdf5writec.mexmac
$MATLAB/toolbox/matlab/imagesci/private/hdf5infoc.mexmac
$MATLAB/bin/mac/libhdf5.dylib
(where $MATLAB is the MATLAB root directory on your machine, as returned by typing
matlabroot
at the MATLAB command prompt.)
Rename the Mexmac-files to filename.mexmac.old and Dylib-file to filename.dylib.old.
3. Download the attached files. Place the new Mexmac-files in the directory mentioned in step 2 i.e.
$MATLAB/toolbox/matlab/imagesci/private/
and place new Dylib-file in the directory as mentioned in step 2 i.e.
$MATLAB/bin/mac/
4. Change your directory to $MATLAB/bin/mac/. Please create two symbolic links to the Dylib-file by typing the following commands from the Mac terminal application :
ln -s libhdf5.dylib libhdf5.0.dylib
ln -s libhdf5.dylib libhdf5.0.0.dylib
4. Restart MATLAB
5. After restarting MATLAB, issue the following command at the MATLAB prompt:
rehash toolboxcache

More Answers (0)

Products


Release

R14SP2

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!