-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run into Fatal error. Internal CLR error
when trying to build System.IO.FileSystem.AccessControl.sln
#92478
Comments
This looks like a duplicate of #92007. |
Tagging subscribers to this area: @dotnet/area-system-io Issue DetailsDescriptionBuilding
Reproduction Steps
Expected behaviorThe solution file builds. Actual behaviorError log of building in Visual StudioError MSB3021 Unable to copy file "D:\repos\karakasa\runtime\artifacts\obj\ILLink.Tasks\Debug\net8.0\ILLink.Tasks.dll" to "D:\repos\karakasa\runtime\artifacts\bin\ILLink.Tasks\Debug\net8.0\ILLink.Tasks.dll". The process cannot access the file 'D:\repos\karakasa\runtime\artifacts\bin\ILLink.Tasks\Debug\net8.0\ILLink.Tasks.dll' because it is being used by another process. ILLink.Tasks C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets 4702 Error log of `build.cmd`D:\repos\karakasa\runtime>build -projects src/libraries/*/System.IO.FileSystem.AccessControl.sln 正在确定要还原的项目… Fatal error. Internal CLR error. (0x80131506) at System.Runtime.Serialization.SerializationGuard.g__ThrowIfDeserializationInProgress|0_0(System.Runtime.Serialization.SerializationInfo, System.String, Int32 ByRef) at System.Diagnostics.Process.Start() at Microsoft.Build.Utilities.ToolTask.ExecuteTool(System.String, System.String, System.String) at Microsoft.Build.Tasks.Exec.ExecuteTool(System.String, System.String, System.String) at Microsoft.Build.Utilities.ToolTask.Execute() at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() at Microsoft.Build.BackEnd.TaskBuilder+d__25.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.Build.BackEnd.TaskBuilder+d__25, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__25 ByRef) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Microsoft.Build.BackEnd.TaskBuilder+d__25, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__25 ByRef) at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(Microsoft.Build.BackEnd.ITaskExecutionHost, Microsoft.Build.BackEnd.Logging.TaskLoggingContext, Microsoft.Build.BackEnd.TaskHost, Microsoft.Build.BackEnd.ItemBucket, Microsoft.Build.BackEnd.TaskExecutionMode) at Microsoft.Build.BackEnd.TaskBuilder+d__23.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.Build.BackEnd.TaskBuilder+d__23, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__23 ByRef) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Microsoft.Build.BackEnd.TaskBuilder+d__23, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__23 ByRef) at Microsoft.Build.BackEnd.TaskBuilder.InitializeAndExecuteTask(Microsoft.Build.BackEnd.Logging.TaskLoggingContext, Microsoft.Build.BackEnd.ItemBucket, System.Collections.Generic.IDictionary`2, Microsoft.Build.BackEnd.TaskHost, Microsoft.Build.BackEnd.TaskExecutionMode) at Microsoft.Build.BackEnd.TaskBuilder+d__19.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.Build.BackEnd.TaskBuilder+d__19, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__19 ByRef) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Microsoft.Build.BackEnd.TaskBuilder+d__19, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__19 ByRef) at Microsoft.Build.BackEnd.TaskBuilder.ExecuteBucket(Microsoft.Build.BackEnd.TaskHost, Microsoft.Build.BackEnd.ItemBucket, Microsoft.Build.BackEnd.TaskExecutionMode, System.Collections.Generic.Dictionary`2) at Microsoft.Build.BackEnd.TaskBuilder+d__18.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.Build.BackEnd.TaskBuilder+d__18, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__18 ByRef) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Microsoft.Build.BackEnd.TaskBuilder+d__18, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__18 ByRef) at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(Microsoft.Build.BackEnd.TaskExecutionMode, Microsoft.Build.BackEnd.Lookup) at Microsoft.Build.BackEnd.TaskBuilder+d__13.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.Build.BackEnd.TaskBuilder+d__13, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__13 ByRef) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Microsoft.Build.BackEnd.TaskBuilder+d__13, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__13 ByRef) at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(Microsoft.Build.BackEnd.Logging.TargetLoggingContext, Microsoft.Build.BackEnd.BuildRequestEntry, Microsoft.Build.BackEnd.ITargetBuilderCallback, Microsoft.Build.Execution.ProjectTargetInstanceChild, Microsoft.Build.BackEnd.TaskExecutionMode, Microsoft.Build.BackEnd.Lookup, Microsoft.Build.BackEnd.Lookup, System.Threading.CancellationToken) at Microsoft.Build.BackEnd.TargetEntry+d__51.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.Build.BackEnd.TargetEntry+d__51, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__51 ByRef) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Microsoft.Build.BackEnd.TargetEntry+d__51, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__51 ByRef) at Microsoft.Build.BackEnd.TargetEntry.ProcessBucket(Microsoft.Build.BackEnd.ITaskBuilder, Microsoft.Build.BackEnd.Logging.TargetLoggingContext, Microsoft.Build.BackEnd.TaskExecutionMode, Microsoft.Build.BackEnd.Lookup, Microsoft.Build.BackEnd.Lookup) at Microsoft.Build.BackEnd.TargetEntry+d__44.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.Build.BackEnd.TargetEntry+d__44, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__44 ByRef) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[Microsoft.Build.BackEnd.TargetEntry+d__44, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__44 ByRef) at Microsoft.Build.BackEnd.TargetEntry.ExecuteTarget(Microsoft.Build.BackEnd.ITaskBuilder, Microsoft.Build.BackEnd.BuildRequestEntry, Microsoft.Build.BackEnd.Logging.ProjectLoggingContext, System.Threading.CancellationToken) at Microsoft.Build.BackEnd.TargetBuilder+d__23.MoveNext() at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.Threading.Tasks.VoidTaskResult, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.Build.BackEnd.TargetBuilder+d__23, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].ExecutionContextCallback(System.Object) at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.Threading.Tasks.VoidTaskResult, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.Build.BackEnd.TargetBuilder+d__23, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].MoveNext(System.Threading.Thread) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.Threading.Tasks.VoidTaskResult, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.Build.BackEnd.TargetBuilder+d__23, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].MoveNext() at System.Runtime.CompilerServices.TaskAwaiter+<>c.b__12_0(System.Action, System.Threading.Tasks.Task) at System.Threading.Tasks.TaskSchedulerAwaitTaskContinuation+<>c.b__2_0(System.Object) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef, System.Threading.Thread) at System.Threading.Tasks.Task.ExecuteEntry() at Microsoft.Build.BackEnd.RequestBuilder+DedicatedThreadsTaskScheduler.b__6_0() at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) Build failed with exit code -1073741819. Check errors above. Some builds failed: Configuration: Debug, Architecture: x64 Regression?The solution is successfully built 6 hours ago, before I updated the repo and VS. Known WorkaroundsNo response ConfigurationLocal .NET: 8.0.100-rc.1.23415.11 Other informationVisual Studio Code fails to load the solution file: [Info - 9:50:09 PM] [Program] Language server initialized [Info - 9:50:09 PM] [LanguageServerProjectSystem] Loaded MSBuild in-process from C:\Program Files\dotnet\sdk\7.0.306 [Info - 9:50:09 PM] [LanguageServerProjectSystem] Loading d:\repos\karakasa\runtime\src\libraries\System.IO.FileSystem.AccessControl\System.IO.FileSystem.AccessControl.sln... [Info - 9:50:13 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.Runtime\ref\System.Runtime.csproj [Info - 9:50:13 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.Collections.NonGeneric\ref\System.Collections.NonGeneric.csproj [Info - 9:50:13 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.IO.FileSystem.AccessControl\ref\System.IO.FileSystem.AccessControl.csproj [Info - 9:50:16 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.IO.FileSystem.AccessControl\tests\System.IO.FileSystem.AccessControl.Tests.csproj [Info - 9:50:16 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.Runtime.InteropServices\gen\LibraryImportGenerator\LibraryImportGenerator.csproj [Info - 9:50:17 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.Security.Claims\ref\System.Security.Claims.csproj [Info - 9:50:17 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\tools\illink\src\linker\ref\Mono.Linker.csproj [Info - 9:50:17 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.Private.CoreLib\gen\System.Private.CoreLib.Generators.csproj [Info - 9:50:17 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.Private.CoreLib\ref\System.Private.CoreLib.csproj [Info - 9:50:17 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.Runtime.InteropServices\gen\ComInterfaceGenerator\ComInterfaceGenerator.csproj [Info - 9:50:18 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.Runtime\src\System.Runtime.csproj [Info - 9:50:18 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.Security.AccessControl\ref\System.Security.AccessControl.csproj [Info - 9:50:18 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.Security.Principal.Windows\ref\System.Security.Principal.Windows.csproj [Info - 9:50:18 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.Private.Uri\src\System.Private.Uri.csproj [Info - 9:50:18 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.Runtime.InteropServices\gen\Microsoft.Interop.SourceGeneration\Microsoft.Interop.SourceGeneration.csproj [Info - 9:50:18 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\tools\illink\src\ILLink.RoslynAnalyzer\ILLink.RoslynAnalyzer.csproj [Info - 9:50:19 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\tools\illink\src\ILLink.CodeFix\ILLink.CodeFixProvider.csproj [Info - 9:50:19 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\tools\illink\src\linker\Mono.Linker.csproj [Error - 9:50:21 PM] [LanguageServerProjectSystem] Exception thrown while loading d:\repos\karakasa\runtime\src\libraries\Common\tests\TestUtilities\TestUtilities.csproj StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete. at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken) at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject) at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, BuildHost inProcessBuildHost, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 312 [Error - 9:50:21 PM] [LanguageServerProjectSystem] Exception thrown while loading d:\repos\karakasa\runtime\src\libraries\System.IO.FileSystem.AccessControl\src\System.IO.FileSystem.AccessControl.csproj StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete. at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken) at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject) at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, BuildHost inProcessBuildHost, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 312 [Error - 9:50:21 PM] [LanguageServerProjectSystem] Exception thrown while loading d:\repos\karakasa\runtime\src\libraries\System.Security.Permissions\ref\System.Security.Permissions.csproj StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete. at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken) at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject) at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, BuildHost inProcessBuildHost, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 312 [Error - 9:50:21 PM] [LanguageServerProjectSystem] Exception thrown while loading d:\repos\karakasa\runtime\src\libraries\System.DirectoryServices\src\System.DirectoryServices.csproj StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete. at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken) at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject) at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, BuildHost inProcessBuildHost, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 312 [Error - 9:50:21 PM] [LanguageServerProjectSystem] Exception thrown while loading d:\repos\karakasa\runtime\src\libraries\System.DirectoryServices\ref\System.DirectoryServices.csproj StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete. at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken) at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject) at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, BuildHost inProcessBuildHost, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 312 [Error - 9:50:21 PM] [LanguageServerProjectSystem] Exception thrown while loading d:\repos\karakasa\runtime\src\coreclr\System.Private.CoreLib\System.Private.CoreLib.csproj StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete. at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken) at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject) at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, BuildHost inProcessBuildHost, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 312 [Error - 9:50:21 PM] [LanguageServerProjectSystem] Exception thrown while loading d:\repos\karakasa\runtime\src\libraries\System.Windows.Extensions\ref\System.Windows.Extensions.csproj StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete. at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken) at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject) at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, BuildHost inProcessBuildHost, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 312 [Error - 9:50:21 PM] [LanguageServerProjectSystem] Exception thrown while loading d:\repos\karakasa\runtime\src\libraries\shims\stubs\System.Drawing.Common.csproj StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete. at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken) at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject) at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, BuildHost inProcessBuildHost, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 312 [Error - 9:50:21 PM] [LanguageServerProjectSystem] Exception thrown while loading d:\repos\karakasa\runtime\src\tools\illink\src\ILLink.Tasks\ILLink.Tasks.csproj StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete. at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken) at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject) at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, BuildHost inProcessBuildHost, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 312 [Error - 9:50:21 PM] [LanguageServerProjectSystem] Exception thrown while loading d:\repos\karakasa\runtime\src\libraries\System.Windows.Extensions\src\System.Windows.Extensions.csproj StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete. at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken) at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject) at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, BuildHost inProcessBuildHost, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 312 [Error - 9:50:21 PM] [LanguageServerProjectSystem] Exception thrown while loading d:\repos\karakasa\runtime\src\libraries\System.Security.Permissions\src\System.Security.Permissions.csproj StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete. at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken) at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject) at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, BuildHost inProcessBuildHost, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 312 [Info - 9:50:21 PM] [LanguageServerProjectSystem] Completed (re)load of all projects in 00:00:11.6314810 [Error - 9:50:21 PM] [BuildHost PID 8472] Exception while shutting down the BuildHost process. StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete. ---> System.OperationCanceledException: The operation was canceled. at System.Threading.CancellationToken.ThrowOperationCanceledException() at StreamJsonRpc.MessageHandlerBase.WriteAsync(JsonRpcMessage content, CancellationToken cancellationToken) at StreamJsonRpc.JsonRpc.SendAsync(JsonRpcMessage message, CancellationToken cancellationToken) at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken) --- End of inner exception stack trace --- at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken) at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject) at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.BuildHostProcessManager.BuildHostProcess.DisposeAsync() in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/BuildHostProcessManager.cs:line 254
|
@karakasa thank you for logging the issue! It got fixed recently and will be included in .NET 8 RC2, but dotnet/runtime is still using RC1 bits. |
Description
Building
System.IO.FileSystem.AccessControl.sln
fails after I just updated my local repo to the latest.build.cmd
returnsFatal error. Internal CLR error. (0x80131506)
.ILLink.Tasks.dll
is locked by MSBuild initated by the building process itself.System.Runtime.dll
is there but the building process cannot find it.Reproduction Steps
build -projects src/libraries/*/System.IO.FileSystem.AccessControl.sln
or builds it in the Visual Studio.Expected behavior
The solution file builds.
Actual behavior
Error log of building in Visual Studio
Error log of `build.cmd`
Regression?
The solution is successfully built 6 hours ago, before I updated the repo and VS.
Known Workarounds
No response
Configuration
Local .NET: 8.0.100-rc.1.23415.11
Visual Studio version: 17.8.0 Preview 2.0
Visual Studio Code version: Version: 1.82.2 abd2f3db4bdb28f9e95536dfa84d8479f1eb312d
OS: Windows 10 x64 22H2
Other information
Visual Studio Code fails to load the solution file:
The text was updated successfully, but these errors were encountered: