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.67k stars 3.02k forks source link

Error when using Add autoincremental field together with ORS Tool in a model #59466

Closed davidlgalt closed 1 week ago

davidlgalt commented 2 weeks ago

bug.zip

What is the bug or the crash?

Beginning sometime after version 3.36, I started getting an error in one of my models. When using Add autoincremental field and ORS Matrix from layers together in a model even if it's part of a submodel, it causes an error. This occurs even if the 2 tools are in separate branches and don't interact at all.

It's impossible for me to tell if this is an error with ORS Tools or native GIS as both tools work fine as long as they're not together in the same model.

Steps to reproduce the issue

Unzip the attached files. Add model files to your profile's model folder. Open QGIS version 3.8 or later and add the ORS Tools plugin. Open test.qgz. Run the test model using the included layer and branch_status for the field parameter.

This should reproduce the error.

Versions

Error observed in 3.38 and 3.40. It still works in 3.34 and 3.36.

Supported QGIS version

New profile

Additional context

No response

nicogodet commented 1 week ago

If the error occurs with the plugin and not without, there is a high chance it comes from the plugin. Report on plugin repo and plugin devs will open a ticket if this is a QGIS issue in fine.