@@ -442,7 +442,8 @@ void QgsVectorLayer::reload()
442
442
443
443
QgsMapLayerRenderer *QgsVectorLayer::createMapRenderer ( QgsRenderContext &rendererContext )
444
444
{
445
- QGIS_PROTECT_QOBJECT_THREAD_ACCESS
445
+ // non fatal for now -- the "rasterize" processing algorithm is not thread safe and calls this
446
+ QGIS_PROTECT_QOBJECT_THREAD_ACCESS_NON_FATAL
446
447
447
448
return new QgsVectorLayerRenderer ( this , rendererContext );
448
449
}
@@ -720,14 +721,16 @@ void QgsVectorLayer::reselect()
720
721
721
722
QgsVectorDataProvider *QgsVectorLayer::dataProvider ()
722
723
{
723
- QGIS_PROTECT_QOBJECT_THREAD_ACCESS
724
+ // non fatal for now -- the "rasterize" processing algorithm is not thread safe and calls this
725
+ QGIS_PROTECT_QOBJECT_THREAD_ACCESS_NON_FATAL
724
726
725
727
return mDataProvider ;
726
728
}
727
729
728
730
const QgsVectorDataProvider *QgsVectorLayer::dataProvider () const
729
731
{
730
- QGIS_PROTECT_QOBJECT_THREAD_ACCESS
732
+ // non fatal for now -- the "rasterize" processing algorithm is not thread safe and calls this
733
+ QGIS_PROTECT_QOBJECT_THREAD_ACCESS_NON_FATAL
731
734
732
735
return mDataProvider ;
733
736
}
@@ -778,7 +781,8 @@ void QgsVectorLayer::setDiagramRenderer( QgsDiagramRenderer *r )
778
781
779
782
QgsWkbTypes::GeometryType QgsVectorLayer::geometryType () const
780
783
{
781
- QGIS_PROTECT_QOBJECT_THREAD_ACCESS
784
+ // non fatal for now -- the "rasterize" processing algorithm is not thread safe and calls this
785
+ QGIS_PROTECT_QOBJECT_THREAD_ACCESS_NON_FATAL
782
786
783
787
return QgsWkbTypes::geometryType ( mWkbType );
784
788
}
@@ -853,7 +857,8 @@ QgsRectangle QgsVectorLayer::boundingBoxOfSelected() const
853
857
854
858
bool QgsVectorLayer::labelsEnabled () const
855
859
{
856
- QGIS_PROTECT_QOBJECT_THREAD_ACCESS
860
+ // non fatal for now -- the "rasterize" processing algorithm is not thread safe and calls this
861
+ QGIS_PROTECT_QOBJECT_THREAD_ACCESS_NON_FATAL
857
862
858
863
return mLabelsEnabled && static_cast < bool >( mLabeling );
859
864
}
@@ -867,7 +872,8 @@ void QgsVectorLayer::setLabelsEnabled( bool enabled )
867
872
868
873
bool QgsVectorLayer::diagramsEnabled () const
869
874
{
870
- QGIS_PROTECT_QOBJECT_THREAD_ACCESS
875
+ // non fatal for now -- the "rasterize" processing algorithm is not thread safe and calls this
876
+ QGIS_PROTECT_QOBJECT_THREAD_ACCESS_NON_FATAL
871
877
872
878
if ( !mDiagramRenderer || !mDiagramLayerSettings )
873
879
return false ;
@@ -1125,7 +1131,8 @@ bool QgsVectorLayer::setSubsetString( const QString &subset )
1125
1131
1126
1132
bool QgsVectorLayer::simplifyDrawingCanbeApplied ( const QgsRenderContext &renderContext, QgsVectorSimplifyMethod::SimplifyHint simplifyHint ) const
1127
1133
{
1128
- QGIS_PROTECT_QOBJECT_THREAD_ACCESS
1134
+ // non fatal for now -- the "rasterize" processing algorithm is not thread safe and calls this
1135
+ QGIS_PROTECT_QOBJECT_THREAD_ACCESS_NON_FATAL
1129
1136
1130
1137
if ( isValid () && mDataProvider && !mEditBuffer && ( isSpatial () && geometryType () != QgsWkbTypes::PointGeometry ) && ( mSimplifyMethod .simplifyHints () & simplifyHint ) && renderContext.useRenderingOptimization () )
1131
1138
{
@@ -3720,7 +3727,8 @@ bool QgsVectorLayer::deleteFeatures( const QgsFeatureIds &fids, QgsVectorLayer::
3720
3727
3721
3728
QgsFields QgsVectorLayer::fields () const
3722
3729
{
3723
- QGIS_PROTECT_QOBJECT_THREAD_ACCESS
3730
+ // non fatal for now -- the "rasterize" processing algorithm is not thread safe and calls this
3731
+ QGIS_PROTECT_QOBJECT_THREAD_ACCESS_NON_FATAL
3724
3732
3725
3733
return mFields ;
3726
3734
}
@@ -3921,7 +3929,8 @@ int QgsVectorLayer::selectedFeatureCount() const
3921
3929
3922
3930
const QgsFeatureIds &QgsVectorLayer::selectedFeatureIds () const
3923
3931
{
3924
- QGIS_PROTECT_QOBJECT_THREAD_ACCESS
3932
+ // non fatal for now -- the "rasterize" processing algorithm is not thread safe and calls this
3933
+ QGIS_PROTECT_QOBJECT_THREAD_ACCESS_NON_FATAL
3925
3934
3926
3935
return mSelectedFeatureIds ;
3927
3936
}
@@ -4051,7 +4060,8 @@ bool QgsVectorLayer::isEditable() const
4051
4060
4052
4061
bool QgsVectorLayer::isSpatial () const
4053
4062
{
4054
- QGIS_PROTECT_QOBJECT_THREAD_ACCESS
4063
+ // non fatal for now -- the "rasterize" processing algorithm is not thread safe and calls this
4064
+ QGIS_PROTECT_QOBJECT_THREAD_ACCESS_NON_FATAL
4055
4065
4056
4066
QgsWkbTypes::GeometryType t = geometryType ();
4057
4067
return t != QgsWkbTypes::NullGeometry && t != QgsWkbTypes::UnknownGeometry;
@@ -4187,7 +4197,8 @@ void QgsVectorLayer::removeFeatureRendererGenerator( const QString &id )
4187
4197
4188
4198
QList<const QgsFeatureRendererGenerator *> QgsVectorLayer::featureRendererGenerators () const
4189
4199
{
4190
- QGIS_PROTECT_QOBJECT_THREAD_ACCESS
4200
+ // non fatal for now -- the "rasterize" processing algorithm is not thread safe and calls this
4201
+ QGIS_PROTECT_QOBJECT_THREAD_ACCESS_NON_FATAL
4191
4202
4192
4203
QList< const QgsFeatureRendererGenerator * > res;
4193
4204
for ( const QgsFeatureRendererGenerator *generator : mRendererGenerators )
@@ -4996,7 +5007,8 @@ void QgsVectorLayer::setFeatureBlendMode( QPainter::CompositionMode featureBlend
4996
5007
4997
5008
QPainter::CompositionMode QgsVectorLayer::featureBlendMode () const
4998
5009
{
4999
- QGIS_PROTECT_QOBJECT_THREAD_ACCESS
5010
+ // non fatal for now -- the "rasterize" processing algorithm is not thread safe and calls this
5011
+ QGIS_PROTECT_QOBJECT_THREAD_ACCESS_NON_FATAL
5000
5012
5001
5013
return mFeatureBlendMode ;
5002
5014
}
0 commit comments