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

HDFView-3.3.0-win10_64-vs16 crashes opening a HDF4 file. #119

Closed
hyoklee opened this issue Apr 18, 2023 · 13 comments
Closed

HDFView-3.3.0-win10_64-vs16 crashes opening a HDF4 file. #119

hyoklee opened this issue Apr 18, 2023 · 13 comments
Assignees
Labels
Type - Task Actions that don't fit into any other type category

Comments

@hyoklee
Copy link
Member

hyoklee commented Apr 18, 2023

Test with the attached file. I tested it on Windows 10.

AIRS.2023.03.24.240.L2.SUBS2SUP.v7.0.7.0.G23084133451.hdf.gz

@oyarzun
Copy link
Contributor

oyarzun commented Apr 18, 2023

Looks like the HDF4 library is failing to load properly

C:\Users\christian.oyarzun\Desktop\HDFViewApp-3.3.0-win10_64-vs17\HDFView>.\HDFView.exe
SLF4J: Class path contains multiple SLF4J providers.
SLF4J: Found provider [org.slf4j.simple.SimpleServiceProvider@2145433b]
SLF4J: Found provider [org.slf4j.nop.NOPServiceProvider@2890c451]
SLF4J: See https://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual provider is of type [org.slf4j.simple.SimpleServiceProvider@2145433b]
[main] INFO hdf.hdf5lib.H5 - HDF5 library: hdf5_java
[main] INFO hdf.hdf5lib.H5 -  successfully loaded from java.library.path
[main] INFO hdf.view.HDFView - Current directory is C:\Users\christian.oyarzun\Desktop\HDFViewApp-3.3.0-win10_64-vs17\HDFView
[main] INFO hdf.view.HDFView - Menubar created
[main] INFO hdf.view.HDFView - Toolbar created
[main] INFO hdf.view.HDFView - URL Toolbar created
[main] INFO hdf.view.HDFView - Content Area created
[main] INFO hdf.view.HDFView - Main Window created
[main] INFO hdf.hdflib.HDFLibrary - HDF4 library: hdf_java
[main] INFO hdf.hdflib.HDFLibrary -  NOT successfully loaded from java.library.path
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class hdf.hdflib.HDFLibrary
        at hdf.object.h4.H4File.isThisType(H4File.java:207)
        at hdf.view.TreeView.DefaultTreeView.openFile(DefaultTreeView.java:2374)
        at hdf.view.HDFView.openLocalFile(HDFView.java:1922)
        at hdf.view.HDFView$28.widgetSelected(HDFView.java:1037)
        at swt/org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252)
        at swt/org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
        at swt/org.eclipse.swt.widgets.Display.sendEvent(Display.java:4256)
        at swt/org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1066)
        at swt/org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4054)
        at swt/org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3642)
        at hdf.view.HDFView.runMainWindow(HDFView.java:428)
        at hdf.view.HDFView$41.run(HDFView.java:2695)
        at swt/org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:183)
        at swt/org.eclipse.swt.widgets.Display.syncExec(Display.java:4785)
        at hdf.view.HDFView.main(HDFView.java:2686)
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.UnsatisfiedLinkError: 'int hdf.hdflib.HDFLibrary.HDdont_atexit()' [in thread "main"]
        at [email protected]/hdf.hdflib.HDFLibrary.HDdont_atexit(Native Method)
        at [email protected]/hdf.hdflib.HDFLibrary.loadH4Lib(HDFLibrary.java:238)
        at [email protected]/hdf.hdflib.HDFLibrary.<clinit>(HDFLibrary.java:165)
        at hdf.object.h4.H4File.isThisType(H4File.java:207)
        at hdf.view.TreeView.DefaultTreeView.openFile(DefaultTreeView.java:2374)
        at hdf.view.HDFView.openLocalFile(HDFView.java:1918)
        ... 12 more
Failed to launch JVM

@byrnHDF
Copy link
Collaborator

byrnHDF commented May 7, 2023

Did install the HDFView with Installer or the Application Image version? The Application Image version requires you to setup all paths on windows for finding dlls.

@byrnHDF byrnHDF added UNCONFIRMED New issues are unconfirmed until a maintainer can duplicate them Type - Bug Please report security issues to [email protected] instead of creating an issue on GitHub Component - Object Library Improvements to the object library and removed UNCONFIRMED New issues are unconfirmed until a maintainer can duplicate them labels May 7, 2023
@byrnHDF byrnHDF self-assigned this May 7, 2023
@byrnHDF byrnHDF added Type - Task Actions that don't fit into any other type category and removed Type - Bug Please report security issues to [email protected] instead of creating an issue on GitHub Component - Object Library Improvements to the object library labels May 7, 2023
@byrnHDF byrnHDF changed the title HDFView-3.3.0-win10_64-vs16 crashes for NASA AIRS HDF4 file. HDFView-3.3.0-win10_64-vs16 crashes opening a HDF4 file. May 7, 2023
@hyoklee
Copy link
Member Author

hyoklee commented May 7, 2023

@byrnHDF , you can tell from the file name in the title of this issue, can't you? App images has App in the zip file name.

@byrnHDF
Copy link
Collaborator

byrnHDF commented May 8, 2023

Assuming that the title indicates you used the installer, and from the first line of the capture output which indicates the AppImage install - it seems that the problem is independent of the install type.

@byrnHDF
Copy link
Collaborator

byrnHDF commented May 8, 2023

Upon further testing on a linux machine, this file crashes on opening as well. Must be something in the type of object trying to be opened.

@oyarzun
Copy link
Contributor

oyarzun commented May 8, 2023

@byrnHDF FYI, I've tried both the HDFView Windows installer and the application image. Both result in the same exception when trying to open any HDF4 file.

@byrnHDF
Copy link
Collaborator

byrnHDF commented May 8, 2023

Thanks, I am trying to figure out the scope of the failure as well as determine how it passed the small but useful testing we did do on hdf4.

@byrnHDF
Copy link
Collaborator

byrnHDF commented May 8, 2023

A quick fix is to install the hdf-4.2.16 release - this will add whatever is missing from hdf in hdfview.
There must be a dll that needs to be copied.

@hyoklee
Copy link
Member Author

hyoklee commented May 8, 2023

@loricooperhdf , @byrnHDF 's quick fix is an HDF Newsletter item.

@byrnHDF
Copy link
Collaborator

byrnHDF commented May 8, 2023

xdr.dll - that is the missing dll - copying that over to the folder with mfhdf.dll allows it to open.

However, the file provided at the top of this issue will open but crash opening a dataset. This is a different problem.

@byrnHDF
Copy link
Collaborator

byrnHDF commented May 8, 2023

xdr.dll - that is the missing dll - copying that over to the folder with mfhdf.dll allows it to open.

@loricooperhdf , @byrnHDF 's quick fix is an HDF Newsletter item.

Not yet, please. Just installing HDF4 is not a good answer - providing xdr.dll to download would be better, but not ideal.
There are other things that need to be discussed today that then could go in a newsletter.

@byrnHDF
Copy link
Collaborator

byrnHDF commented May 9, 2023

The problem with the file is a hdf4 JNI issue See HDFGroup/hdf4#355

@byrnHDF
Copy link
Collaborator

byrnHDF commented Jun 22, 2023

Fix will be in next release

@byrnHDF byrnHDF closed this as completed Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type - Task Actions that don't fit into any other type category
Projects
None yet
Development

No branches or pull requests

3 participants