Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-25226

Scxml editor crashes when opening a context menu

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P1: Critical
    • None
    • Qt Creator 4.14.0
    • SCXML support
    • None

    Description

      Steps to reproduce:

      1. Create a new scxml state chart and create a state node.
      2. Select "transition" from context menu. This will create a targetless transition.
      3. Locate the added transition arrow. Move mouse cursor ~1cm to the right of the arrow and RMB. You should crash with the following call stack:

      1  QFlags<Qt::WindowType>::operator&                      qflags.h                   146   0x7ffff7420e53 
      2  QWidget::windowType                                    qwidget.h                  769   0x7ffff742014b 
      3  QWidget::isWindow                                      qwidget.h                  777   0x7ffff7420174 
      4  QWidget::window                                        qwidget.cpp                4139  0x7ffff74586a2 
      5  QWidgetTextControlPrivate::contextMenuEvent            qwidgettextcontrol.cpp     1945  0x7ffff769dc29 
      6  QWidgetTextControl::processEvent                       qwidgettextcontrol.cpp     1133  0x7ffff769a3e5 
      7  QWidgetTextControl::processEvent                       qwidgettextcontrol.cpp     998   0x7ffff7699821 
      8  QGraphicsTextItemPrivate::sendControlEvent             qgraphicsitem.cpp          9966  0x7ffff78095a2 
      9  QGraphicsTextItem::contextMenuEvent                    qgraphicsitem.cpp          10405 0x7ffff7800b29 
      10 QGraphicsItem::sceneEvent                              qgraphicsitem.cpp          6898  0x7ffff77f9934 
      11 QGraphicsTextItem::sceneEvent                          qgraphicsitem.cpp          10280 0x7ffff7800550 
      12 QGraphicsScenePrivate::sendEvent                       qgraphicsscene.cpp         1258  0x7ffff7822acc 
      13 QGraphicsScene::contextMenuEvent                       qgraphicsscene.cpp         3603  0x7ffff7829330 
      14 QGraphicsScene::event                                  qgraphicsscene.cpp         3390  0x7ffff782874b 
      15 QApplicationPrivate::notify_helper                     qapplication.cpp           3632  0x7ffff741c859 
      16 QApplication::notify                                   qapplication.cpp           2972  0x7ffff7419d0f 
      17 QCoreApplication::notifyInternal2                      qcoreapplication.cpp       1064  0x7ffff6319378 
      18 QCoreApplication::sendEvent                            qcoreapplication.cpp       1459  0x7ffff6319d10 
      19 QGraphicsView::contextMenuEvent                        qgraphicsview.cpp          3040  0x7ffff7862c92 
      20 QWidget::event                                         qwidget.cpp                8823  0x7ffff746668b 
      21 QFrame::event                                          qframe.cpp                 550   0x7ffff7555ae3 
      22 QAbstractScrollArea::viewportEvent                     qabstractscrollarea.cpp    1095  0x7ffff7559694 
      23 QGraphicsView::viewportEvent                           qgraphicsview.cpp          3014  0x7ffff7862aa0 
      24 QAbstractScrollAreaPrivate::viewportEvent              qabstractscrollarea_p.h    111   0x7ffff755aa6b 
      25 QAbstractScrollAreaFilter::eventFilter                 qabstractscrollarea_p.h    122   0x7ffff755ab38 
      26 QCoreApplicationPrivate::sendThroughObjectEventFilters qcoreapplication.cpp       1190  0x7ffff631979d 
      27 QApplicationPrivate::notify_helper                     qapplication.cpp           3626  0x7ffff741c82d 
      28 QApplication::notify                                   qapplication.cpp           3238  0x7ffff741af07 
      29 QCoreApplication::notifyInternal2                      qcoreapplication.cpp       1064  0x7ffff6319378 
      30 QCoreApplication::forwardEvent                         qcoreapplication.cpp       1079  0x7ffff6319404 
      31 QWidgetWindow::handleMouseEvent                        qwidgetwindow.cpp          691   0x7ffff7494f7e 
      32 QWidgetWindow::event                                   qwidgetwindow.cpp          300   0x7ffff74936ea 
      33 QApplicationPrivate::notify_helper                     qapplication.cpp           3632  0x7ffff741c859 
      34 QApplication::notify                                   qapplication.cpp           2972  0x7ffff7419d0f 
      35 QCoreApplication::notifyInternal2                      qcoreapplication.cpp       1064  0x7ffff6319378 
      36 QCoreApplication::sendSpontaneousEvent                 qcoreapplication.cpp       1471  0x7ffff6319d4a 
      37 QGuiApplicationPrivate::processMouseEvent              qguiapplication.cpp        2282  0x7ffff6ab0dcb 
      38 QGuiApplicationPrivate::processWindowSystemEvent       qguiapplication.cpp        2002  0x7ffff6ab0019 
      39 QWindowSystemInterface::sendWindowSystemEvents         qwindowsysteminterface.cpp 1169  0x7ffff6a906a2 
      40 xcbSourceDispatch                                      qxcbeventdispatcher.cpp    105   0x7fffe50f0167 
      41 g_main_context_dispatch                                                                 0x7ffff2fb796f 
      42 g_main_context_iterate.constprop                                                        0x7ffff3009758 
      43 g_main_context_iteration                                                                0x7ffff2fb4d43 
      44 QEventDispatcherGlib::processEvents                    qeventdispatcher_glib.cpp  423   0x7ffff63a82c6 
      45 QXcbGlibEventDispatcher::processEvents                 qxcbeventdispatcher.cpp    143   0x7fffe50f0384 
      46 QEventLoop::processEvents                              qeventloop.cpp             139   0x7ffff6315e5f 
      47 QEventLoop::exec                                       qeventloop.cpp             232   0x7ffff631616c 
      48 QCoreApplication::exec                                 qcoreapplication.cpp       1372  0x7ffff6319b67 
      49 QGuiApplication::exec                                  qguiapplication.cpp        1867  0x7ffff6aafa7c 
      50 QApplication::exec                                     qapplication.cpp           2824  0x7ffff741970f 
      51 main                                                   main.cpp                   745   0x40e74d       
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              jkobus Jarek Kobus
              jkobus Jarek Kobus
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes