qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.52k stars 2.99k forks source link

TIFFReadEncodedStrip() fail #48412

Closed josaes closed 2 years ago

josaes commented 2 years ago

What is the bug or the crash?

Hi!

I hope somebody can help me about one issue.

I'm advanced QGIS user but I change windows version per linux version and I have some errors that I don't understand it.

I have some rasters that in sdat format works fine but in tiff format returns this error:

2022-05-01T22:00:16 WARNING Alinear2_Raster_RedComunicaciones : Alinear2_Raster_RedComunicaciones.tif, band 1: IReadBlock failed at X offset 0, Y offset 6: TIFFReadEncodedStrip() failed.

This error may ocurr in some raster process (GDAL, SAGA, QGIS). I think maybe is a library issue but I don't sure.

Thanks.

Steps to reproduce the issue

  1. Load Raster
  2. Process these raster in .sdat. Works Fine.
  3. Process and save result in .tiff can produce this crash or invalid results in final raster.

image

Note: This raster should be only 1 or 0 values.

Versions

Versión de QGIS | 3.24.2-Tisler | Rama del código de QGIS | Release 3.24 Versión Qt | 5.15.2 Versión de Python | 3.10.4 Versión de GDAL/OGR | 3.3.3 Versión de PROJ | 8.2.1 Versión del registro de base de datos EPSG | v10.041 (2021-12-03) Versión de GEOS | 3.9.2-CAPI-1.14.3 Versión de SQLite | 3.36.0 Versión de PDAL | 2.3.0 Versión del cliente de PostgreSQL | unknown Versión de SpatiaLite | 5.0.1 Versión de QWT | 6.1.5 Versión de QScintilla2 | 2.13.0 Versión del SO | Fedora Linux 35 (Workstation Edition)

Complementos activos de Python processing_saga_nextgen | 0.0.7 MetaSearch | 0.3.6 db_manager | 0.1.20 grassprovider | 2.12.99 processing | 2.12.99 sagaprovider | 2.12.99

Supported QGIS version

New profile

Additional context

No response

alexbruy commented 2 years ago

This probably should be reported GDAL as QGIS uses GDAL to work with rasters.

rouault commented 2 years ago

Please provide an input dataset and the exact workflow to reproduce the issue

josaes commented 2 years ago

I think that I found the problem.

Some GDAL processes break when path length is too big. I changed my project path to other folder and GDAL processes worked fine.

I think that this issue should be closed.

Thanks to all.

github-actions[bot] commented 2 years ago

The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale". If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue. In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue. If there is no further activity on this issue, it will be closed in a week.

github-actions[bot] commented 2 years ago

While we hate to see this happen, this issue has been automatically closed because it has not had any activity in the last 42 days despite being marked as feedback. If this issue should be reconsidered, please follow the guidelines in the previous comment and reopen this issue. Or, if you have any further questions, there are also further support channels that can help you.