qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.09k stars 2.93k forks source link

Duplicated layer based on model output layer is not rendered #50602

Open pathmapper opened 1 year ago

pathmapper commented 1 year ago

What is the bug or the crash?

Duplicated layer based on model output layer is not rendered.

Steps to reproduce the issue

  1. Download model: https://kreis-viersen.github.io/qgis-models-and-scripts/models/wfs_daten_kvie/alle_gebaeude_kvie.model3
  2. Add model to QGIS toolbox.
  3. Run modell with default settings (or select only one option to reduce loading time).
  4. In layer widget, right click on model output layer and select "Duplicate layer".
  5. Toggle visibility for the new layer and see error -> it's not rendered.

Versions

QGIS version 3.27.0-Master QGIS code revision e8dcb89988
Qt version 5.15.3
Python version 3.10.6
GDAL/OGR version 3.4.1
PROJ version 8.2.1
EPSG Registry database version v10.041 (2021-12-03)
GEOS version 3.10.2-CAPI-1.16.0
SQLite version 3.37.2
PostgreSQL client version unknown
SpatiaLite version 5.0.1
QWT version 6.1.4
QScintilla2 version 2.11.6
OS version Ubuntu 22.04.1 LTS
       

Active Python plugins sagaprovider | 2.12.99 grassprovider | 2.12.99 MetaSearch | 0.3.6 processing | 2.12.99 db_manager | 0.1.20

Supported QGIS version

New profile

Additional context

A similar but different error in https://github.com/qgis/QGIS/issues/48739 (maybe related?).

alexbruy commented 8 months ago

This only happens when using temporary layers, works fine when saving model output to a file.