Bug report #18109
OSM (OGR provider) layer pointer throws a python error when checking it
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- Create a new project
- Add the attached test.osm dataset (add the line multipolygon layer)
- Make sure that added layer is selected in the layers panel
- Open the python console
- Type the following
(not iface.activeLayer())
- 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.
History
#1 Updated by Mathieu Pellerin - nIRV almost 7 years ago
- File test.osm.zip added
#2 Updated by Giovanni Manghi over 5 years ago
- Status changed from Open to Feedback
Please check if this issue is still valid on QGIS 3.4.5 or 3.6.