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

Crash on app restart

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • None
    • 6.6.2, 6.6.3, 6.7.1
    • Extras: Android
    • None
    • Android
    • 2024wk24s2FOQtforAndroid

    Description

      QtActivityBase::onCreate is going to crash on app (re-)starts when QtNative.getStateDetails().isStarted is true.
      In QtActivityBase::onCreate::97 m_delegate is created, but its members are not initialized.
      In QtActivityBase::handleActivityRestart::68 m_delegate.updateActivityAfterRestart will be entered if QtNative.getStateDetails().isStarted is true.
      Now QtActivityDelegate::updateActivityAfterRestart::83 will crash, since m_layout is accessed before it is initialized.

      Attachments

        Issue Links

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

          Activity

            People

              qtandroidteam Qt Android Team
              timonsassor Timon Sassor
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes