Bug report #18109

OSM (OGR provider) layer pointer throws a python error when checking it

Added by Mathieu Pellerin - nIRV over 2 years ago. Updated about 1 year ago.

Status:Feedback
Priority:High
Assignee:Nyall Dawson
Category:Python bindings / sipify
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:26005

Description

Very odd, while dissecting a progressing error, it ended up revealing something broken with python and OGR provider layer with OSM datasets (I must assume other types also impacted).

Steps to reproduce
  1. Create a new project
  2. Add the attached test.osm dataset (add the line multipolygon layer)
  3. Make sure that added layer is selected in the layers panel
  4. Open the python console
  5. Type the following
    (not iface.activeLayer())
  6. Notice python throwing the following error
    Traceback (most recent call last):
      File "/usr/lib/python3.6/code.py", line 91, in runcode
        exec(code, self.locals)
      File "<input>", line 1, in <module>
    SystemError: error return without exception set
    

This triggers processing errors with vector features parameters.

test.osm.zip (752 KB) Mathieu Pellerin - nIRV, 2018-02-15 09:43 AM

History

#2 Updated by Giovanni Manghi about 1 year ago

  • Status changed from Open to Feedback

Please check if this issue is still valid on QGIS 3.4.5 or 3.6.

Also available in: Atom PDF