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

May crash if use QScroller for static QWidget

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.12.12, 6.7.0
    • Widgets: Itemviews
    • None

    Description

      qt_allScrollers and qt_activeScrollers are static object, if parent of QScroller is a static QWidget, we can't guarantee QScroller destroyed befor qt_allScrollers and qt_activeScrollers, so it maybe crash in ~QScroller() when destroyed.

                                                                            
                                                                            
      1  ??                                                  0x7ffff7e255cf 
      2  QScroller::~QScroller()                             0x7ffff7e22c2f 
      3  QScroller::~QScroller()                             0x7ffff7e22d4d 
      4  QMetaObject::activate          qobject.cpp     3804 0x7ffff76941c0 
      5  QObject::destroyed             moc_qobject.cpp 218  0x7ffff7694883 
      6  QWidget::~QWidget()                                 0x7ffff7ad3c63 
      7  QListView::~QListView()                             0x7ffff7d3720d 
      8  QObjectPrivate::deleteChildren qobject.cpp     2017 0x7ffff7691ede 
      9  QWidget::~QWidget()                                 0x7ffff7ad3cc9 
      10 MainWindow::~MainWindow        mainwindow.cpp  24   0x555555557b7a 
      11 ??                                                  0x7ffff70398e7 
      12 exit                                                0x7ffff7039aa0 
      13 __libc_start_main                                   0x7ffff70170ba 
      14 _start                                              0x55555555748e 

       

      Attachments

        For Gerrit Dashboard: QTBUG-121741
        # Subject Branch Project Status CR V

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            weiwei WeiNan Wang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes