Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in nexusSrc (or NDFileNexus in ADCore) #9

Open
MarkRivers opened this issue Apr 12, 2017 · 5 comments
Open

Bug in nexusSrc (or NDFileNexus in ADCore) #9

MarkRivers opened this issue Apr 12, 2017 · 5 comments

Comments

@MarkRivers
Copy link
Member

When saving files in Stream mode with NDFileNexus we now get these errors from the HDF5 library:

auto_settings.sav: 2654 of 2685 PV's connected
HDF5-DIAG: Error detected in HDF5 (1.10.1-pre1) thread 140652121667328:
  #000: ../H5A.c line 512 in H5Aopen_by_name(): can't open attribute
    major: Attribute
    minor: Can't open object
  #001: ../H5Aint.c line 453 in H5A_open_by_name(): unable to load attribute info from object header
    major: Attribute
    minor: Unable to initialize object
  #002: ../H5Oattribute.c line 530 in H5O_attr_open_by_name(): can't locate attribute: 'napimount'
    major: Attribute
    minor: Object not found
HDF5-DIAG: Error detected in HDF5 (1.10.1-pre1) thread 140652121667328:
  #000: ../H5A.c line 512 in H5Aopen_by_name(): can't open attribute
    major: Attribute
    minor: Can't open object
  #001: ../H5Aint.c line 453 in H5A_open_by_name(): unable to load attribute info from object header
    major: Attribute
    minor: Unable to initialize object
  #002: ../H5Oattribute.c line 530 in H5O_attr_open_by_name(): can't locate attribute: 'napimount'
    major: Attribute
    minor: Object not found
HDF5-DIAG: Error detected in HDF5 (1.10.1-pre1) thread 140652121667328:
  #000: ../H5A.c line 512 in H5Aopen_by_name(): can't open attribute
    major: Attribute
    minor: Can't open object
  #001: ../H5Aint.c line 453 in H5A_open_by_name(): unable to load attribute info from object header
    major: Attribute
    minor: Unable to initialize object
  #002: ../H5Oattribute.c line 530 in H5O_attr_open_by_name(): can't locate attribute: 'napimount'
    major: Attribute
    minor: Object not found

This needs to be tracked down and fixed.

@MarkRivers
Copy link
Member Author

I think this may be a problem with disabling error reporting.

napi.c contains the following:

NXMDisableErrorReporting();
attStatus = NXgetattr(fid, "napimount", nxurl, &length, &type);
NXMEnableErrorReporting();

So it looks like it tries to turn off error messages before it calls NXgetattr. So perhaps this is just not working.

@MarkRivers
Copy link
Member Author

It appears that NXMDisableErrorReporting() only disables error messages from the Nexus code, not from the underlying HDF5 library. The messages above are from the HDF5 library. It is possible they are happening because I am building a Debug release of HDF, rather than a Production release, but I don't think so.

Has anyone seen these errors before, or have any idea how to suppress them. It looks to me like the Nexus library is trying to see if an attribute called "napimount" is present, but it does that in a way that if it is not present we get errors from the HDF5 library.

@MarkRivers
Copy link
Member Author

Some more information:

  • The above error does not happen on Windows in either Single or Stream mode.
  • The above error does not happen on Linux in Single mode
  • The above error happen on Linux in Stream mode.

I can get the error to go away on Linux by doing the following:

  • Set LazyOpen=Yes and save images in Stream mode. No errors.
  • When changing back to LazyOpen=No then the errors still do not occur. So saving images with LazyOpen=Yes at least once fixes the problem.

@ulrikpedersen
Copy link
Member

I haven't really used the NeXus library and this doesn't ring any bells... @PeterC-DLS - do you understand why the NeXus library may be trying to look for the "napimount" attribute in such a brutal manner?

@PeterC-DLS
Copy link

PeterC-DLS commented May 16, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants