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

windeployqt: The output of "--list" contains non-existent files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.14.1
    • None
    • Windows

    Description

      Possible relative issue: QTBUG-65916

      The list of "target" shows both qtbase_.qm* and qt_.qm* with the path $$OUT_PWD\translations. But only qt_.qm* files there when the deployment finish.

      C:\Qt\Qt5.14.1\5.14.1\msvc2017\bin\windeployqt.exe -qmldir "C:\b e s\project" -list target "C:\b e s\build-project-Debug\project.exe"
      ...
      C:\b e s\build-project-Debug\translations\qt_ru.qm
      C:\b e s\build-project-Debug\translations\qtbase_ru.qm
      ...
      

      For the translation files, windeployqt will invoke lconvert to do the conversion. I used Process Monitor to log the filesystem operations about lconvert.exe. It shows that there was no qtbase_.qm* file created in $$OUT_PWD\translations folder, actually.

      Process Name Operation Path Result Detail
      lconvert.exe QueryNameInformationFile C:\Qt\Qt5.14.1\5.14.1\msvc2017\bin\lconvert.exe SUCCESS Name: \Qt\Qt5.14.1\5.14.1\msvc2017\bin\lconvert.exe
      lconvert.exe CreateFile C:\Qt\Qt5.14.1\5.14.1\msvc2017\bin\lconvert.exe SUCCESS Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
      lconvert.exe QueryBasicInformationFile C:\Qt\Qt5.14.1\5.14.1\msvc2017\bin\lconvert.exe SUCCESS CreationTime: 2020/1/24 18:13:36, LastAccessTime: 2020/2/8 10:20:15, LastWriteTime: 2020/1/24 1:37:38, ChangeTime: 2020/2/6 15:34:26, FileAttributes: A
      lconvert.exe CloseFile C:\Qt\Qt5.14.1\5.14.1\msvc2017\bin\lconvert.exe SUCCESS  
      lconvert.exe CreateFile C:\Qt\Qt5.14.1\5.14.1\msvc2017\bin\lconvert.exe SUCCESS Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
      lconvert.exe QueryBasicInformationFile C:\Qt\Qt5.14.1\5.14.1\msvc2017\bin\lconvert.exe SUCCESS CreationTime: 2020/1/24 18:13:36, LastAccessTime: 2020/2/8 10:20:15, LastWriteTime: 2020/1/24 1:37:38, ChangeTime: 2020/2/6 15:34:26, FileAttributes: A
      lconvert.exe CloseFile C:\Qt\Qt5.14.1\5.14.1\msvc2017\bin\lconvert.exe SUCCESS  
      lconvert.exe CreateFile C:\Qt\Qt5.14.1\5.14.1\msvc2017\translations\qtbase_ru.qm SUCCESS Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: N, ShareMode: Read, Write, AllocationSize: n/a, OpenResult: Opened
      lconvert.exe QueryInformationVolume C:\Qt\Qt5.14.1\5.14.1\msvc2017\translations\qtbase_ru.qm SUCCESS VolumeCreationTime: 2020/2/6 10:05:51, VolumeSerialNumber: A6F5-13DC, SupportsObjects: True, VolumeLabel:
      lconvert.exe QueryAllInformationFile C:\Qt\Qt5.14.1\5.14.1\msvc2017\translations\qtbase_ru.qm BUFFER OVERFLOW CreationTime: 2020/1/24 18:12:41, LastAccessTime: 2020/2/8 10:19:53, LastWriteTime: 2020/1/24 1:46:16, ChangeTime: 2020/2/6 15:34:29, FileAttributes: A, AllocationSize: 200,704, EndOfFile: 199,043, NumberOfLinks: 1, DeletePending: False, Directory: False, IndexNumber: 0x1000000037cd5, EaSize: 0, Access: Generic Read, Position: 0, Mode: Synchronous IO Non-Alert, AlignmentRequirement: Byte
      lconvert.exe ReadFile C:\Qt\Qt5.14.1\5.14.1\msvc2017\translations\qtbase_ru.qm SUCCESS Offset: 0, Length: 199,043, Priority: Normal
      lconvert.exe CloseFile C:\Qt\Qt5.14.1\5.14.1\msvc2017\translations\qtbase_ru.qm SUCCESS  
      lconvert.exe CreateFile C:\b e s\build-project-Debug\translations\qt_ru.qm SUCCESS Desired Access: Generic Write, Read Attributes, Disposition: OpenIf, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: N, ShareMode: Read, Write, AllocationSize: 0, OpenResult: Created
      lconvert.exe SetEndOfFileInformationFile C:\b e s\build-project-Debug\translations\qt_ru.qm SUCCESS EndOfFile: 0
      lconvert.exe SetAllocationInformationFile C:\b e s\build-project-Debug\translations\qt_ru.qm SUCCESS AllocationSize: 0
      lconvert.exe WriteFile C:\b e s\build-project-Debug\translations\qt_ru.qm SUCCESS Offset: 0, Length: 14,114, Priority: Normal
      lconvert.exe WriteFile C:\b e s\build-project-Debug\translations\qt_ru.qm SUCCESS Offset: 14,114, Length: 184,911, Priority: Normal
      lconvert.exe WriteFile C:\b e s\build-project-Debug\translations\qt_ru.qm SUCCESS Offset: 199,025, Length: 18
      lconvert.exe CloseFile C:\b e s\build-project-Debug\translations\qt_ru.qm SUCCESS  

      The wrong output will slightly effect (Section 2.2.2 in [QTBUG-81982]) the target windeployqt_clean in Makefile because the file $$TARGET.windeployqt contains the paths point to those non-existent files.


      Sorry for the format. I cannot find the inline code block style.

      Attachments

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              mozi_86 Kaijie Liu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes