Skip to content

[NETSDKE2E][Intermittent]With NET11 preview 4 SDK installed, "Unhandled exception. System.ObjectDisposedException: Cannot access a disposed object." happens when repairing android wasm-tools in CLI #54079

@xianyoong

Description

@xianyoong

REGRESSION INFO: not repro on NET11 preview3.

INSTALL STEPS

  1. Clean machine: Windows 11
  2. Install .NET 11 SDK (11.0.100-preview.4.26224.122)

Repro steps:
1.dotnet workload install wasm-tools --skip-manifest-update
2.dotnet workload install android --skip-manifest-update
3.Navigate to the where some of the workload packs were installed
C:\Program Files\dotnet\packs\Microsoft.NET.Runtime.MonoAOTCompiler.Task\11.0.0-preview.4.26224.122\Sdk and delete a number of random files

4.Execute: dotnet workload repair

Expected Result:
Android wasm-tools repair successfully and the output shows correctly.

Actual Result:
Install Android wasm-tools successfully, but below message displayed.

Image

Unhandled exception. System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'System.Collections.Concurrent.BlockingCollection`1[[System.String, System.Private.CoreLib, Version=11.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'.
at Microsoft.DotNet.Cli.Installer.Windows.TimestampedFileLogger.WriteMessage(String message)
at Microsoft.DotNet.Cli.Installer.Windows.TimestampedFileLogger.ProcessLogRequests(Object logPipeName)
at System.Threading.Thread.StartHelper.Callback(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)at System.Threading.Thread.StartCallback(Thread* pThread)

dotnet --info
.NET SDK:
Version: 11.0.100-preview.4.26224.122
Commit: 48bd87d899
Workload version: 11.0.100-manifests.e88583fc
MSBuild version: 18.7.0-preview-26224-122+48bd87d89

Runtime Environment:
OS Name: Windows
OS Version: 10.0.26200
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\11.0.100-preview.4.26224.122\

.NET workloads installed:
There are no installed workloads to display.
Configured to use workload sets when installing new manifests.
No workload sets are installed. Run "dotnet workload restore" to install a workload set.

Host:
Version: 11.0.0-preview.4.26224.122
Architecture: x64
Commit: 48bd87d899

.NET SDKs installed:
11.0.100-preview.4.26224.122 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 11.0.0-preview.4.26224.122 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 11.0.0-preview.4.26224.122 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 11.0.0-preview.4.26224.122 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
None

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions