View Issue Details

IDProjectCategoryView StatusLast Update
0000029QElectroTechwebsitepublic2021-02-15 00:51
Reporterxavier Assigned Toxavier  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Platformi386OSWindows XP + Qt 4.5.2 
Product Version0.2 
Target Version0.21Fixed in Version0.21 
Summary0000029: Crash après avoir double-cliquer sur un onglet
DescriptionL'application se plante (Segmentation Fault) après avoir double-cliquer sur un onglet.
Steps To ReproduceLancer QElectroTech - on obtient alors un projet par défaut avec un schéma
Double-cliquer sur l'onglet du schéma - le dialogue d'édition des propriétés du schéma apparaît alors
Faire annuler
Double-cliquer à nouveau
L'application devrait se crasher
Additional InformationCe bug ne semble se produire que sous Windows avec Qt 4.5.2.
BackTrace :
#0 0x01cc2b15 in QTabBarPrivate::_q_moveTabFinished (this=0x82c3e58, index=0) at widgets/qtabbar.cpp:1847
0000001 0x01cc1b44 in QTabBar::mousePressEvent (this=0x82c3e18, event=0x22c28c) at widgets/qtabbar.cpp:1699
0000002 0x004fbbe7 in QETTabBar::mousePressEvent (this=0x82c3e18, event=0x22c28c) at sources/qettabbar.cpp:163
0000003 0x018080c9 in QWidget::event (this=0x82c3e18, event=0x22c28c) at kernel/qwidget.cpp:7545
0000004 0x01cc052a in QTabBar::event (this=0x82c3e18, event=0x22c28c) at widgets/qtabbar.cpp:1453
0000005 0x017a85c7 in QApplicationPrivate::notify_helper (this=0x3e76c8, receiver=0x82c3e18, e=0x22c28c)
    at kernel/qapplication.cpp:4056
0000006 0x017a702e in QApplication::notify (this=0x22fd50, receiver=0x82c3e18, e=0x22c28c) at kernel/qapplication.cpp:3758
0000007 0x6a2427ac in QCoreApplication::notifyInternal (this=0x22fd50, receiver=0x82c3e18, event=0x22c28c)
    at kernel/qcoreapplication.cpp:610
0000008 0x01f58414 in QCoreApplication::sendSpontaneousEvent (receiver=0x82c3e18, event=0x22c28c)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
0000009 0x017a5369 in QApplicationPrivate::sendMouseEvent (receiver=0x82c3e18, event=0x22c28c, alienWidget=0x82c3e18,
    nativeWidget=0x69b7458, buttonDown=0x218039c, lastMouseReceiver=@0x21803a0) at kernel/qapplication.cpp:2924
0000010 0x0181efcd in QETWidget::translateMouseEvent (this=0x69b7458, msg=@0x22db0c) at kernel/qapplication_win.cpp:3262
0000011 0x01818f0f in QtWndProc (hwnd=0x30290, message=513, wParam=1, lParam=5505349) at kernel/qapplication_win.cpp:1667
0000012 0x7e398734 in USER32!GetDC () from C:\WINDOWS\system32\user32.dll
0000013 0x00030290 in operator+ ()
0000014 0x00000201 in ?? ()
0000015 0x00000001 in ?? ()
0000016 0x00540145 in PartLine::toXml (this=0x30290, xml_document=@0x201) at sources/editor/partline.cpp:168
0000017 0x7e398816 in USER32!GetDC () from C:\WINDOWS\system32\user32.dll
0000018 0x018182ba in qt_is_translatable_mouse_event (message=0) at kernel/qapplication_win.cpp:1439
0000019 0x7e3989cd in USER32!GetWindowLongW () from C:\WINDOWS\system32\user32.dll
0000020 0x00000000 in ?? ()

Malgré le passage par une méthode de la classe QETTabBar, il semble bien s'agir d'un bug dans la biliothèque QtGui4.
TagsNo tags attached.

Activities

xavier

2009-09-13 15:36

reporter   ~0000050

Le bug semble avoir été déjà repéré, notamment au sein du projet KDE :
  * http://osdir.com/ml/kde-bugs-dist/2009-09/msg02277.html
  * http://osdir.com/ml/kde-bugs-dist/2009-09/msg00661.html
  * http://reviewboard.kde.org/r/1017/

D'après ce dernier lien, cela serait dû à une certaine confusion entre bouton gauche et bouton du milieu de la souris.
Après test, il est possible de ne pas provoquer le crash en utilisant le clic droit (ou le bouton du milieu, mais c'est moins pratique) sur les onglets.
Exemple : pour éditer les propriétés du schéma en cours, double-cliquer avec le bouton droit sur l'onglet.

xavier

2009-10-01 21:49

reporter   ~0000052

Le bug semble corrigé sous Qt 4.5.3. Les builds Windows utilisent Qt 4.5.3 à partir de la révision 755 ; sinon il est possible de simplement remplacer les dll de Qt 4.5.2 par celles de Qt 4.5.3.

Issue History

Date Modified Username Field Change
2009-09-13 15:21 xavier New Issue
2009-09-13 15:21 xavier Status new => assigned
2009-09-13 15:21 xavier Assigned To => xavier
2009-09-13 15:36 xavier Note Added: 0000050
2009-10-01 21:49 xavier Note Added: 0000052
2009-10-01 21:49 xavier Status assigned => closed
2009-10-01 21:49 xavier Resolution open => fixed
2009-10-01 21:49 xavier Fixed in Version => 0.21
2013-06-09 14:06 scorpio810 Category Éditeur d'éléments => Symbol editor
2013-06-09 14:11 scorpio810 Category Symbol editor => Element Editor
2021-02-15 00:51 user245 Category Element Editor => website