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

[iOS]: Crash occurs when showing a new QQuickWindow after the first one is deleted

    XMLWordPrintable

Details

    • iOS/tvOS/watchOS
    • b050d4867f68c3d35493221d65d343749504c988 (qt/qtbase/dev) 516316e9a24fc3a290ce220a9a6cda0af541ca4c (qt/qtbase/6.1) 0ffd09bc3038920e02fb8934fe885184064a116a (qt/tqtc-qtbase/tqtc/lts-5.15) 0dcf8c232f327ea50573c57ae5ba2d6d72b9e7fb (qt/qtbase/6.0)

    Description

      The app crashes with EXC_BAD_ACCESS when showing a new QQuickWindow after the first one is deleted.

      It looks this is because it tries to set focus to the new window, but it still references the old window which has been deleted.

      Here's the code to reproduce. Also the sample project is attached.

          QGuiApplication ga(argc, argv);
          {
              QQuickWindow view;
              view.show();
              QEventLoop loop;
              QTimer::singleShot(5000, &loop, &QEventLoop::quit);
              loop.exec();
          }
          QQuickWindow view;
          view.show();
          return ga.exec();
      

      Attachments

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

        Activity

          People

            andysh Andy Shaw
            nagrohn Nahomi Gröhn (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews