Closed as not planned
Closed as not planned
Description
Describe the bug
As a part of our build pipeline, we build a dotnet project on macOS using a vendored dotnet 6.0.302 installation (from Unreal Engine 5.2). Intermittently (maybe 1 out of 150 builds), when there are no changes to any part of the project, when doing an incremental dotnet publish
on the project, it fails with error code -10 and no error messages.
To Reproduce
Seemingly, run a dotnet publish --self-contained /p:PublishSingleFile:true
repeatedly on macOS on M2 (happens less than 1% of the time).
Exceptions (if any)
We run this same command with the same frequency on Windows and Linux, and have not seemingly encountered it there.
Further technical details
Command output:
/Volumes/Build/ws/1b06a75fab1cf42c/ProjectDir> "/Volumes/Build/ws/1b06a75fab1cf42c/Engine/Binaries/ThirdParty/DotNet/6.0.302/mac-arm64/dotnet" "publish" "./Source/Project.csproj" "-o" "/Volumes/Build/ws/1b06a75fab1cf42c/Binaries/macOS" "-r" "osx-x64" "--self-contained" "true" "/p:PublishSingleFile=true" "-c" "Release" "/p:DefineConstants=CRASH_REPORTING"
Microsoft (R) Build Engine version 17.2.0+41abc5629 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.
Determining projects to restore...
ERROR: Command returned error code -10: "/Volumes/Build/ws/1b06a75fab1cf42c/Engine/Binaries/ThirdParty/DotNet/6.0.302/mac-arm64/dotnet" "publish" "./Source/Project.csproj" "-o" "/Volumes/Build/ws/1b06a75fab1cf42c/Binaries/macOS" "-r" "osx-x64" "--self-contained" "true" "/p:PublishSingleFile=true" "-c" "Release" "/p:DefineConstants=CRASH_REPORTING"
dotnet --info
:
.NET SDK (reflecting any global.json):
Version:
Commit: N/A
Runtime Environment:
OS Name: Mac OS X
OS Version: 13.4
OS Platform: Darwin
RID:
Base Path: /Volumes/Build/ws/1b06a75fab1cf42c/Engine/Binaries/ThirdParty/DotNet/6.0.302/mac-arm64/sdk/6.0.302/
global.json file:
Not found
Host:
Version: 6.0.7
Architecture: arm64
Commit: 0ec02c8c96
.NET SDKs installed:
6.0.302 [/Volumes/Build/ws/1b06a75fab1cf42c/Engine/Binaries/ThirdParty/DotNet/6.0.302/mac-arm64/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.7 [/Volumes/Build/ws/1b06a75fab1cf42c/Engine/Binaries/ThirdParty/DotNet/6.0.302/mac-arm64/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.7 [/Volumes/Build/ws/1b06a75fab1cf42c/Engine/Binaries/ThirdParty/DotNet/6.0.302/mac-arm64/shared/Microsoft.NETCore.App]
Download .NET:
https://aka.ms/dotnet-download
Learn about .NET Runtimes and SDKs:
https://aka.ms/dotnet/runtimes-sdk-info
Metadata
Metadata
Assignees
Labels
No labels