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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P1: Critical P1: Critical
    • None
    • 6.7.0
    • QPA: Android
    • Android

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes