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

Regression: Cannot run Android project created with 5.2.1 on 5.3.0 (issue with assets)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.3.0 Beta1
    • Fix Version/s: 5.3.0 Beta1
    • Component/s: QPA
    • Labels:
      None
    • Environment:
      Android 4.4 / Nexus 7 (2nd gen)
    • Platform/s:
      Android
    • Commits:
      3d5234eb9a200752bce8fb2539efeb4d812b3b27

      Description

      Attached is a minimal app created with Qt 5.2.1. If you try to start this using Qt 5.3.0 snapshot it won't work. The code will hang somewhere inside QtQuick2ApplicationViewer::setMainQmlFile(). There are no error messages.

      // main.cpp
      QtQuick2ApplicationViewer viewer;
      qDebug() << "### Before";
      viewer.setMainQmlFile(QStringLiteral("qml/test22/main.qml"));
      // Next line is never called
      qDebug() << "### After";
      

      It looks like it has something to do with loading QML components from assets. If you remove the ScaledText element from main.qml the app will start up normally.

      Tested with latest snapshot: http://mirror.netcologne.de/qtproject/snapshots/qt/5.3/5.3.0-beta/2014-03-20_20/qt-opensource-linux-x64-android-5.3.0-beta_2014-03-20_10-01-06-20.run

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              esabraha Eskil Abrahamsen Blomfeldt
              Reporter:
              conny Cornelius Hald
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes