Bug report #12094

Processing: Raster layer histogram from QGIS algorithms throws a python error

Added by Filipe Dias almost 5 years ago. Updated almost 5 years ago.

Status:Closed
Priority:Normal
Assignee:Giovanni Manghi
Category:Processing/QGIS
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:20289

Description

Algorithm Raster layer histogram starting...
unpack requires a string argument of length 38436 See log for more details

Log:

Uncaught error while executing algorithm
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/share/qgis/python/plugins/processing/core/GeoAlgorithm.py", line 234, in execute
self.processAlgorithm(progress)
File "/usr/share/qgis/python/plugins/processing/algs/qgis/RasterLayerHistogram.py", line 76, in processAlgorithm
for v in values:
File "/usr/share/qgis/python/plugins/processing/tools/raster.py", line 47, in scanraster
values = struct.unpack('f' * band.XSize, scanline)
error: unpack requires a string argument of length 38436


Related issues

Related to QGIS Application - Bug report #10403: Processing "raster layer statistics" python error Closed 2014-05-30

History

#1 Updated by Filipe Dias almost 5 years ago

Raster layer statistics is affected by the same error.

#2 Updated by Giovanni Manghi almost 5 years ago

  • Affected QGIS version changed from 2.6.0 to master
  • Priority changed from Severe/Regression to Normal
  • Target version changed from Version 2.8 to Future Release - High Priority

It is not a regression. Never worked, as far as I can see...

#3 Updated by Filipe Dias almost 5 years ago

It should be fixed or removed then. I don't think a tool that everyone knows it is broken should be shipped in a new release. Hence the Blocker status.

#4 Updated by Giovanni Manghi almost 5 years ago

  • Assignee changed from Victor Olaya to Giovanni Manghi

I have a fix for it.

#5 Updated by Giovanni Manghi almost 5 years ago

Giovanni Manghi wrote:

I have a fix for it.

https://github.com/qgis/QGIS/pull/1872

#6 Updated by Giovanni Manghi almost 5 years ago

  • Resolution set to fixed/implemented
  • Status changed from Open to Closed

Also available in: Atom PDF