#7132 closed defect (duplicate)
gdal2tiles.py crashes when tile width or height is zero
Reported by: | csbubbles | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | default | Version: | 2.2.2 |
Severity: | normal | Keywords: | |
Cc: | gbataille |
Description
GDAL 2.2.2, released 2017/09/15
Repro
- Download the attached xxx.tif file
- Generate tiles for zoom level 19:
gdal2tiles.py xxx.tif -z 19
Actual results
Generating Base Tiles: 0...10.ERROR 5: Illegal values for buffer size ERROR 5: Illegal values for buffer size Traceback (most recent call last): File "/Library/Frameworks/GDAL.framework/Versions/2.1/Programs/gdal2tiles.py", line 2439, in <module> main() File "/Library/Frameworks/GDAL.framework/Versions/2.1/Programs/gdal2tiles.py", line 2436, in main gdal2tiles.process() File "/Library/Frameworks/GDAL.framework/Versions/2.1/Programs/gdal2tiles.py", line 481, in process self.generate_base_tiles() File "/Library/Frameworks/GDAL.framework/Versions/2.1/Programs/gdal2tiles.py", line 1312, in generate_base_tiles dsquery.WriteRaster(wx, wy, wxsize, wysize, data, band_list=list(range(1,self.dataBandsCount+1))) File "/usr/local/lib/python2.7/site-packages/osgeo/gdal.py", line 1889, in WriteRaster buf_pixel_space, buf_line_space, buf_band_space ) TypeError: not a string
Expected results
The tool doesn't crash but succeeds having all the tiles generated.
Change History (5)
comment:1 by , 6 years ago
comment:2 by , 6 years ago
Cc: | added |
---|
comment:3 by , 6 years ago
Version: | unspecified → 2.2.2 |
---|
comment:4 by , 6 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
from the backtrace, tThis looks as a duplicate of #6979 I also note an inconsistency in the version you report (2.2.2) and the version you run (2.1)
comment:5 by , 6 years ago
Yeah, a good catch regarding the version... I am not sure how that happened, but yes, I can see the inconsistency:
$ /Library/Frameworks/GDAL.framework/Versions/2.1/Programs/gdal2tiles.py --version GDAL 2.2.2, released 2017/09/15
$ /Library/Frameworks/GDAL.framework/Versions/2.1/Programs/gdalinfo --version GDAL 2.1.3, released 2017/20/01
Note:
See TracTickets
for help on using tickets.
Please let me know how to attach the image file I have, it's about ~25MB.