Bug report #15418

QGIS crashes when loading a rule based QML file

Added by Luiz Andrade over 8 years ago. Updated over 8 years ago.

Status:Closed
Priority:Severe/Regression
Assignee:-
Category:Symbology
Affected QGIS version:2.14.5 Regression?:No
Operating System:Kubuntu Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed/implemented
Crashes QGIS or corrupts data:Yes Copied to github as #:23346

Description

QGIS 2.14.5 is crashing when loading a rule based QML file. I'm working on Kubuntu 14.04 with QGIS 2.14.5 LTR.
Running QGIS on terminal gives me this:
Fatal: ASSERT: "!mSettings == subProviders.contains( this )" in file /tmp/buildd/qgis-2.14.5+20trusty/src/core/qgsrulebasedlabeling.cpp, line 269
Stacktrace (piped through c++filt):
/usr/bin/qgis.bin[0x40a440]
/usr/bin/qgis.bin[0x40a548]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(qt_message_output(QtMsgType, char const*)+0x21)[0x7fea608e3bb1]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x70ff9)[0x7fea608e3ff9]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(qFatal(char const*, ...)+0x94)[0x7fea608e4804]
/usr/lib/libqgis_core.so.2.14.5(QgsRuleBasedLabeling::Rule::registerFeature(QgsFeature&, QgsRenderContext&, QMap<QgsRuleBasedLabeling::Rule*, QgsVectorLayerLabelProvider*>&, QgsGeometry*)+0xd5)[0x7fea6121c105]
/usr/lib/libqgis_core.so.2.14.5(+0x532c88)[0x7fea6128ac88]
/usr/lib/libqgis_core.so.2.14.5(+0x5341a4)[0x7fea6128c1a4]
/usr/lib/libqgis_core.so.2.14.5(QgsMapRendererParallelJob::renderLayerStatic(LayerRenderJob&)+0x47)[0x7fea6117f107]
/usr/lib/libqgis_core.so.2.14.5(+0x428360)[0x7fea61180360]
/usr/lib/libqgis_core.so.2.14.5(+0x4283b7)[0x7fea611803b7]
/usr/lib/libqgis_core.so.2.14.5(+0x42879d)[0x7fea6118079d]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QtConcurrent::ThreadEngineBase::run()+0x35)[0x7fea608e0005]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x6efee)[0x7fea608e1fee]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x7b32f)[0x7fea608ee32f]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x8182)[0x7fea59035182]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7fea5f3db47d]
Aborted (core dumped)

drenagem.sqlite - Database used to reproduce the crash (2.76 MB) Luiz Andrade, 2016-08-10 09:49 AM

hid_trecho_drenagem_l.qml - QML file used to make QGIS crash (load in the layer present in the attached sqlite file) (73.1 KB) Luiz Andrade, 2016-08-10 09:49 AM

Associated revisions

Revision 41225131
Added by Nyall Dawson over 8 years ago

Remove cryptic assert (was failing regularly; fixes #15418)

(cherry picked from commit b1b439f5cc4f709db9839d0ab8209346defe4bb7)

History

#2 Updated by Nyall Dawson over 8 years ago

  • Status changed from Open to Closed

#3 Updated by Jürgen Fischer over 8 years ago

  • Status changed from Closed to In Progress

My assert, my cherry-pick. ;)

#4 Updated by Jürgen Fischer over 8 years ago

  • Resolution set to fixed/implemented
  • Status changed from In Progress to Closed

Also available in: Atom PDF