-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Can't open a tiff in 3.6.0dev that opens in 3.4.3 #5736
Comments
@jef-n I suspect a build issue in OSGeo4W where libjpeg12 would be used in (internal?) libtiff |
See also #5489 |
I had a try with a GDAL 3.6.0dev, released 2022/99/99 build by gisinternals https://download.gisinternals.com/sdk/downloads/release-1930-x64-gdal-mapserver.zip from 2022-05-06 (there seems to be build errors since that). Works fine
|
completely unrelated. The error reported in this ticket seems to be a configuration issue of the build related to a mix of libjpeg 8 bit vs libjpeg 12 bit |
Building with https://github.com/jef-n/OSGeo4W/blob/cfce156556836e1e18b370fe1bfb7f845bb3703b/src/gdal-dev/osgeo4w/package.sh#L173 - so it should be using external libs.
|
line 173 only disables the use of libjpeg internal, but internal libtiff can potentially use either internal or external libjpeg. That said, the diff you show indicates the use of external libtiff, so maybe the misconfiguration is in the external libtiff ? |
Not sure how that all fits together. This links. I ran into issues linking poppler, that uses libtiff too, earlier (and had to introduce |
ok looking at the build recipee of libtiff in https://github.com/jef-n/OSGeo4W/blob/master/src/libtiff/osgeo4w/package.sh , I see it is configured with libjpeg and libjpeg12.
|
thanks. switched to jpeg-turbo and rebuilt (and partly updated) reverse dependencies in OSGeo4W. |
Expected behavior and actual behavior.
I've created and used a tiff file (in GDAL and QGIS earlier versions) that opens without trouble in GDAL through 3.4.3, but won't open in 3.6.0dev.
File temporarily available online at https://www.dropbox.com/s/jnu5iwg5ehlll34/DRAPE%202014%20IR%20compressed.tif?dl=0 while this ticket is open. [50 Meg]
Steps to reproduce the problem.
The IReadBlock errors also appear in loading this file into QGIS, via an existing project or new project (which is what matters to me, above is just a minimal error case to replicate).
Ditto happens for some other rasters created similarly; not unique to this file.
Operating system
Windows 10
GDAL version and provenance
GDAL 3.6.0dev-efd4398104, OSGeo4W. Has been present since intro of 3.6.0dev into OSGeo4W QGIS dev dailies. Not sure about 3.5.0. Released 3.4.3 and previous work fine.
I initially throught this might be some compilation flag/config error, so reported at https://trac.osgeo.org/osgeo4w/ticket/740 a week ago, but no answer/solution there. Thanks!
The text was updated successfully, but these errors were encountered: