Bug report #15928

Calling plugin from standalone script has a bug because the use of progress bar

Added by Juanma Font about 4 years ago. Updated almost 4 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Processing/Core
Affected QGIS version:2.18.0 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:not reproducable
Crashes QGIS or corrupts data:No Copied to github as #:23845

Description

I have a standalone script that call:

general.runalg("qgis:linestopolygons",inFile,outFile)

and only the first feature is write to outputfile.

I discover that if I comment out the line that says: "progress.setPercentage(int(current * total))" into the file /usr/share/qgis/python/plugins/processing/algs/qgis/LinesToPolygons.py then all features are write to output file.

Tested in Linux Qgis 2.18.1

History

#1 Updated by Alexander Bruy almost 4 years ago

  • Operating System deleted (Linux)
  • Status changed from Open to Feedback
  • Category set to Processing/Core

Not reproducible here

#2 Updated by Giovanni Manghi almost 4 years ago

  • Resolution set to not reproducable
  • Status changed from Feedback to Closed

closing for lack of feedback.

Also available in: Atom PDF