Hi Macro,
I ran into a bug pointing to the internal GDAL (v3.2.1) when using the gpt command on my mac.
Specifically, the questionable part was found in the last chunk of “2_3_OLCI_SNAP_batch_processing_C2RCC”. I changed stderr
to True
in the line 34 to print the error: process = subprocess.Popen(c2rcc_processing_call, shell=True, stdout=subprocess.PIPE, stderr=True)
Error info:
-------------- Processing: --------------
/Users/Bi/learn-olci/2_OLCI_advanced/products/S3A_OL_1_EFR____20220625T083644_20220625T083944_20220626T124836_0179_087_007_1980_MAR_O_NT_002.SEN3/xfdumanifest.xml
– To: –
S3A_OL_1_EFR____20220625T083644_20220625T083944_20220626T124836_0179_087_007_1980_MAR_O_NT_002_SUBSET_IDEPIX_C2RCC.nc
– Generating config: –
/Users/Bi/learn-olci/2_OLCI_advanced/outputs/run_config.xml
– Config ready; running: –
/Applications/snap/bin/gpt /Users/Bi/learn-olci/2_OLCI_advanced/outputs/run_config.xmlINFO: org.esa.snap.core.gpf.operators.tooladapter.ToolAdapterIO: Initializing external tool adapters
INFO: org.esa.s2tbx.dataio.gdal.GDALVersion: Incompatible GDAL 3.4.2 found on system. Internal GDAL 3.2.1 from distribution will be used.
INFO: org.esa.s2tbx.dataio.gdal.GDALVersion: Internal GDAL 3.2.1 set to be used by SNAP.
Native library load failed.
java.lang.UnsatisfiedLinkError: /Users/Bi/.snap/auxdata/gdal/gdal-3-2-1/lib/jni/libgdalalljni.dylib: dlopen(/Users/Bi/.snap/auxdata/gdal/gdal-3-2-1/lib/jni/libgdalalljni.dylib, 0x0001): Library not loaded: /usr/local/opt/jpeg/lib/libjpeg.8.dylib
Referenced from: /Users/Bi/.snap/auxdata/gdal/gdal-3-2-1/lib/libtiff.5.dylib
Reason: tried: ‘/usr/local/opt/jpeg/lib/libjpeg.8.dylib’ (no such file), ‘/usr/lib/libjpeg.8.dylib’ (no such file)
SEVERE: org.esa.s2tbx.dataio.gdal.GDALLoader: Failed to initialize GDAL native drivers. GDAL readers and writers were disabled.java.lang.reflect.InvocationTargetException
INFO: org.esa.snap.core.util.EngineVersionCheckActivator: Please check regularly for new updates for the best SNAP experience.
INFO: org.esa.s2tbx.dataio.gdal.GDALVersion: Internal GDAL 3.2.1 set to be used by SNAP.
INFO: org.hsqldb.persist.Logger: dataFileCache open start
INFO: org.esa.s3tbx.c2rcc.olci.C2rccOlciOperator: c2rcc initial tile : null, configured tile: java.awt.Dimension[width=1217,height=1023]
----- Finished running this product -----
The used xml file is uploaed: run_config.xml (2.9 KB)
You can easily get the scene name: S3A_OL_1_EFR____20220625T083644_20220625T083944_20220626T124836_0179_087_007_1980_MAR_O_NT_002
The JRE error report is also attached:
hs_err_pid43925.log (63.3 KB)
Platform: macOS Monterey v12.4
SNAP version: 9.0.0
An incompatible local GDAL was found (v3.4.2)
The error info also shows some libjpeg
isseus but I checked that I already installed the jpeg dependency…
Please tell me if you need any other information from my side. And thank you in advance.
Best regards,
Shun