<div dir="ltr"><div>Hi Joaquim Luís,</div><div><br></div><div>This is an IPMA NetCDF, it was working before the update.</div><div><br></div><div>And I think it is in fact 
a HDF5 library version problem: <br></div><div><br></div><div>> gdalinfo AROME_OPER_001_FC_SP_PT2_025_RH_2-HTGL_2020102000.nc</div><div><br></div><div>Warning 1: Recode from UTF-8 to CP_ACP failed with the error: "Invalid argument".<br>Warning! ***HDF5 library version mismatched error***<br>The HDF5 header files used to compile this application do not match<br>the version used by the HDF5 library to which this application is linked.<br>Data corruption or segmentation faults may occur if the application continues.<br>This can happen when an application was compiled by one version of HDF5 but<br>linked with a different version of static or shared HDF5 library.<br>You should recompile the application or check your shared library related<br>settings such as 'LD_LIBRARY_PATH'.<br>You can, at your own risk, disable this warning by setting the environment<br>variable 'HDF5_DISABLE_VERSION_CHECK' to a value of '1'.<br>Setting it to 2 or higher will suppress the warning messages totally.<br>Headers are 1.10.4, library is 1.10.5<br>        SUMMARY OF THE HDF5 CONFIGURATION<br>        =================================<br><br>General Information:<br>-------------------<br>                   HDF5 Version: 1.10.5<br>                  Configured on: 2020-10-19<br>                  Configured by: Visual Studio 14 2015 Win64<br>                    Host system: Windows-10.0.19041<br>              Uname information: Windows<br>                       Byte sex: little-endian<br>             Installation point: D:/src/osgeo4w64/src/hdf5/osgeo4w/install-x86_64<br><br>Compiling Options:<br>------------------<br>                     Build Mode:<br>              Debugging Symbols:<br>                        Asserts:<br>                      Profiling:<br>             Optimization Level:<br><br>Linking Options:<br>----------------<br>                      Libraries:<br>  Statically Linked Executables: OFF<br>                        LDFLAGS: /machine:x64<br>                     H5_LDFLAGS:<br>                     AM_LDFLAGS:<br>                Extra libraries:<br>                       Archiver:<br>                         Ranlib:<br><br>Languages:<br>----------<br>                              C: yes<br>                     C Compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe 19.0.24215.1<br>                       CPPFLAGS:<br>                    H5_CPPFLAGS:<br>                    AM_CPPFLAGS:<br>                         CFLAGS:  /DWIN32 /D_WINDOWS /W3<br>                      H5_CFLAGS:<br>                      AM_CFLAGS:<br>               Shared C Library: YES<br>               Static C Library: YES<br><br>                        Fortran: OFF<br>               Fortran Compiler:<br>                  Fortran Flags:<br>               H5 Fortran Flags:<br>               AM Fortran Flags:<br>         Shared Fortran Library: YES<br>         Static Fortran Library: YES<br><br>                            C++: ON<br>                   C++ Compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe 19.0.24215.1<br>                      C++ Flags: /DWIN32 /D_WINDOWS /W3 /GR /EHsc<br>                   H5 C++ Flags:<br>                   AM C++ Flags:<br>             Shared C++ Library: YES<br>             Static C++ Library: YES<br><br>                            JAVA: OFF<br>                   JAVA Compiler:<br><br>Features:<br>---------<br>                   Parallel HDF5: OFF<br>Parallel Filtered Dataset Writes:<br>              Large Parallel I/O:<br>              High-level library: ON<br>                    Threadsafety: ON<br>             Default API mapping: v110<br>  With deprecated public symbols: ON<br>          I/O filters (external):  DEFLATE DECODE<br>                             MPE:<br>                      Direct VFD:<br>                         dmalloc:<br>  Packages w/ extra debug output:<br>                     API Tracing: OFF<br>            Using memory checker: OFF<br> Memory allocation sanity checks: OFF<br>          Function Stack Tracing: OFF<br>       Strict File Format Checks: OFF<br>    Optimization Instrumentation:<br>Bye...</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Joaquim Manuel Freire Luís <<a href="mailto:jluis@ualg.pt">jluis@ualg.pt</a>> escreveu no dia terça, 20/10/2020 à(s) 15:36:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div style="overflow-wrap: break-word;" lang="PT">
<div class="gmail-m_3346892508923918322WordSection1">
<p class="MsoNormal"><span lang="EN-US">But I do find something strange in that nc file. Mirone (Matlab independent nc loader) errors when trying to load it because of the  “Conventions” attribute and HDF-Explorer says it’s
 a “4-byte null-terminated ASCII string” when in fact that attribute has 6-bytes<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">“CF-1.5”<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div>
