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

IOS: disconnect second screen while app in b/g, it crashes when app goes into foreground

    XMLWordPrintable

    Details

    • Platform/s:
      iOS/tvOS/watchOS

      Description

      After an external screen is disconnected and application returns from the  background it crashes. Also happened with QT sample applications. 

      Looks like Qt creates ViewController for the external screen and then tries to access it, but the screen has already been destroyed by OS.

       

      EXC_BAD_ACCESSQtPrivate::QFunctorSlotObject<-[QIOSViewController
      initWithQIOSScreen:]::$_1, 2, QtPrivate::List<Qt::ApplicationState,
      Qt::ApplicationState>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*
      Attempted to dereference garbage pointer 0x500640078
      

       

      Stack trace (from Bugsnag):
       

      QtPrivate::QFunctorSlotObject<-[QIOSViewController initWithQIOSScreen:]::$_1, 2, QtPrivate::List<Qt::ApplicationState, Qt::ApplicationState>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*)        QMetaObject::activate(QObject*, int, int, void**)         QIOSApplicationState::handleApplicationStateChanged(UIApplicationState, QString const&)         ___ZL38qRegisterApplicationStateNotificationsv_block_invoke         qt_main_wrapper
       
      

       

      Steps to reproduce:

          1. Connect device to HDMI / Airplay / Or Mac recording

          2. Go to background

          3. Disconnect second screen

          4. Return to foreground

       

       

       

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            nethers David Netherwood
            Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes