08-21-2020 04:17 AM - edited 08-21-2020 04:47 AM
Dear Community
I observed in NXG5 a reproducable crash when I add to many items to a .NET interface node.
It starts already when the filesize of the *.dni is in the range of 500KB.
OK i know i can make more smaller dni's but is this the expected behaviour ?
In Detail: It Happens e.g. when I use the HDF5 .NET implementation. HDF.PInvoke.
Some thinks are already working but when I try to add the Namespace H5T to a *.dni it completely crashes.
It already happend when i select an assemby(namespace) with just 204 items (H5T).
I also observed this behaviour when i uses too much items of the mscorlib.dll.
Is there a workaround or some other good trick out there or do I just missing something to select ?
Have a nice weekend
08-31-2020 12:59 AM - edited 08-31-2020 01:00 AM
Hi Gernot,
It is not expected behaviour. Also, the numbers you mention (exports in the range of 200-300, and file size of 500 KB) should be manageable by NXG.
On my NXG 5.0 installation, I configured a DNI document with more than 3,500 exports from mscorlib and didn't see a crash. The file size of the DNI document was 14 MB.
Could you share your crash log, so that we can investigate what could be going wrong?
Thanks!
09-07-2020 01:11 AM
Hi
Sorry for the late reply. I just came back from vacation.
Here is the log file for the H5invoke dll.
I had also observed this problem earlier on mscorlib but i don't remember which namespace i added when it came up.
Thank you for some invetigations
09-07-2020 02:09 AM
Dear Sujay Narayana
I just did again an investigation with mscorlib and it seems that it is not related to the size but to the assembly.
As you mentioned it is ok wih the mscorlib even with more than 3000 items and a fielsize of 20MB of the DNI.
So it seems to be a problem of my HDF5 dll.
Is it possible to find out what the origin of the problem is ?
When I select the full assembly (1889 items) NXG5 says immediately in a dialog
"h5.dni" failed to save. The given path was not valid.
and a second dialog is coming up with the message "updataing exported types" but there is no progress at all and the only thing i can do is to kill the NXG task via task manager. (the NXG thread (in the windows task manager) does not use any CPU reccource at this time)
09-14-2020 01:46 AM
Thank you for the logs, Gernot! A lot of times, the logs are sufficient in tracking down the issue.
In case the log is not very helpful, if possible, could you also share the HDF5 binary file(s) that you installed to GAC?
09-14-2020 02:13 AM
Dear Sujay
I have installed the follwing package by using VS2019
https://www.nuget.org/packages/HDF.PInvoke/1.10.6.1
Then added the assembly to my GAC using the GACUTIL.
The files attached are in the folder c:\windows\assembly\GAC_MSIL then the subfolders as shown in the *.zip file.
Loading of the file into a *.dni is fine (see attached screenshot)
Adding e.g. constants, and some other items as H5, or H5F is fine (see attached screenshot)
Adding H5P crashes NXG completely with no error message. (no screenshot available because not possible during crash ;))
By the way. In LV 2020 ist is possible to create the H5P constructor and select properties and methods successfully. (I have no real working code for LV 2020 because it is a new approach for HDF5 and I want to use NXG to be prepared for future releases)
But here is also a screenhot to see how it looks in LV2020. I only freated to see if there is a fundamental problem in the H5P.
In C# this assemby also works fine.
Hope this helps for further investigation. (thank you )
Best regards
Gernot