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

Crash on app restart

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes