Bug report #11494
Convex Hull - QProgressBar.setRange(int, int): argument 2 has unexpected type 'long'
|Affected QGIS version:||master||Regression?:|
|Operating System:||Easy fix?:|
|Pull Request or Patch supplied:||No||Resolution:||worksforme|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||19764|
When trying to create convex hulls with settings Create convex hull based on input field, the following error pops up after a few seconds and polygon does not get created:
An error has occured while executing Python code:
Traceback (most recent call last):
File "C:\\PROGRA~1\\QGISCH~1\\apps\\qgis\\python\\plugins\\fTools\\tools\\doGeoprocessing.py", line 273, in runRangeFromThread
self.progressBar.setRange( range_vals[ 0 ], range_vals[ 1 ] )
TypeError: QProgressBar.setRange(int, int): argument 2 has unexpected type 'long'
2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]
2.4.0-Chugiak Chugiak, 8fdd08a
I have confirmed that with the same dataset and choosing single minimum convex hull, the polygon is created successfully.
#1 Updated by Giovanni Manghi about 8 years ago
- Assignee set to Victor Olaya
- Affected QGIS version changed from 2.4.0 to master
- Status changed from Open to Feedback
- Category set to Processing/QGIS
I cannot confirm on QGIS master, can you test it? if you still get the same issue please attach sample data.
meanwhile I can confirm that the same tool in the processing toolbox works only if creating a single convex hull, if the option to create different CHs based on an attribute then the output is empty.