Bug report #12094
Processing: Raster layer histogram from QGIS algorithms throws a python error
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
History
#1 Updated by Filipe Dias almost 10 years ago
Raster layer statistics is affected by the same error.
#2 Updated by Giovanni Manghi almost 10 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 10 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 10 years ago
- Assignee changed from Victor Olaya to Giovanni Manghi
I have a fix for it.
#5 Updated by Giovanni Manghi almost 10 years ago
#6 Updated by Giovanni Manghi almost 10 years ago
- Resolution set to fixed/implemented
- Status changed from Open to Closed