Closed Timmarh closed 5 years ago
Try if this is related https://stackoverflow.com/questions/21302930/centos-6-5-final-gdal-ecw-segmentation-fault , and there is a (interesting?) workaround mentioned in the answer's comment
We came across this problem as well. Libecw trys to save the prefs file in the $HOME directory. Unsetting $HOME in our GDAL environment worked around the issue
Alternative, point NCS_USER_PREFS
environment variable to some dummy .xml
file - it may help.
Unfortunately, the NCSUtil code is quite buggy (just look at the CNCSPrefsXML
ctor :-))
https://trac.osgeo.org/gdal/wiki/ECW contains a cumulative patch https://trac.osgeo.org/gdal/attachment/wiki/ECW/libecwj2-3.3.patch that should solve that issue
FYI, I did minor update to the wiki page mentioning std::length_error
and std::bad_alloc
in case it will make it bubble up in web search results.
Expected behavior and actual behavior.
gdalinfo returns an error when called on the ECW.
Steps to reproduce the problem.
For reproduction this is the ECW we are using.
gdalinfo 2017_totaalmozaiek_RGB_lrl.ecw
returns:output from gdb:
Operating system
We are using: Ubuntu 18.04
GDAL version and provenance
GDAL 3.0.1 build from github release