Closed lolMatrix closed 10 months ago
I experienced similar kind of issue and its mainly due to crash in native code, JVM tends to crash while JNI interfaced native code crashes. So please check in native code whether the file access is permitted or properly configured from native code. Probably more experienced person with the ability to parse the log file can surely give you more insight
Hi @lolMatrix, Thank you for reporting and sharing the log file. According to the stack trace:
V [libjvm.dylib+0x5939bb] jni_SetLongField+0xcb
C [libjnihdf5.dylib+0x8196] Java_org_bytedeco_hdf5_Attribute_read__Lorg_bytedeco_hdf5_DataType_2Lorg_bytedeco_javacpp_BytePointer_2+0x2a6
j org.bytedeco.hdf5.Attribute.read(Lorg/bytedeco/hdf5/DataType;Lorg/bytedeco/javacpp/BytePointer;)V+0
j org.deeplearning4j.nn.modelimport.keras.Hdf5Archive.readAttributeAsString(Lorg/bytedeco/hdf5/Attribute;)Ljava/lang/String;+42
the crash happened when the native code Java_org_bytedeco_hdf5_Attribute_read__Lorg_bytedeco_hdf5_DataType_2Lorg_bytedeco_javacpp_BytePointer_2
called JVM jni_SetLongField
. This might mean that the native code might have passed invalid arguments.
From the log, I see you use JavaCPP presets (https://github.com/bytedeco/javacpp-presets) hdf5-1.12.1-1.5.7-macosx-x86_64 which the native code belongs to.
According to https://github.com/bytedeco/javacpp-presets/tree/master/hdf5, the latest is 1.14.1-1.5.9. Yours is 1.12.1-1.5.7.
We recommend to update your JavaCPP preset for HDF5 and check whether the crash still happens.
BTW, according to https://www.hdfgroup.org/downloads/hdf5/, they provide the HDF5 library for MacOS M1. With them you don't need to use Rosetta.
@eastig Thanks for your answer. You'll be right, i had version conflict. I have need for Rossetta, because my dependencies have only x86_64 native cpp code. Ok, back to mine problem. I resolve my problem with downgrade byteco libreries to 1.5.5.
Thanks for your attention and sorry for your spent time!
Hi @lolMatrix
Thanks for your attention and sorry for your spent time!
No worries. I am glad I helped you. You are welcome.
My device configuration is: Mac m1 SoC, jvm running in Rosetta 2 (x86_64 compatibility), 8gb ram. Used library dl4j. Trying access to keras model in a h5 file. Before updating code worked in normaly. After update on 17.0.9 i get next error
Report file hs_err_pid96449.log. Thanks for answering :)