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

Starting a new Activity with embedded QML crashes when one already exists

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • 6.8
    • 6.7.0
    • QPA: Android
    • Android

    Description

      Starting a new Activity with embedded QML in it when one already exists crashes the app.

      Screen Recording 2024-05-07 at 15.08.46.mov

      MainActivity (the one with the QtQuickView element) is started here like this:

      public void goToActivity(View view) {
          Intent intent = new Intent(getApplicationContext(), MainActivity.class);
          startActivity(intent);
      }

      So in the screen recording this is done two times, and on the latter attempt the app becomes unresponsive.

      Attachments

        1. anr_2024-05-07-15-09-09-314
          747 kB
          Olli Vuolteenaho
        2. Screen Recording 2024-05-07 at 15.08.46.mov
          9.24 MB
          Olli Vuolteenaho

        Issue Links

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

          Activity

            People

              pevirkku Petri Virkkunen
              olvuolte Olli Vuolteenaho
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes