Skip to content
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

[NETSDKE2E] With 9.0.100-rc.2.24429.8 SDK exe installed, "Warning: Workload garbage collection failed with error: Failed to get global.json GC roots Value cannot be null. (Parameter 'key')" is shown after installing wasm-tools workload. #43114

Closed
vdtirlochan opened this issue Aug 30, 2024 · 4 comments
Assignees
Labels
Area-Workloads untriaged Request triage from a team member

Comments

@vdtirlochan
Copy link

Build:
9.0.100-rc.2.24429.8 SDK on win10-x64

1.Set up a clean machine with .NET SDK exe installed
2.In CLI, run dotnet workload install wasm-tools

Expected Result:
wasm-tools installs successfully without any warnings or errors

Actual Result:
Warning: Workload garbage collection failed with error: Failed to get global.json GC roots Value cannot be null. (Parameter 'key') is shown
image

Note:
Also seen when installing android workload
image

dotnet --info
.NET SDK:
Version: 9.0.100-rc.2.24429.8
Commit: 6ccac5f
Workload version: 9.0.100-manifests.839ab7ed
MSBuild version: 17.12.0-preview-24427-01+c256bcca0

Runtime Environment:
OS Name: Windows
OS Version: 10.0.19045
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\9.0.100-rc.2.24429.8\

.NET workloads installed:
Configured to use loose manifests when installing new manifests.
[android]
Installation Source: SDK 9.0.100-rc.2
Manifest Version: 35.0.0-rc.2.89/9.0.100-rc.2
Manifest Path: C:\Program Files\dotnet\sdk-manifests\9.0.100-rc.2\microsoft.net.sdk.android\35.0.0-rc.2.89\WorkloadManifest.json
Install Type: Msi

[wasm-tools]
Installation Source: SDK 9.0.100-rc.2
Manifest Version: 9.0.0-rc.2.24429.5/9.0.100-rc.2
Manifest Path: C:\Program Files\dotnet\sdk-manifests\9.0.100-rc.2\microsoft.net.workload.mono.toolchain.current\9.0.0-rc.2.24429.5\WorkloadManifest.json
Install Type: Msi

Host:
Version: 9.0.0-rc.2.24427.10
Architecture: x64
Commit: static

.NET SDKs installed:
9.0.100-rc.2.24429.8 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 9.0.0-rc.2.24426.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 9.0.0-rc.2.24427.10 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 9.0.0-rc.2.24428.1 [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

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Workloads untriaged Request triage from a team member labels Aug 30, 2024
@marcpopMSFT
Copy link
Member

@dsplaisted workload garbage collection error. Please take a look.

@v-ainigao
Copy link

A similar error occurs when running dotnet workload clean --all with .net9.0.100-rc.2.24460.10sdk on ARM64OS.
image
Unhandled exception: Microsoft.DotNet.Workloads.Workload.WorkloadException: Failed to get global.json GC roots Value cannot be null. (Parameter 'key')
at Microsoft.DotNet.Installer.Windows.InstallerBase.ExitOnFailure(InstallResponseMessage response, String message)
at Microsoft.DotNet.Installer.Windows.MsiInstallerBase.GetGlobalJsonWorkloadSetVersions(SdkFeatureBand sdkFeatureBand)
at Microsoft.DotNet.Workloads.Workload.Install.NetSdkMsiInstallerClient.GarbageCollect(Func2 getResolverForWorkloadSet, Nullable1 offlineCache, Boolean cleanAllPacks)
at Microsoft.DotNet.Workloads.Workload.Clean.WorkloadCleanCommand.ExecuteGarbageCollection()
at Microsoft.DotNet.Cli.WorkloadCleanCommandParser.<>c.b__3_0(ParseResult parseResult)
at System.CommandLine.Invocation.InvocationPipeline.Invoke(ParseResult parseResult)
at System.CommandLine.ParseResult.Invoke()
at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, TimeSpan startupTime, ITelemetry telemetryClient)

@vdanche
Copy link
Member

vdanche commented Sep 26, 2024

not repro on SDK:9.0.100-rc.2.24474.11(runtime-9.0.0-rc.2.24473.5)
image

@marcpopMSFT
Copy link
Member

Marking closed since it's fixed in the shipping RC2 build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Workloads untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

5 participants