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

iOS - Subset of active touches cancelled by UIKit - crash on assert

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 5.3.0 Alpha
    • QPA
    • None
    • iOS 7
    • iOS/tvOS/watchOS
    • 36caeadb4db9fab1cf581f9a3bb3c4a2e14de49a

    Description

      Sometimes when I use MultiPointTouchArea in QML, zoom over it with two fingers on iPad and then (without releasing two fingers) I add three more fingers and swipe them together (to minimize application), i get crash with message "Subset of active touches cancelled by UIKit".

      I've tried to comprehend why there's:

      if (!touches) {
      m_activeTouches.clear();
      } else {
      for (UITouch *touch in touches)
      m_activeTouches.remove(touch);

      Q_ASSERT_X(m_activeTouches.isEmpty(), Q_FUNC_INFO,
      "Subset of active touches cancelled byUIKit");
      }

      but I don't get it. When I replace it with just

      m_activeTouches.clear()

      everything works fine and there are no problems with touch handling.

      What do you think about it? Why removing only some touches when we want to end up with empty m_activeTouches anyway?

      Attachments

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

        Activity

          People

            vestbo Tor Arne Vestbø
            edois Eduard Veleba
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes