Error running gpt after install SNAP 6.0-PREVIEW4


#1

Hi All!
I try run “gpt -h” after install SNAP 6.0-PREVIEW4 (esa-snap_all_unix_6_0-PREVIEW4.sh) on CentOS 6 x64. I get error:

[details=Error log]INFO: org.esa.snap.core.gpf.operators.tooladapter.ToolAdapterIO: Initializing external tool adapters
Error: /home/%user%/.snap/auxdata/gdal/libenvironment-variables.so: /home/%user%/.snap/auxdata/gdal/libenvironment-variables.so: cannot open shared object file: Too many open files
java.lang.UnsatisfiedLinkError: /home/%user%/.snap/auxdata/gdal/libenvironment-variables.so: /home/%user%/.snap/auxdata/gdal/libenvironment-variables.so: cannot open shared object file: Too many open files
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1857)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at org.esa.s2tbx.jni.EnvironmentVariablesNative.(EnvironmentVariablesNative.java:8)
at org.esa.s2tbx.jni.EnvironmentVariables.getCurrentDirectory(EnvironmentVariables.java:15)
at org.esa.s2tbx.dataio.gdal.activator.GDALDistributionInstaller.install(GDALDistributionInstaller.java:76)
at org.esa.s2tbx.dataio.gdal.activator.GDALPlugInActivator.start(GDALPlugInActivator.java:22)
at org.esa.snap.runtime.Engine.informActivators(Engine.java:222)
at org.esa.snap.runtime.Engine.lambda$start$10(Engine.java:121)
at org.esa.snap.runtime.Engine.runClientCode(Engine.java:189)
at org.esa.snap.runtime.Engine.start(Engine.java:121)
at org.esa.snap.runtime.Engine.start(Engine.java:90)
at org.esa.snap.runtime.Launcher.run(Launcher.java:51)
at org.esa.snap.runtime.Launcher.main(Launcher.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:65)
at com.install4j.runtime.launcher.UnixLauncher.main(UnixLauncher.java:57)[/details]

I did the same thing, but for version SNAP 5 (esa-snap_all_unix_5_0.sh) and this worked…

Do you have any idea?


#2

You can try to increase the maximum number of open files.
It is described here: https://www.tecmint.com/increase-set-open-file-limits-in-linux/
But actually it should not happen.

@ramona_manda, @kraftek can you have look?
Thanks


#3

Thanks @marpet! I increased number of open files limit and this is working…