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

Adding asset pack to package crashes androiddeployqt

    XMLWordPrintable

Details

    • Android
    • f4d897f04 (dev), b0553d15a (6.5), c60e8ef68 (6.5.0), 1c8124cfe (tqtc/lts-6.2)
    • 2023wk08FOQtforAndroid, 2023wk10FOQtforAndroid

    Description

      Adding Play Asset Delivery asset pack to application causes androiddeployqt to get stuck in infinite loop and eventually crash.

      The problem isn't even the asset pack itself but deleteMissingFiles function in androideployqt which calls recursively itself in a specific situation which gets triggered when adding an asset pack which contains a subdirectory whose name is synonym to any android directory root level directory.

      Test application attached. Reproducing the build requires two builds. Building the application first time succeeds. Second time, androiddeployqt tries to clean up android-build directory in the build dir and finds a match.

      In my test application asset pack dir contains src dir, and android root level dir contains also src dir.

       

      I later noticed that it is even possible to reproduce the issue with following changes:

      Create any directory to android directory root and add res directory inside it:

      hello/res

      When you build the app second time androiddeployqt finds res directory in the root level of android and gets screwed.

      Attachments

        Issue Links

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

          Activity

            People

              bartlomiejmoskal Bartlomiej Moskal
              tealamak Tero Alamäki
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes