[QGIS-Developer] Can we check for "wrapped C/C++ object of type QgsLayerTreeGroup has been deleted"

Bourdon, Jean-François (DIF) Jean-Francois.Bourdon at mffp.gouv.qc.ca
Mon Aug 31 09:35:32 PDT 2020


Hi,
Well, I also get the same message, but with QgsVectorFileWriter.SaveVectorOptions() where the object it creates seem to sometime just vanish (in my case, inside a long loop).

Jean-François Bourdon, ing.f.
Analyste en télédétection
Direction des inventaires forestiers
Ministère des Forêts, de la Faune et des Parcs
5700, 4e Avenue Ouest, local A-108
Québec (Québec) G1H 6R1
Téléphone : 418 627-8669, poste 4304
jean-francois.bourdon at mffp.gouv.qc.ca
mffp.gouv.qc.ca<http://www.mffp.gouv.qc.ca/accueil.jsp>

De : QGIS-Developer [mailto:qgis-developer-bounces at lists.osgeo.org] De la part de David Erill
Envoyé : 31 août 2020 12:15
À : Richard Duivenvoorde <rdmailings at duif.net>
Cc : qgis-developer <qgis-developer at lists.osgeo.org>
Objet : Re: [QGIS-Developer] Can we check for "wrapped C/C++ object of type QgsLayerTreeGroup has been deleted"

Hi Richard,
Actually we have a similar issue with one of our plugins, so if anyone can give feedback about how to handle this situation, it would be great.
I'm talking about any kind of Qgs class, not only about QgsLayerTreeGroup:
"wrapped C/C++ object of type QgsXXX has been deleted"

Missatge de Richard Duivenvoorde <rdmailings at duif.net<mailto:rdmailings at duif.net>> del dia dl., 31 d’ag. 2020 a les 13:43:
On 2020-08-31 11:27, Richard Duivenvoorde wrote:

> OR is this specific case a QGIS issue, as creating a GroupLayer maybe
> should also create a c++ grouplayer?

Forget this part: there IS a c++ grouplayer...

Regards,

Richard
_______________________________________________
QGIS-Developer mailing list
QGIS-Developer at lists.osgeo.org<mailto:QGIS-Developer at lists.osgeo.org>
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fqgis-developer&data=02%7C01%7C%7Cdfd585565f4a4e92753c08d84dc90f38%7C8705e97737814f4790e1c84c8b884da1%7C0%7C1%7C637344873220222711&sdata=EjA4V68%2BTV03%2FYTp%2BvxWgrqrAmZUUIGCWpZtHxZfCec%3D&reserved=0>
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fqgis-developer&data=02%7C01%7C%7Cdfd585565f4a4e92753c08d84dc90f38%7C8705e97737814f4790e1c84c8b884da1%7C0%7C1%7C637344873220222711&sdata=EjA4V68%2BTV03%2FYTp%2BvxWgrqrAmZUUIGCWpZtHxZfCec%3D&reserved=0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20200831/c1786332/attachment-0001.html>


More information about the QGIS-Developer mailing list