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

Build crashes when running multiple msbuilds in parallel

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 2.7.2 (rev.02)
    • Build-time integration
    • None
    • Windows

    Description

      I am running a script to build a big project with msbuild (using qt).

      When I try to build another project that uses Qt at the same time (from devenv) I get these errors, which prevent the build from succeeding:

      3>C:\Users\job\AppData\Local\QtMsBuild\qt_globals.targets(575,5): error MSB4018: The "CriticalSection" task failed unexpectedly.
      3>C:\Users\job\AppData\Local\QtMsBuild\qt_globals.targets(575,5): error MSB4018: System.UnauthorizedAccessException: Access to the path is denied.
      3>C:\Users\job\AppData\Local\QtMsBuild\qt_globals.targets(575,5): error MSB4018: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
      3>C:\Users\job\AppData\Local\QtMsBuild\qt_globals.targets(575,5): error MSB4018: at System.Threading.EventWaitHandle.OpenExistingWorker(String name, EventWaitHandleRights rights, EventWaitHandle& result)
      3>C:\Users\job\AppData\Local\QtMsBuild\qt_globals.targets(575,5): error MSB4018: at System.Threading.EventWaitHandle.TryOpenExisting(String name, EventWaitHandle& result)
      3>C:\Users\job\AppData\Local\QtMsBuild\qt_globals.targets(575,5): error MSB4018: at InlineCode.CriticalSection.Execute() in c:\Users\job\AppData\Local\Temp\it4lx0db.0.cs:line 67
      3>C:\Users\job\AppData\Local\QtMsBuild\qt_globals.targets(575,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
      3>C:\Users\job\AppData\Local\QtMsBuild\qt_globals.targets(575,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()

       

      I quite frequently build multiple things at the same time, so this is pretty annoying.

      I also don't understand why these 2 completely different processes have any kind of interaction at all. Any temporary files they use should be unique, not shared.

      Attachments

        Activity

          People

            mecfc Miguel Costa
            wathiant Job Mulder
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: