Bug report #16463

regression: simple qgis model broken (raster inputs + gdal algorithm)

Added by Mathieu Pellerin - nIRV about 7 years ago. Updated almost 7 years ago.

Status:Closed
Priority:High
Assignee:Nyall Dawson
Category:Processing/Core
Affected QGIS version:master Regression?:Yes
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:24372

Description

A regression has found its way into QGIS master amid processing refactoring, whereas a simple model (three raster inputs & one gdal "create virtual raster" algorithm) doesn't work anymore.

Steps to reproduce
  1. Open QGIS
  2. Create a new model, and load the attached model file (build_rgb_vrt2.model)
  3. Save the model, and restart QGIS to see the newly added model in the processing toolbox list
  4. Try to execute the model, the following error will appear:
An error has occurred while executing Python code: 

RuntimeError: wrapped C/C++ object of type ModelerAlgorithm has been deleted 
Traceback (most recent call last):
  File "/home/webmaster/apps/share/qgis/python/plugins/processing/gui/ProcessingToolbox.py", line 252, in executeAlgorithm
    alg = QgsApplication.processingRegistry().algorithmById(item.alg.id())
RuntimeError: wrapped C/C++ object of type ModelerAlgorithm has been deleted

build_rgb_vrt2.model (5.47 KB) Mathieu Pellerin - nIRV, 2017-04-23 09:51 PM


Related issues

Duplicated by QGIS Application - Bug report #16485: Models stopped to work in QGIS3 Closed 2017-04-29

Associated revisions

Revision b34ee28c
Added by Nyall Dawson almost 7 years ago

[processing] Fix refreshing alg list does not refresh toolbox

Fix #16455, #16463

History

#1 Updated by Nyall Dawson about 7 years ago

  • Assignee changed from Victor Olaya to Nyall Dawson

#2 Updated by Nyall Dawson about 7 years ago

My fault, not Victor's !

#3 Updated by Mathieu Pellerin - nIRV about 7 years ago

Oups, must have automatically assigned the issue to Victor when I filed it against the processing category.

#4 Updated by Alexander Bruy almost 7 years ago

#5 Updated by Giovanni Manghi almost 7 years ago

  • Regression? set to Yes

#6 Updated by Giovanni Manghi almost 7 years ago

  • Priority changed from Severe/Regression to High

#7 Updated by Giovanni Manghi almost 7 years ago

  • Easy fix? set to No

#8 Updated by Nyall Dawson almost 7 years ago

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

Also available in: Atom PDF