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

[Unhandled Exception]: TypeLoadException on linux-arm #11416

Open
yaakov-h opened this issue Feb 11, 2025 · 2 comments
Open

[Unhandled Exception]: TypeLoadException on linux-arm #11416

yaakov-h opened this issue Feb 11, 2025 · 2 comments
Assignees
Labels
author-responded Author responded, needs response from dev team.

Comments

@yaakov-h
Copy link
Member

Issue Description

https://github.com/SteamRE/SteamKit/actions/runs/13255445948/job/37001416064?pr=1509

MSBuild version 17.8.3+195e7f5a3 for .NET
MSBUILD : error : This is an unhandled exception in MSBuild -- PLEASE UPVOTE AN EXISTING ISSUE OR FILE A NEW ONE AT https://aka.ms/msbuild/unhandled [/home/runner/work/SteamKit/SteamKit/SteamKit2/SteamKit2/SteamKit2.csproj]
MSBUILD : error :     System.TypeLoadException: Method 'Dispose' in type 'EvaluationFrame' from assembly 'Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' does not have an implementation. [/home/runner/work/SteamKit/SteamKit/SteamKit2/SteamKit2/SteamKit2.csproj]
MSBUILD : error :    at Microsoft.Build.Evaluation.EvaluationProfiler..ctor(Boolean shouldTrackElements) [/home/runner/work/SteamKit/SteamKit/SteamKit2/SteamKit2/SteamKit2.csproj]
MSBUILD : error :    at Microsoft.Build.Evaluation.Evaluator`4..ctor(IEvaluatorData`4 data, Project project, ProjectRootElement projectRootElement, ProjectLoadSettings loadSettings, Int32 maxNodeCount, PropertyDictionary`1 environmentProperties, IItemFactory`2 itemFactory, IToolsetProvider toolsetProvider, IDirectoryCacheFactory directoryCacheFactory, ProjectRootElementCacheBase projectRootElementCache, ISdkResolverService sdkResolverService, Int32 submissionId, EvaluationContext evaluationContext, Boolean profileEvaluation, Boolean interactive, ILoggingService loggingService, BuildEventContext buildEventContext) [/home/runner/work/SteamKit/SteamKit/SteamKit2/SteamKit2/SteamKit2.csproj]
MSBUILD : error :    at Microsoft.Build.Evaluation.Evaluator`4.Evaluate(IEvaluatorData`4 data, Project project, ProjectRootElement root, ProjectLoadSettings loadSettings, Int32 maxNodeCount, PropertyDictionary`1 environmentProperties, ILoggingService loggingService, IItemFactory`2 itemFactory, IToolsetProvider toolsetProvider, IDirectoryCacheFactory directoryCacheFactory, ProjectRootElementCacheBase projectRootElementCache, BuildEventContext buildEventContext, ISdkResolverService sdkResolverService, Int32 submissionId, EvaluationContext evaluationContext, Boolean interactive) [/home/runner/work/SteamKit/SteamKit/SteamKit2/SteamKit2/SteamKit2.csproj]
MSBUILD : error :    at Microsoft.Build.Execution.ProjectInstance.Initialize(ProjectRootElement xml, IDictionary`2 globalProperties, String explicitToolsVersion, String explicitSubToolsetVersion, Int32 visualStudioVersionFromSolution, BuildParameters buildParameters, ILoggingService loggingService, BuildEventContext buildEventContext, ISdkResolverService sdkResolverService, Int32 submissionId, Nullable`1 projectLoadSettings, EvaluationContext evaluationContext, IDirectoryCacheFactory directoryCacheFactory) [/home/runner/work/SteamKit/SteamKit/SteamKit2/SteamKit2/SteamKit2.csproj]
MSBUILD : error :    at Microsoft.Build.Execution.ProjectInstance..ctor(String projectFile, IDictionary`2 globalProperties, String toolsVersion, BuildParameters buildParameters, ILoggingService loggingService, BuildEventContext buildEventContext, ISdkResolverService sdkResolverService, Int32 submissionId, Nullable`1 projectLoadSettings) [/home/runner/work/SteamKit/SteamKit/SteamKit2/SteamKit2/SteamKit2.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.BuildRequestConfiguration.<>c__DisplayClass61_0.<LoadProjectIntoConfiguration>b__0() [/home/runner/work/SteamKit/SteamKit/SteamKit2/SteamKit2/SteamKit2.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.BuildRequestConfiguration.InitializeProject(BuildParameters buildParameters, Func`1 loadProjectFromFile) [/home/runner/work/SteamKit/SteamKit/SteamKit2/SteamKit2/SteamKit2.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.RequestBuilder.BuildProject() [/home/runner/work/SteamKit/SteamKit/SteamKit2/SteamKit2/SteamKit2.csproj]
MSBUILD : error :    at Microsoft.Build.BackEnd.RequestBuilder.BuildAndReport() [/home/runner/work/SteamKit/SteamKit/SteamKit2/SteamKit2/SteamKit2.csproj]

Build FAILED.

I couldn't easily find an existing issue.

I seem to be getting quite a lot of intermittent .NET issues on GitHub Actions ubuntu-24.04-arm.

Steps to Reproduce

MSBuild doesn't crash.

Actual Behavior

MSBuild can crash.

Analysis

No response

Versions & Configurations

No response

@GangWang01
Copy link
Member

@yaakov-h I noticed the second run you triggered https://github.com/SteamRE/SteamKit/actions/runs/13255445948/job/37002135380?pr=1509#step:4:7 with the same version of msbuild succeeded and the error disappeared. Can you help to confirm if the issue is able to reproduce?

@GangWang01 GangWang01 added the needs-more-info Issues that need more info to continue investigation. label Feb 17, 2025
@yaakov-h
Copy link
Member Author

It's intermittent. I can't control when it does or doesn't happen, but it's happened a good few times in the last week or two, since enabling ubuntu-24.04-arm.

FWIW I never see this on my MacBook Pro which is also arm64, nor on x64 Windows.

@dotnet-policy-service dotnet-policy-service bot added author-responded Author responded, needs response from dev team. and removed triaged needs-more-info Issues that need more info to continue investigation. labels Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author-responded Author responded, needs response from dev team.
Projects
None yet
Development

No branches or pull requests

4 participants