Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-114690

Qt Designer: crash during drag and drop

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P0: Blocker
    • None
    • 6.6.0 Beta1
    • Tools: Designer
    • None
    • macOS

    Description

      Found during package testing of Qt 6.6-beta.
       
      Assistant crashes consequently if you start it up and try to drag a button onto the canvas.
       
      Stack trace:
       

      Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
      0   QtCore                               0x1036197b0 QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> >::get() const + 0 (qscopedpointer.h:111) [inlined]
      1   QtCore                               0x1036197b0 decltype(fp.get()) qGetPtrHelper<QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> > const>(QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> > const&) + 0 (qtclasshelpermacros.h:79) [inlined]
      2   QtCore                               0x1036197b0 QEventLoop::d_func() const + 0 (qeventloop.h:16) [inlined]
      3   QtCore                               0x1036197b0 QEventLoop::isRunning() const + 0 (qeventloop.cpp:254)
      4   libqcocoa.dylib                     0x10206b93c QCocoaDrag::exitDragLoop() + 24 (qcocoadrag.mm:230)
      5   libqcocoa.dylib                     0x1020b2c24 -[QNSView(Dragging) draggingSession:endedAtPoint:operation:] + 196 (qnsview_dragging.mm:267)
      6   AppKit                               0x1b1792824 -[NSCoreDragManager _dragUntilMouseUp:accepted:] + 1268
      7   AppKit                               0x1b17914d8 -[NSCoreDragManager dragImage:fromWindow:at:offset:event:pasteboard:source:slideBack:] + 1564
      8   libqcocoa.dylib                     0x10206ab3c QCocoaDrag::drag(QDrag*) + 504 (qcocoadrag.mm:122)
      9   QtGui                               0x101c89bf0 QDragManager::drag(QDrag*) + 368 (qdnd.cpp:81)
      10  QtGui                               0x101c8a0e8 QDrag::exec(QFlags<Qt::DropAction>, Qt::DropAction) + 104 (qdrag.cpp:246)
      11  QtDesigner                           0x100b9bac0 qdesigner_internal::QDesignerMimeData::execDrag(QList<QDesignerDnDItemInterface*> const&, QWidget*) + 280 (qdesigner_dnditem.cpp:197)
      12  QtDesignerComponents                 0x10115fb08 qdesigner_internal::WidgetBox::handleMousePress(QString const&, QString const&, QPoint const&) + 188 (widgetbox.cpp:112)
      13  QtCore                               0x103658ffc QtPrivate::QSlotObjectBase::call(QObject*, void**) + 28 (qobjectdefs_impl.h:422) [inlined]
      14  QtCore                               0x103658ffc void doActivate<false>(QObject*, int, void**) + 776 (qobject.cpp:3977)
      15  QtDesignerComponents                 0x101063494 qdesigner_internal::WidgetBoxTreeWidget::widgetBoxPressed(QString const&, QString const&, QPoint const&) + 56 (moc_widgetboxtreewidget.cpp:261)
      16  QtCore                               0x103658ffc QtPrivate::QSlotObjectBase::call(QObject*, void**) + 28 (qobjectdefs_impl.h:422) [inlined]
      17  QtCore                               0x103658ffc void doActivate<false>(QObject*, int, void**) + 776 (qobject.cpp:3977)
      18  QtDesignerComponents                 0x101063114 qdesigner_internal::WidgetBoxCategoryListView::widgetBoxPressed(QString const&, QString const&, QPoint const&) + 56 (moc_widgetboxcategorylistview.cpp:292)
      19  QtDesignerComponents                 0x101161f74 qdesigner_internal::WidgetBoxCategoryListView::slotPressed(QModelIndex const&) + 120 (widgetboxcategorylistview.cpp:383)
      20  QtCore                               0x103658ffc QtPrivate::QSlotObjectBase::call(QObject*, void**) + 28 (qobjectdefs_impl.h:422) [inlined]
      21  QtCore                               0x103658ffc void doActivate<false>(QObject*, int, void**) + 776 (qobject.cpp:3977)
      22  QtWidgets                           0x10272018c QAbstractItemView::pressed(QModelIndex const&) + 28 (moc_qabstractitemview.cpp:1137) [inlined]
      23  QtWidgets                           0x10272018c QAbstractItemView::mousePressEvent(QMouseEvent*) + 1156 (qabstractitemview.cpp:1839)
      24  QtWidgets                           0x1024f83e8 QWidget::event(QEvent*) + 132
      25  QtWidgets                           0x10257b7dc QFrame::event(QEvent*) + 56 (qframe.cpp:515)
      26  QtWidgets                           0x10271fc98 QAbstractItemView::viewportEvent(QEvent*) + 972 (qabstractitemview.cpp:1772)
      27  QtCore                               0x10360fdd0 QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) + 244 (qcoreapplication.cpp:1250)
      28  QtWidgets                           0x1024af49c QApplicationPrivate::notify_helper(QObject*, QEvent*) + 240 (qapplication.cpp:3281)
      29  QtWidgets                           0x1024b14dc QApplication::notify(QObject*, QEvent*) + 5060 (qapplication.cpp:2774)
      30  QtCore                               0x10360fafc QCoreApplication::notifyInternal2(QObject*, QEvent*) + 292 (qcoreapplication.cpp:1118)
      31  QtWidgets                           0x1024afa5c QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) + 808 (qapplication.cpp:2358)
      32  QtWidgets                           0x10250d370 QWidgetWindow::handleMouseEvent(QMouseEvent*) + 1376 (qwidgetwindow.cpp:627)
      33  QtWidgets                           0x10250c5a4 QWidgetWindow::event(QEvent*) + 100 (qwidgetwindow.cpp:241)
      34  QtWidgets                           0x1024af4bc QApplicationPrivate::notify_helper(QObject*, QEvent*) + 272 (qapplication.cpp:3287)
      35  QtWidgets                           0x1024b0310 QApplication::notify(QObject*, QEvent*) + 504 (qapplication.cpp:3238)
      36  QtCore                               0x10360fafc QCoreApplication::notifyInternal2(QObject*, QEvent*) + 292 (qcoreapplication.cpp:1118)
      37  QtGui                               0x101972328 QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) + 1740 (qguiapplication.cpp:2302)
      38  QtGui                               0x1019cdd90 QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 408 (qwindowsysteminterface.cpp:1109)
      39  libqcocoa.dylib                     0x10206ea90 QCocoaEventDispatcherPrivate::postedEventsSourceCallback(void*) + 536 (qcocoaeventdispatcher.mm:903)
      40  CoreFoundation                       0x1ae2a9a34 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
      41  CoreFoundation                       0x1ae2a99c8 __CFRunLoopDoSource0 + 176
      42  CoreFoundation                       0x1ae2a9738 __CFRunLoopDoSources0 + 244
      43  CoreFoundation                       0x1ae2a833c __CFRunLoopRun + 836
      44  CoreFoundation                       0x1ae2a78a4 CFRunLoopRunSpecific + 612
      45  HIToolbox                           0x1b791b3bc RunCurrentEventLoopInMode + 292
      46  HIToolbox                           0x1b791b04c ReceiveNextEventCommon + 236
      47  HIToolbox                           0x1b791af48 _BlockUntilNextEventMatchingListInModeWithFilter + 72
      48  AppKit                               0x1b1500630 _DPSNextEvent + 632
      49  AppKit                               0x1b14ff7c0 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 728
      50  AppKit                               0x1b14f3bf0 -[NSApplication run] + 464
      51  libqcocoa.dylib                     0x10206d268 QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 1880 (qcocoaeventdispatcher.mm:404)
      52  QtCore                               0x1036195ac QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 36 (qeventloop.cpp:100) [inlined]
      53  QtCore                               0x1036195ac QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 540 (qeventloop.cpp:182)
      54  QtCore                               0x103610188 QCoreApplication::exec() + 112 (qcoreapplication.cpp:1439)
      55  Designer                             0x1009da370 main + 100 (main.cpp:37)
      56  dyld                                 0x1ade9fe50 start + 2544
      

      Attachments

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              richard Richard Moe Gustavsen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes