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

tst_QGraphicsProxyWidget::bypassGraphicsProxyWidget crashes on Mac (and Windows)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • None
    • 5.2.0
    • Widgets: GraphicsView
    • None
    • macOS

    Description

      (gdb) bt
      #0 0x00000001002bf5fc in QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> >::data (this=0x47) at qscopedpointer.h:156
      #1 0x00000001000dabcc in qGetPtrHelper<QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> > > (p=@0x47) at qglobal.h:889
      #2 0x00000001000e76a1 in QWidget::d_func (this=0x3f) at qwidget.h:129
      #3 0x0000000100141250 in QGestureManager::filterEvent (this=0x102466a40, receiver=0x11774c640, event=0x7fff5fbfcea0) at kernel/qgesturemanager.cpp:483
      #4 0x00000001000dc519 in QApplication::notify (this=0x7fff5fbfe4a0, receiver=0x11774c640, e=0x7fff5fbfcea0) at kernel/qapplication.cpp:2812
      #5 0x00000001018bc8ed in QCoreApplication::notifyInternal (this=0x7fff5fbfe4a0, receiver=0x11774c640, event=0x7fff5fbfcea0) at kernel/qcoreapplication.cpp:867
      #6 0x000000010002ff7f in QCoreApplication::sendEvent (receiver=0x11774c640, event=0x7fff5fbfcea0) at qcoreapplication.h:232
      #7 0x0000000104f73d71 in -[QNSView validAttributesForMarkedText] (self=0x1039d8fc0, _cmd=0x7fff86923d48) at qnsview.mm:1291
      #8 0x00007fff8623e211 in -[NSTextInputContext initWithClient:] ()
      #9 0x00007fff8623e154 in +[NSTextInputContext inputContextWithClient:] ()
      #10 0x00007fff86239eb3 in -[NSView inputContext] ()
      #11 0x00007fff861ec809 in -[NSView _setWindow:] ()
      #12 0x00007fff8623927c in -[NSView removeFromSuperview] ()
      #13 0x00007fff861f4a8c in -[NSWindow setContentView:] ()
      #14 0x0000000104f6de2d in QCocoaWindow::clearNSWindow (this=0x1039d8f20, window=0x1039d9270) at qcocoawindow.mm:905
      #15 0x0000000104f703ed in QCocoaWindow::~QCocoaWindow (this=0x1039d8f20) at qcocoawindow.mm:253
      #16 0x0000000100cd5722 in QWindow::destroy (this=0x1039ba5c0) at kernel/qwindow.cpp:1493
      #17 0x000000010014e5c9 in QWidgetPrivate::deleteTLSysExtra (this=0x117735db0) at kernel/qwidget_qpa.cpp:923
      #18 0x00000001001508a3 in QWidget::destroy (this=0x117733370, destroyWindow=true, destroySubWindows=true) at kernel/qwidget_qpa.cpp:203
      #19 0x000000010012750e in QWidget::~QWidget (this=0x117733370) at kernel/qwidget.cpp:1486
      #20 0x00000001003216af in QDialog::~QDialog (this=0x117733370) at dialogs/qdialog.cpp:337
      #21 0x00000001003330eb in QFileDialog::~QFileDialog (this=0x117733370) at dialogs/qfiledialog.cpp:426
      #22 0x0000000100008fb6 in tst_QGraphicsProxyWidget::bypassGraphicsProxyWidget (this=0x7fff5fbfe490) at tst_qgraphicsproxywidget.cpp:3216

      QGestureManager::filterEvent is where the problem is.
      I think "receiver" is already deleted.

      Attachments

        1. vg-mac.log
          8 kB
        2. windows_stack.txt
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            paeglis Gatis Paeglis
            dfaure David Faure (Private)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes