[QGIS-Developer] QGIS3: Python QgsFeatureRenderer subclass problem

Chris Crook ccrook at linz.govt.nz
Wed Feb 7 11:44:48 PST 2018


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.


More information about the QGIS-Developer mailing list