<div style="border-color:rgb(225,225,225) currentcolor currentcolor;border-style:solid none none;border-width:1pt medium medium;padding:3pt 0in 0in">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Joaquim Manuel Freire Luís
<br>
<b>Sent:</b> Tuesday, October 20, 2020 3:00 PM<br>
<b>To:</b> 'Pedro Venâncio' <<a href="mailto:pedrongvenancio@gmail.com" target="_blank">pedrongvenancio@gmail.com</a>>; qgis-developer <<a href="mailto:qgis-developer@lists.osgeo.org" target="_blank">qgis-developer@lists.osgeo.org</a>>; <a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<b>Subject:</b> RE: [gdal-dev] QGIS from OSGeo4W crashes with latest update on NetCDF<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span>Pedro,<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Probably a netcdf lib related issue. I have a very fresh GDAL build (from yesterday’s master) and can access that file. Either from GDAL or GMT, but my nc lib has not been updated for
 some time (which is not so bad as nc has had a couple of issues in recent past).<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div style="border-color:rgb(225,225,225) currentcolor currentcolor;border-style:solid none none;border-width:1pt medium medium;padding:3pt 0in 0in">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> gdal-dev <<a href="mailto:gdal-dev-bounces@lists.osgeo.org" target="_blank">gdal-dev-bounces@lists.osgeo.org</a>>
<b>On Behalf Of </b>Pedro Venâncio<br>
<b>Sent:</b> Tuesday, October 20, 2020 1:58 PM<br>
<b>To:</b> qgis-developer <<a href="mailto:qgis-developer@lists.osgeo.org" target="_blank">qgis-developer@lists.osgeo.org</a>>;
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<b>Subject:</b> [gdal-dev] QGIS from OSGeo4W crashes with latest update on NetCDF<u></u><u></u></span></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">Hi all,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Sorry about the cross posting but today, after the update of OSGeo4W to qgis-dev 3.15.0-82, I get a QGIS crash both with qgis-dev, qgis-ltr-dev 3.10.10-3 and qgis-rel-dev 3.14.16-3.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I've only looked at Desktop updates and so I cannot say what libs were updated at the same time.
<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">The crash happens when I try to open some NetCDF file (for instance
<a href="http://mf2.ipma.pt/downloads/?latest=arome.2m.relative_humidity&region=PT2" target="_blank">
http://mf2.ipma.pt/downloads/?latest=arome.2m.relative_humidity&region=PT2</a> ) as raster file, as mesh layer or simply when I open a folder with a NetCDF file inside Browser.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">This is something like this one: <a href="https://issues.qgis.org/issues/21162" target="_blank">
https://issues.qgis.org/issues/21162</a> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">As it only happens with QGIS "-dev" versions, I believe it can be related with GDAL 3.2.0dev, but I cannot say what version I had before this update, maybe from one week or two ago.
<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Can someone reproduce?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Another issue with QGIS "-dev" versions is related to GRASS. I get this error message on QGIS initialization, and then I cannot, for instance, create a new mapset with GRASS Plugin:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p style="margin:0in;white-space:pre-wrap">GRASS init error: Problem in GRASS initialization, GRASS provider and plugin will not work : Module built against version 8bcecc9a6 but trying to use version d8fbd49af. You need to rebuild GRASS GIS or untangle multiple
 installations.<u></u><u></u></p>
<p style="margin:0in;white-space:pre-wrap"><u></u> <u></u></p>
<p style="margin:0in;white-space:pre-wrap">I can open two different tickets, but I'm not certain about the right place to open them.<u></u><u></u></p>
<p style="margin:0in;white-space:pre-wrap"><u></u> <u></u></p>
<p style="margin:0in;white-space:pre-wrap">Thanks!<u></u><u></u></p>
<p style="margin:0in;white-space:pre-wrap"><u></u> <u></u></p>
<p style="margin:0in;white-space:pre-wrap">Best regards,<u></u><u></u></p>
<p style="margin:0in;white-space:pre-wrap">Pedro Venâncio<u></u><u></u></p>
</div>
</div>
</div>
</div>

</blockquote></div>