Please sign in to comment.
Fix "wrapped object has been deleted" errors in Processing
Ownership of Python subclass algorithm instances was getting mangled due to passing through multiple functions with /Factory/ annotations. As per Phil Thomson's advice on https://www.riverbankcomputing.com/pipermail/pyqt/2017-July/039450.html: " /Factory/ is used when the instance returned is guaranteed to be new to Python. In this case it isn't because it has already been seen when being returned by createInstance(). (However for a different sub-class implemented in C++ then it would be the first time it was seen by Python so the /Factory/ on create() would be correct.) You might try using /TransferBack/ on create() instead - that might be the best compromise. " Changing to /TransferBack/ indeed fixes the error for me.
- Loading branch information
Showing with 38 additions and 20 deletions.