Skip to content

[wasm][AOT] error : Could not allocate XXX bytes #119205

@pavelsavara

Description

@pavelsavara

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1134807&view=results
Build error leg or test failing: System.Runtime.Intrinsics.Tests

Error Message

{
  "ErrorMessage": ["WasmApp.Common.targets", "error : Could not allocate"],
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Log

[24/47] System.Private.Uri.dll -> System.Private.Uri.dll.bc
  [System.Private.Xml.dll] Exec (with response file contents expanded) in C:\helix\work\workitem\e\wasm_build\obj\wasm\for-build\aot-in: MONO_PATH=C:\helix\work\workitem\e\wasm_build\obj\wasm\for-build\aot-in;C:\helix\work\correlation\build\microsoft.netcore.app.runtime.browser-wasm\runtimes\browser-wasm\native\;C:\helix\work\correlation\build\microsoft.netcore.app.runtime.browser-wasm\runtimes\browser-wasm\lib\net10.0 MONO_ENV_OPTIONS= C:\helix\work\correlation\build\cross\mono-aot-cross.exe --wasm-exceptions --debug --llvm "--aot=no-opt,static,direct-icalls,deterministic,mattr=simd,nodebug,llvm-path=C:\helix\work\correlation\build\emsdk\bin\,static,dedup-skip,trimming-eligible-methods-outfile=C:\helix\work\workitem\e\wasm_build\obj\wasm\for-build\tokens\System_Private_Xml_dll_compiled_methods.txt,llvmonly,interp,asmonly,llvm-outfile=C:\helix\work\workitem\e\wasm_build\obj\wasm\for-build\System.Private.Xml.dll.bc.tmp,temp-path=C:\helix\work\workitem\e\wasm_build\obj\wasm\for-build\System.Private.Xml.dll.tmp" "System.Private.Xml.dll"
  
C:\helix\work\correlation\build\wasm-shared\WasmApp.Common.targets(672,5): error : Precompiling failed for C:\helix\work\workitem\e\wasm_build\obj\wasm\for-build\aot-in\System.Private.Xml.dll with exit code -1073740791. [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
C:\helix\work\correlation\build\wasm-shared\WasmApp.Common.targets(672,5): error : Mono Ahead of Time compiler - compiling assembly C:\helix\work\workitem\e\wasm_build\obj\wasm\for-build\aot-in\System.Private.Xml.dll [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
C:\helix\work\correlation\build\wasm-shared\WasmApp.Common.targets(672,5): error : Could not allocate 163840 bytes [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
  [System.Private.CoreLib.dll] Exec (with response file contents expanded) in C:\helix\work\workitem\e\wasm_build\obj\wasm\for-build\aot-in: MONO_PATH=C:\helix\work\workitem\e\wasm_build\obj\wasm\for-build\aot-in;C:\helix\work\correlation\build\microsoft.netcore.app.runtime.browser-wasm\runtimes\browser-wasm\native\;C:\helix\work\correlation\build\microsoft.netcore.app.runtime.browser-wasm\runtimes\browser-wasm\lib\net10.0 MONO_ENV_OPTIONS= C:\helix\work\correlation\build\cross\mono-aot-cross.exe --wasm-exceptions --debug --llvm "--aot=no-opt,static,direct-icalls,deterministic,mattr=simd,nodebug,llvm-path=C:\helix\work\correlation\build\emsdk\bin\,static,dedup-skip,trimming-eligible-methods-outfile=C:\helix\work\workitem\e\wasm_build\obj\wasm\for-build\tokens\System_Private_CoreLib_dll_compiled_methods.txt,llvmonly,interp,asmonly,llvm-outfile=C:\helix\work\workitem\e\wasm_build\obj\wasm\for-build\System.Private.CoreLib.dll.bc.tmp,temp-path=C:\helix\work\workitem\e\wasm_build\obj\wasm\for-build\System.Private.CoreLib.dll.tmp" "System.Private.CoreLib.dll"
  
C:\helix\work\correlation\build\wasm-shared\WasmApp.Common.targets(672,5): error : Precompiling failed for C:\helix\work\workitem\e\wasm_build\obj\wasm\for-build\aot-in\System.Private.CoreLib.dll with exit code -1073740791. [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
C:\helix\work\correlation\build\wasm-shared\WasmApp.Common.targets(672,5): error : Mono Ahead of Time compiler - compiling assembly C:\helix\work\workitem\e\wasm_build\obj\wasm\for-build\aot-in\System.Private.CoreLib.dll [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
C:\helix\work\correlation\build\wasm-shared\WasmApp.Common.targets(672,5): error : Could not allocate 163840 bytes [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
  [25/47] System.Private.Xml.Linq.dll -> System.Private.Xml.Linq.dll.bc

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1134807
Error message validated: [WasmApp.Common.targets error : Could not allocate]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 8/29/2025 1:28:18 PM UTC

Report

Build Definition Test Pull Request
1157239 dotnet/runtime WasmTestOnChrome-ST-System.Runtime.Tests.WorkItemExecution #120005
1150838 dotnet/runtime WasmTestOnChrome-ST-System.Runtime.Intrinsics.Tests.WorkItemExecution #119662
1150815 dotnet/runtime WasmTestOnChrome-ST-System.Runtime.Intrinsics.Tests.WorkItemExecution #115766
1143398 dotnet/runtime WasmTestOnChrome-ST-System.Runtime.Intrinsics.Tests.WorkItemExecution #119493
1142935 dotnet/runtime WasmTestOnChrome-ST-System.Runtime.Intrinsics.Tests.WorkItemExecution #119255
1134807 dotnet/runtime WasmTestOnChrome-ST-System.Runtime.Intrinsics.Tests.WorkItemExecution

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 1 6

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions