View Issue Details

IDProjectCategoryView StatusLast Update
0000031QElectroTechwebsitepublic2021-02-15 00:50
Reporterscorpio810_mantis Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Summary0000031: segfault
DescriptionSur la sélection couleur "Couleurs nommées" d'un conducteur avec le widget kde Qet se crash avec une erreur de segmentation .

Qt : 4.6.2
plate-forme de développement de KDE : 4.4.2 (KDE 4.4.2)

[New Thread 15705]
Core was generated by `qelectrotech'.
Program terminated with signal 11, Segmentation fault.
#0 0x00007fdcc81c224e in KLocale::insertCatalog(QString const&) () from /usr/lib/libkdecore.so.5
#0 0x00007fdcc81c224e in KLocale::insertCatalog(QString const&) () from /usr/lib/libkdecore.so.5
0000001 0x00007fdcc863d2be in ?? () from /usr/lib/libkdeui.so.5
0000002 0x00007fdcc863e27b in ?? () from /usr/lib/libkdeui.so.5
0000003 0x00007fdcc863e9be in ?? () from /usr/lib/libkdeui.so.5
0000004 0x00007fdcc863eb12 in ?? () from /usr/lib/libkdeui.so.5
0000005 0x00007fdccdd54c4f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
0000006 0x00007fdcce94d385 in QComboBox::activated(QString const&) () from /usr/lib/libQtGui.so.4
0000007 0x00007fdcce94ed34 in ?? () from /usr/lib/libQtGui.so.4
0000008 0x00007fdcce951bf7 in ?? () from /usr/lib/libQtGui.so.4
0000009 0x00007fdcce956b57 in QComboBox::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libQtGui.so.4
0000010 0x00007fdcc87a0c85 in KComboBox::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkdeui.so.5
0000011 0x00007fdccdd54c4f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
0000012 0x00007fdccec1dad2 in ?? () from /usr/lib/libQtGui.so.4
0000013 0x00007fdcce94ffdb in ?? () from /usr/lib/libQtGui.so.4
0000014 0x00007fdccdd41337 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
0000015 0x00007fdcce5828cc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
0000016 0x00007fdcce5895ab in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
0000017 0x00007fdccdd41f1c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
0000018 0x00007fdcce58878e in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/libQtGui.so.4
0000019 0x00007fdcce60884d in ?? () from /usr/lib/libQtGui.so.4
0000020 0x00007fdcce606d3c in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
0000021 0x00007fdcce6327e2 in ?? () from /usr/lib/libQtGui.so.4
0000022 0x00007fdccc5a56c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
0000023 0x00007fdccc5a9538 in ?? () from /lib/libglib-2.0.so.0
0000024 0x00007fdccc5a96ec in g_main_context_iteration () from /lib/libglib-2.0.so.0
0000025 0x00007fdccdd6b373 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
0000026 0x00007fdcce6323de in ?? () from /usr/lib/libQtGui.so.4
0000027 0x00007fdccdd40842 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
0000028 0x00007fdccdd40c1c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
0000029 0x00007fdccea4b65e in QDialog::exec() () from /usr/lib/libQtGui.so.4
0000030 0x00007fdccea486f2 in QColorDialog::getColor(QColor const&, QWidget*, QString const&, QFlags<QColorDialog::ColorDialogOption>) () from /usr/lib/libQtGui.so.4
0000031 0x00007fdccea4885f in QColorDialog::getColor(QColor const&, QWidget*) () from /usr/lib/libQtGui.so.4
0000032 0x0000000000442a65 in ?? ()
0000033 0x0000000000529016 in ?? ()
0000034 0x00007fdccdd54c4f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
0000035 0x00007fdccec1cc32 in QAbstractButton::clicked(bool) () from /usr/lib/libQtGui.so.4
0000036 0x00007fdcce936a9b in ?? () from /usr/lib/libQtGui.so.4
0000037 0x00007fdcce93793b in ?? () from /usr/lib/libQtGui.so.4
0000038 0x00007fdcce937bac in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQtGui.so.4
0000039 0x00007fdcce5d8c42 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
0000040 0x00007fdcce5828fc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
0000041 0x00007fdcce5895ab in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
0000042 0x00007fdccdd41f1c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
0000043 0x00007fdcce58878e in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/libQtGui.so.4
0000044 0x00007fdcce6083cb in ?? () from /usr/lib/libQtGui.so.4
0000045 0x00007fdcce606d3c in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
0000046 0x00007fdcce6327e2 in ?? () from /usr/lib/libQtGui.so.4
0000047 0x00007fdccc5a56c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
0000048 0x00007fdccc5a9538 in ?? () from /lib/libglib-2.0.so.0
0000049 0x00007fdccc5a96ec in g_main_context_iteration () from /lib/libglib-2.0.so.0
0000050 0x00007fdccdd6b373 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
0000051 0x00007fdcce6323de in ?? () from /usr/lib/libQtGui.so.4
0000052 0x00007fdccdd40842 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
0000053 0x00007fdccdd40c1c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
0000054 0x00007fdccea4b65e in QDialog::exec() () from /usr/lib/libQtGui.so.4
0000055 0x000000000046b1bb in ?? ()
0000056 0x000000000052d56d in ?? ()
0000057 0x00007fdccdd54c4f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
0000058 0x00007fdcce57c702 in QAction::triggered(bool) () from /usr/lib/libQtGui.so.4
0000059 0x00007fdcce57e77b in QAction::activate(QAction::ActionEvent) () from /usr/lib/libQtGui.so.4
#60 0x00007fdcce9378fa in ?? () from /usr/lib/libQtGui.so.4
0000061 0x00007fdcce937bac in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQtGui.so.4
0000062 0x00007fdccea03c8a in QToolButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQtGui.so.4
0000063 0x00007fdcce5d8c42 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
0000064 0x00007fdcce5828fc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
0000065 0x00007fdcce5895ab in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
0000066 0x00007fdccdd41f1c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
0000067 0x00007fdcce58878e in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/libQtGui.so.4
0000068 0x00007fdcce6083cb in ?? () from /usr/lib/libQtGui.so.4
0000069 0x00007fdcce606d3c in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
0000070 0x00007fdcce6327e2 in ?? () from /usr/lib/libQtGui.so.4
0000071 0x00007fdccc5a56c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
0000072 0x00007fdccc5a9538 in ?? () from /lib/libglib-2.0.so.0
0000073 0x00007fdccc5a96ec in g_main_context_iteration () from /lib/libglib-2.0.so.0
0000074 0x00007fdccdd6b373 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
0000075 0x00007fdcce6323de in ?? () from /usr/lib/libQtGui.so.4
0000076 0x00007fdccdd40842 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
0000077 0x00007fdccdd40c1c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
0000078 0x00007fdccdd4495b in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
0000079 0x00000000004a35af in ?? ()
0000080 0x00007fdccd0e2abd in __libc_start_main () from /lib/libc.so.6
0000081 0x000000000042be09 in ?? ()
0000082 0x00007fff15b04f88 in ?? ()
0000083 0x000000000000001c in ?? ()
0000084 0x0000000000000001 in ?? ()
0000085 0x00007fff15b06566 in ?? ()
0000086 0x0000000000000000 in ?? ()
TagsNo tags attached.

Activities

xavier

2010-04-23 23:35

reporter   ~0000057

Comme tend à le suggérer la StackTrace, il s'agit d'un problème au niveau de KDE voire Qt. Si ce bug n'est pas résolu par KDE / Nokia, il faudra utiliser la méthode setOption(QColorDialog::DontUseNativeDialog, true) de la classe QColorDialog pour éviter d'appeler le dialogue KDE natif.

xavier

2010-04-23 23:51

reporter   ~0000058

patch itself:
Index: sources/conductorpropertieswidget.cpp
===================================================================
--- sources/conductorpropertieswidget.cpp (révision 959)
+++ sources/conductorpropertieswidget.cpp (copie de travail)
@@ -146,9 +146,10 @@
        Demande a l'utilisateur de choisir une couleur via un dialogue approprie.
 */
 void ConductorPropertiesWidget::chooseColor() {
- QColor user_chosen_color = QColorDialog::getColor(properties_.color);
- if (user_chosen_color.isValid()) {
- setColorButton(user_chosen_color);
+ QColorDialog qcd(properties_.color);
+ qcd.setOption(QColorDialog::DontUseNativeDialog, true);
+ if (qcd.exec() == QDialog::Accepted) {
+ setColorButton(qcd.selectedColor());
                updateConfig();
        }
 }

xavier

2012-02-16 08:07

reporter   ~0000071

Avec KDE 4.6.5 et Qt 4.7.4, le problème ne semble plus se produire, on peut supposer qu'il a été corrigé. Peut-on fermer ce bug ?

scorpio810_mantis

2012-02-16 14:13

administrator   ~0000072

# bug clos

Issue History

Date Modified Username Field Change
2010-04-23 11:52 scorpio810_mantis New Issue
2010-04-23 23:35 xavier Note Added: 0000057
2010-04-23 23:37 xavier Status new => confirmed
2010-04-23 23:51 xavier Note Added: 0000058
2012-02-16 08:07 xavier Note Added: 0000071
2012-02-16 14:13 scorpio810_mantis Note Added: 0000072
2013-06-02 21:21 scorpio810_mantis Resolution open => fixed
2013-06-02 21:30 scorpio810_mantis Status confirmed => resolved
2013-06-09 14:08 scorpio810_mantis Category Éditeur de schémas => Diagram Editor
2021-02-15 00:46 user245 Fixed in Version => SVN/trunk
2021-02-15 00:46 user245 Product Version => SVN/trunk
2021-02-15 00:50 user245 Category Diagram Editor => website