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

Error "no qt platform plugin could be initialized" when running application from symlinked network directory

    XMLWordPrintable

Details

    • Windows
    • 3f17029aa12eafd3f8ddd5e0b246a6bf22eabfe3

    Description

      I have symlinked network directory:

       

      C:\>dir
       Volume in drive C has no label.
       Volume Serial Number is XXXX-XXXX
      Directory of C:\
      ...
       15. 03. 2017 17:55 <SYMLINKD> SHARED \\VBOXSRV\SHARED
       ...
      0 File(s) 0 bytes
       17 Dir(s) 1 126 232 064 bytes free
      
      

       

       

      When application is executed from this symlinked directory, then Qt application is crashing (see error in subject).

      I tried to find the reason using Process Monitor (from SysInternals) and found wrong path translation.

      Network directory: \\VBOXSRV\SHARED\

      Symlinked directory: C:\SHARED

      Application directory: C:\SHARED\HHFARMA_DEPLOY\

      Wrong translations (find C:\UNC strings in the log below):

      "CreateFile","C:\SHARED","SUCCESS","Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened"
       "QueryNetworkOpenInformationFile","C:\SHARED","SUCCESS","CreationTime: 15. 3. 2017 17:55:31, LastAccessTime: 15. 3. 2017 17:55:31, LastWriteTime: 15. 3. 2017 17:55:31, ChangeTime: 15. 3. 2017 17:55:31, AllocationSize: 1. 1. 1601 1:00:00, EndOfFile: 1. 1. 1601 1:00:00, FileAttributes: DRP"
       "CloseFile","C:\SHARED","SUCCESS",""
       "CreateFile","C:\","SUCCESS","Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened"
       "QueryDirectory","C:\SHARED","SUCCESS","Filter: SHARED, 1: SHARED"
       "CloseFile","C:\","SUCCESS",""
       "CreateFile","C:\SHARED","SUCCESS","Desired Access: Read EA, Read Attributes, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened"
       "FileSystemControl","C:\SHARED","SUCCESS","Control: FSCTL_GET_REPARSE_POINT"
       "CloseFile","C:\SHARED","SUCCESS",""
       "CreateFile","C:\UNC","NAME NOT FOUND","Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a"
       "CreateFile","C:\UNC\VBOXSRV","PATH NOT FOUND","Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a"
       "CreateFile","C:\UNC\VBOXSRV\SHARED","PATH NOT FOUND","Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a"
       "CreateFile","C:\UNC\VBOXSRV\SHARED\HHFarma_Deploy","PATH NOT FOUND","Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a"
       "CreateFile","C:\UNC\VBOXSRV\SHARED\HHFarma_Deploy","PATH NOT FOUND","Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a"
       "CreateFile","C:\SHARED\HHFarma_Deploy\qt.conf","REPARSE","Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: <unknown>"
       "CreateFile","\\VBOXSRV\SHARED\HHFARMA_DEPLOY\QT.CONF","NAME NOT FOUND","Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a"

       

      Result is that some DLLs (e.g. qwindows.dll) are not found and application ends with error.

      Note that some DLLs are loaded correctly.

      Complete Process Monitor Log is attached.

      Attachments

        1. app.zip
          9.10 MB
        2. LogfileBad.CSV
          64 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vhilshei Volker Hilsheimer
            lucky62k lucky62k
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes