CalcNF2FF crashes under windows with Octave 4.0.0-rc2

Give some feedback on openEMS.

Moderators: thorsten, sebastian

Post Reply
sehollar
Posts: 6
Joined: Mon 05 Jan 2015, 23:26

CalcNF2FF crashes under windows with Octave 4.0.0-rc2

Post by sehollar » Fri 24 Apr 2015, 23:48

I am not sure if this has been discussed, but because it took me some time to figure this out, I thought I would post. I am using the recent release of Octave 4.0.0-rc2, and I found that CalcNF2FF was crashing. I followed the error path, and found that, h5readatt was the problem, and h5readatt_octave.oct needed to be recompiled.

In the source file, h5readatt_octave.cc, at line 33
the following function definition must have changed from Octave 3.8 to Octave 4.0
I changed this:
H5Eset_auto(NULL, NULL);
to this:
H5Eset_auto(H5E_DEFAULT, NULL, NULL);

Then I recompiled the oct file at the octave command prompt
mkoctfile -lhdf5 -v h5readatt_octave.cc

Everything seems to work now.
Last edited by sehollar on Mon 27 Apr 2015, 17:05, edited 1 time in total.

thorsten
Posts: 1393
Joined: Mon 27 Jun 2011, 12:26

Re: CalcNF2FF crashes under windows with Octave 4.0.0-rc2

Post by thorsten » Sat 25 Apr 2015, 15:04

Hi,

thanks for the feedback. I updated my Kubuntu to 15.04 and are now facing the same issue with Octave 3.8.2.
At least on Linux it thus depends on the hdf5 version shipped by the OS.
But I could imagine that Octave 4 does contain are new hdf5 version for Windows as well..

I prefer to change

Code: Select all

H5Eset_auto(NULL, NULL);
with

Code: Select all

H5Eset_auto1(NULL, NULL);
This should force the "old" API and should thus be better for old and new environments...

Maybe you can confirm that this works for you as well...

regards
Thorsten

sehollar
Posts: 6
Joined: Mon 05 Jan 2015, 23:26

Re: CalcNF2FF crashes under windows with Octave 4.0.0-rc2

Post by sehollar » Mon 04 May 2015, 23:41

I recompiled using your suggestions, and it seems to work out fine. Thanks for the help!

Post Reply