Bug report #12787

Crash when not selecting layer in Value Relation edit widget

Added by Jakob Hvitnov almost 9 years ago. Updated almost 9 years ago.

Assignee:Jakob Hvitnov
Category:Edit widget
Affected QGIS version:2.8.2 Regression?:No
Operating System:Ubuntu Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:Yes Copied to github as #:20885


Reproducible crash (SIGSEV2 segmentation fault) when selecting the "Value Relation" type of edit widget and exiting the properties dialog without selecting values in the "Layer" select box and pressing ok. (see attached image)
Probably related to QgsValueRelationConfigDlg not accepting a NULL value in that field.

Having a Value Relation edit widget is not really useful, so a possible fix is to not allow pressing the ok button before a layer is selected.

Below is the debugger output when from a crash
0 QString::QString qstring.h 725 0x819b923
1 QgsMapLayer::id qgsmaplayer.cpp 101 0xb4e9dec5
2 QgsValueRelationConfigDlg::config qgsvaluerelationconfigdlg.cpp 35 0xb475f245
3 QgsAttributeTypeDialog::editorWidgetV2Config qgsattributetypedialog.cpp 121 0x8226ce1
4 QgsFieldsProperties::attributeTypeDialog qgsfieldsproperties.cpp 465 0x82a7736
5 QgsFieldsProperties::qt_static_metacall moc_qgsfieldsproperties.cxx 91 0x852fc6c
6 QMetaObject::activate(QObject*, QMetaObject const*, int, void**) /usr/lib/i386-linux-gnu/libQtCore.so.4 0xb3f350f7
7 QAbstractButton::pressed() /usr/lib/i386-linux-gnu/libQtGui.so.4 0xb3b29015
8 ?? /usr/lib/i386-linux-gnu/libQtGui.so.4 0xb3843b61
9 QAbstractButton::mousePressEvent(QMouseEvent*) /usr/lib/i386-linux-gnu/libQtGui.so.4 0xb3844232
10 QWidget::event(QEvent*) /usr/lib/i386-linux-gnu/libQtGui.so.4 0xb34861e3
11 QAbstractButton::event(QEvent*) /usr/lib/i386-linux-gnu/libQtGui.so.4 0xb3845f42
12 QPushButton::event(QEvent*) /usr/lib/i386-linux-gnu/libQtGui.so.4 0xb38e0aec
13 QApplicationPrivate::notify_helper(QObject*, QEvent*) /usr/lib/i386-linux-gnu/libQtGui.so.4 0xb342c7f4
14 QApplication::notify(QObject*, QEvent*) /usr/lib/i386-linux-gnu/libQtGui.so.4 0xb3434ea0
15 QgsApplication::notify qgsapplication.cpp 253 0xb4dbf8e5
16 QCoreApplication::notifyInternal(QObject*, QEvent*) /usr/lib/i386-linux-gnu/libQtCore.so.4 0xb3f1fe4a
17 QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) /usr/lib/i386-linux-gnu/libQtGui.so.4 0xb3432b53
18 ?? /usr/lib/i386-linux-gnu/libQtGui.so.4 0xb34b6778
19 QApplication::x11ProcessEvent(_XEvent*) /usr/lib/i386-linux-gnu/libQtGui.so.4 0xb34b5ec5
20 ?? /usr/lib/i386-linux-gnu/libQtGui.so.4 0xb34e1524

valueRelationBug.png (53 KB) Jakob Hvitnov, 2015-05-20 06:20 AM

Associated revisions

Revision df039ee2
Added by Jakob Hvitnov almost 9 years ago

fix #12787 (Value Relation edit widget related crash)

Revision c33b9fa1
Added by Martin Dobias almost 9 years ago

Merge pull request #2049 from Hvitnov/fix12787

fix #12787 (Value Relation edit widget related crash)


#1 Updated by Jakob Hvitnov almost 9 years ago

  • Assignee set to Jakob Hvitnov

#2 Updated by Martin Dobias almost 9 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF