Save as crashes QGIS

Issue #1374 on hold
Benjamin Jakimow created an issue

Using the data source → Save As options crashes QGIS in Linux.

Tested on Ubuntu 20.04 with EnMAP-Box 3.10.0.20220524T082114.TEST

  1. Open QGIS 3.24, start EnMAP-Box
  2. Load example data
  3. Open “Save as” dialog for “enmap_berlin” via context menu “Save as”
  4. Try to save as “enmap_berlin.tif” with INTERLEAVE=BAND

Comments (7)

  1. Benjamin Jakimow reporter

    The algorithm creates the following four files:

     2.1K May 30 16:02 enmap_berlin.qml
      24M May 30 16:02 enmap_berlin.tif
      20K May 30 16:02 enmap_berlin.tif.aux.xml
        0 May 30 16:02 enmap_berlin.tif.log
    

    However, the log file remains empty and the enmap_berlin.tif cannot be read by gdal:

    gdalinfo enmap_berlin.tif
    ERROR 1: enmap_berlin.tif:Failed to allocate memory for to read TIFF directory (0 elements of 20 bytes each)
    ERROR 1: TIFFReadDirectory:Failed to read directory at offset 24691268
    gdalinfo failed - unable to open 'enmap_berlin.tif'.
    

  2. Benjamin Jakimow reporter

    Same crash happens when using “Translate”. @Fabian Thiel can you reproduce this error on your windows systems?

  3. Agustin Lobo

    Worked fine for me on Pop!_OS 20.04 (based on Ubuntu 20.04)

    (using enmapbox Version 3.10.3.20220824T155109.master)

  4. Log in to comment