Open roya0045 opened 3 days ago
Ok I found the issue, this is caused by the delete
call in the function.
The fix is to create a clone of the symbology.
Imo the fix would be to at least add the documentation to prevent this kind of error, it's not clear that the provided QgsSymbol should not be an existant symbol. The example of using clone()
would be better as making this happen in python isn't clear.
What is the bug or the crash?
When trying to update a symbol of a given layer from a Processing Script, calling the function
setLegendSymbolItem
on the renderer or a clone of the renderer. I always get a hard crash. When disabling this function from my processing function, everything runs fine.Steps to reproduce the issue
Use the following script
Versions
Tested in Win 10 with 3.37 & 3.35, no recent change seem to affect that area of code.
Supported QGIS version
New profile
Additional context
No response