Bug report #18294

Processing Throws Exception when dialog is open while starting new project

Added by Richard Duivenvoorde over 2 years ago. Updated over 2 years ago.

Status:Closed
Priority:High
Assignee:Victor Olaya
Category:Processing/GUI
Affected QGIS version:3.1(master) Regression?:Yes
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:26185

Description

Following exception is thrown:

AttributeError: 'NoneType' object has no attribute 'type' 
Traceback (most recent call last):
  File "C:/OSGEO4~1/apps/qgis-dev/./python/plugins\processing\gui\wrappers.py", line 1032, in layerChanged
    if layer is not None or layer.type() != QgsMapLayer.VectorLayer or layer.selectedFeatureCount() == 0:
AttributeError: 'NoneType' object has no attribute 'type'

To reproduce:
- open new project
- open a point shapefile (in meters projection)
- use processing buffer dialog a couple of times to create trivial buffers for this point layer
- with processing still dialog open
- create a new project
- upon question to save the former project: say discard
- exception above is thrown

History

#1 Updated by Giovanni Manghi over 2 years ago

  • Regression? changed from No to Yes
  • Priority changed from Normal to High

#2 Updated by Nyall Dawson over 2 years ago

  • Resolution set to fixed/implemented
  • Status changed from Open to Closed

Already fixed in master/3.0

Also available in: Atom PDF