Bug report #20788

Error whilst running delete duplicates algorithm in QGIS 3.4

Added by Admire Nyakudya over 1 year ago. Updated over 1 year ago.

Status:Closed
Priority:High
Assignee:-
Category:Processing/Core
Affected QGIS version:3.4.2 Regression?:Yes
Operating System:Mac Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:28608

Description

I have a vector layer that contains duplicates and when I run the delete duplicates algorithm it fails with the error

```
Processing algorithm…
Algorithm 'Delete duplicate geometries' starting…
Input parameters: { 'INPUT' : '/Users/admire/Downloads/QGIS-TRAINING/QGISTrainingWorkshop/appendix3-local-data/roads_unclean.shp', 'OUTPUT' : 'memory:' }

Traceback (most recent call last):
File "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/algs/qgis/DeleteDuplicateGeometries.py", line 99, in processAlgorithm
candidates.remove(feature_id)
ValueError: list.remove(x): x not in list

Execution failed after 0.86 seconds

Loading resulting layers
Algorithm 'Delete duplicate geometries' finished
```

Screenshot 2018-12-12 at 14.17.43.png (90.3 KB) Admire Nyakudya, 2018-12-12 01:17 PM

Archive.zip - shape file (17.4 KB) Admire Nyakudya, 2018-12-12 01:19 PM

Associated revisions

Revision 82c13bdd
Added by Nyall Dawson over 1 year ago

[processing] Fix error when running delete duplicate geometries and
some input features have null geometries

Fixes #20788

Revision 06c5beed
Added by Nyall Dawson over 1 year ago

[processing] Fix error when running delete duplicate geometries and
some input features have null geometries

Fixes #20788

(cherry picked from commit 82c13bdde0ef447280cc299b6c48bbd4c83a7306)

History

#1 Updated by Nyall Dawson over 1 year ago

  • % Done changed from 0 to 100
  • Status changed from Open to Closed

#2 Updated by Giovanni Manghi over 1 year ago

  • Resolution set to fixed/implemented

Also available in: Atom PDF