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

Segmentation fault QScroller::grabGesture

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.11.2, 5.11.3
    • Fix Version/s: 5.12.1
    • Labels:
      None
    • Platform/s:
      Linux/X11, Linux/Other display system
    • Commits:
      e27f52a09893cf494fc9b93452ed160f2effb94b (qt/qtbase/5.12)

      Description

      After commit "QScroller: maintain activeScrollers as a QList, not a QSet" 8b8e53f7267 https://codereview.qt-project.org/#/c/214637 (qtbase.git), qt_activeScrollers was changed from QSet to QList and bug was introduced. Same scroller can be registered multiple times and only one is removed in the end. This sometimes (depends of luck) crashes our embedded application after scrolling
      QTextBrowser or closing and opening window with gesture capture.

      I tested also with qt 5.9.7 and old version of code works perfectly.

      Used API calls:
      QScroller::grabGesture
      QScroller::ungrabGesture

        Attachments

        1. QT__activeScroller.patch
          0.3 kB
          Dominik Wójt
        2. qtbug72244_scroller.tar.gz
          1 kB
          Dominik Wójt
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            b.burdukiewicz Bartłomiej Burdukiewicz
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes