Uploaded image for project: 'Qt Visual Studio Tools'
  1. Qt Visual Studio Tools
  2. QTVSADDINBUG-857

The process cannot access the file moc.read.1u.tlog because it is being used by another process

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Fixed
    • Affects Version/s: 2.5.2, 2.6.0 (rev.07), 2.7.0
    • Fix Version/s: 2.7.1
    • Component/s: Qt/MSBuild
    • Labels:
      None
    • Platform/s:
      Windows
    • Commits:
      60a69e7faa8c98e4ba75dece29d95f270abbe3b0

      Description

      When using Visual Studio 16.8.3 or 16.8.4, with Qt addins 2.6.x or 2.7.0.0, I have regularly an error with multiple process which seem to access to the same log file "moc.read.1u.tlog".

      This error is also present in the last build 2.7.0.0 (generate after this bug fix QTVSADDINBUG-827)

      Here an exemple of the error:

      C:\Users\username\AppData\Local\QtMsBuild\qt_globals.targets(368,5): error MSB3491: Could not write lines to file "D:\b63dd3bbf6a8743c\compilation\Debug_x64\RshProject\RshProject.tlog\moc.read.1u.tlog". The process cannot access the file 'D:\b63dd3bbf6a8743c\compilation\Debug_x64\RshProject\RshProject.tlog\moc.read.1u.tlog' because it is being used by another process.
      Done building project "RshProject.vcxproj" -- FAILED.
      

      Not that option "Parallel Process" is set to "Yes" on all Qt task (moc, ui, qrc). It's perhaps the source of this error.

        Attachments

          Issue Links

          For Gerrit Dashboard: QTVSADDINBUG-857
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              mecfc Miguel Costa
              Reporter:
              francoisj Francois JEAN
              Votes:
              3 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes