0

I'm writing a script on PyQGIS, but when I start it, this always crashes and I don't understand the reason. After a lot of attempts, I undersand the problems are the following rows of code:

QgsProject.instance().addMapLayers([aRispettoLayer])
QgsProject.instance().addMapLayers([edF])
QgsProject.instance().addMapLayers([terrF])

This is the error which appears every time

Are there alternative instructions that do the same task? Is there someone with the same problem?

enter image description here

2
  • 3
    Can you add the part of the code that cause the crash to your question
    – Bera
    Commented Jul 17 at 18:46
  • I can, but the script Is very long and I don't know which part could make to crash. However then I will edit the message with the script. Commented Jul 17 at 19:55

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.