[QGIS-Developer] QGIS3: Python QgsFeatureRenderer subclass problem
Chris Crook
ccrook at linz.govt.nz
Wed Feb 7 23:18:34 PST 2018
Continued: Ok, understand a bit more now. Still not sure where the clone should be created but if the same renderer is called from more than one thread, as the first time startRender is called it sets the thread id for the rendererer, and thereafter cannot be called with a different thread id. So issue could either be if startRender does not invoke super.startRender (to set thread id) or if called from two threads.
________________________________________
From: QGIS-Developer [qgis-developer-bounces at lists.osgeo.org] on behalf of Chris Crook
Sent: 08 February 2018 08:45
To: qgis-developer at lists.osgeo.org
Subject: [QGIS-Developer] QGIS3: Python QgsFeatureRenderer subclass problem
I am converting a python plugin the implements a subclass of QgsFeatureRenderer. At the moment the plugin is dying on the startRender function with the message (from the base class)
"ASSERT failure in QgsFeatureRenderer::renderFeature: \"renderFeature called in a different thread - use a cloned renderer instead\"
I can't see where I should be creating the cloned renderer for the rendering. I had a look at the QgsSingleSymbolRenderer C++ code and I can't see anything there, so I'm wondering if the python implementation in some way corrupts the multiprocessing implementation. Can anyone offer any suggestions
________________________________
This message contains information, which may be in confidence and may be subject to legal privilege. If you are not the intended recipient, you must not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify us immediately (Phone 0800 665 463 or info at linz.govt.nz) and destroy the original message. LINZ accepts no responsibility for changes to this email, or for any attachments, after its transmission from LINZ. Thank You.
_______________________________________________
QGIS-Developer mailing list
QGIS-Developer at lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
More information about the QGIS-Developer
mailing list