Skip to content

[NETSDKE2E][VMR][Win-x64]Error Precompiling failed with exit code -1073741819 happens when publishing blazorwasm project with "AOT compilation" enabled #48510

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

Open
vdanche opened this issue Apr 16, 2025 · 4 comments
Assignees

Comments

@vdanche
Copy link
Member

vdanche commented Apr 16, 2025

  1. Install 10.0.100-preview.4.25214.102.exe(VMR build) SDK on win-x64.
  2. install wasm-tools with command "dotnet workload install wasm-tools --skip-manifest-update"
  3. dotnet new blazorwasm
  4. add below contents to csproj file to use AOT compilation
<PropertyGroup>  
<TargetFramework>net10.0</TargetFramework>  
<RunAOTCompilation>true</RunAOTCompilation>
</PropertyGroup> 
  1. dotnet publish

Expected Result:
publish successfully

Actual Result:
publish failed with below error:

Image

log has been attached

Image

out.zip

dotnet --info
.NET SDK:
Version: 10.0.100-preview.4.25214.102
Commit: 19c0fee517
Workload version: 10.0.100-manifests.f25b1c94
MSBuild version: 17.15.0-preview-25214-102+19c0fee51

Runtime Environment:
OS Name: Windows
OS Version: 10.0.22631
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\10.0.100-preview.4.25214.102\

.NET workloads installed:
[wasm-tools]
Installation Source: SDK 10.0.100-preview.4
Manifest Version: 10.0.100-preview.4.25214.102/10.0.100-preview.4
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100-preview.4\microsoft.net.workload.mono.toolchain.current\10.0.100-preview.4.25214.102\WorkloadManifest.json
Install Type: Msi

Configured to use workload sets when installing new manifests.
Workloads are configured to install and update using workload versions, but none were found. Run "dotnet workload restore" to install a workload version.

Host:
Version: 10.0.0-preview.4.25214.102
Architecture: x64
Commit: 19c0fee517

.NET SDKs installed:
10.0.100-preview.4.25214.102 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 10.0.0-preview.4.25214.102 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 10.0.0-preview.4.25214.102 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 10.0.0-preview.4.25214.102 [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 Apr 16, 2025
@vdanche
Copy link
Member Author

vdanche commented Apr 16, 2025

not repro on Regular build: 10.0.100-preview.4.25215.47(runtime-10.0.0-preview.4.25211.19)

Image

@vdanche vdanche changed the title [NETSDKE2E]With 10.0.100-preview.4.25214.102(VMR build) SDK installed on win-x64, error :Precompiling failed....with exit code -1073741819 when publish blazorwasm project with "AOT compilation" enabled [NETSDKE2E]With 10.0.100-preview.4.25214.102(VMR build) SDK installed on win-x64, error :Precompiling failed....with exit code -1073741819 happens when publish blazorwasm project with "AOT compilation" enabled Apr 16, 2025
@vdanche vdanche changed the title [NETSDKE2E]With 10.0.100-preview.4.25214.102(VMR build) SDK installed on win-x64, error :Precompiling failed....with exit code -1073741819 happens when publish blazorwasm project with "AOT compilation" enabled [NETSDKE2E][VMR]With 10.0.100-preview.4.25214.102 SDK installed on win-x64, error :Precompiling failed....with exit code -1073741819 happens when publish blazorwasm project with "AOT compilation" enabled Apr 16, 2025
@vdanche vdanche changed the title [NETSDKE2E][VMR]With 10.0.100-preview.4.25214.102 SDK installed on win-x64, error :Precompiling failed....with exit code -1073741819 happens when publish blazorwasm project with "AOT compilation" enabled [NETSDKE2E][VMR][Win-x64]Error :Precompiling failed....with exit code -1073741819 happens when publishing blazorwasm project with "AOT compilation" enabled Apr 16, 2025
@vdanche vdanche changed the title [NETSDKE2E][VMR][Win-x64]Error :Precompiling failed....with exit code -1073741819 happens when publishing blazorwasm project with "AOT compilation" enabled [NETSDKE2E][VMR][Win-x64]Error Precompiling failed....with exit code -1073741819 happens when publishing blazorwasm project with "AOT compilation" enabled Apr 16, 2025
@vdanche vdanche changed the title [NETSDKE2E][VMR][Win-x64]Error Precompiling failed....with exit code -1073741819 happens when publishing blazorwasm project with "AOT compilation" enabled [NETSDKE2E][VMR][Win-x64]Error Precompiling failed with exit code -1073741819 happens when publishing blazorwasm project with "AOT compilation" enabled Apr 16, 2025
@akoeplinger akoeplinger self-assigned this Apr 16, 2025
@v-bennettyue
Copy link

I cannot repro this issue on 17.14 P4 (rel.d17.14-36016.58) + 10.0 P4 (10.0.100-preview.4.25215.103)

Image

@ViktorHofer
Copy link
Member

Given that this also shows up in #48528 outside of the VMR, we believe this isn't a VMR specific issue.

@akoeplinger
Copy link
Member

akoeplinger commented Apr 17, 2025

We figured out this was caused by the recent VS upgrade from 17.12.5 to 17.13.2. still looking for a workaround

edit got a workaround: dotnet/runtime#114786

@akoeplinger akoeplinger removed the untriaged Request triage from a team member label Apr 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants