Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when not selecting layer in Value Relation edit widget #20885

Closed
qgib opened this issue May 20, 2015 · 2 comments
Closed

Crash when not selecting layer in Value Relation edit widget #20885

qgib opened this issue May 20, 2015 · 2 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption Forms

Comments

@qgib
Copy link
Contributor

qgib commented May 20, 2015

Author Name: Jakob Hvitnov (Jakob Hvitnov)
Original Redmine Issue: 12787
Affected QGIS version: 2.8.2
Redmine category:edit_widget
Assignee: Jakob Hvitnov


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&, 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


@qgib
Copy link
Contributor Author

qgib commented May 20, 2015

Author Name: Jakob Hvitnov (Jakob Hvitnov)


Suggested fix: #2049


  • assigned_to_id was configured as Jakob Hvitnov

@qgib
Copy link
Contributor Author

qgib commented May 20, 2015

Author Name: Martin Dobias (@wonder-sk)


Fixed in changeset "c33b9fa1d5c39758313ae39c173801d0ea764655".


  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Forms Crash/Data Corruption labels May 25, 2019
@qgib qgib closed this as completed May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption Forms
Projects
None yet
Development

No branches or pull requests

1 participant