[browser][AOT] wasm-ld : error : initial memory too small
We are doing some estimate how much memory we need, based on binary size. I guess this estimate is no good in this case.
Error Blob
{
"ErrorMessage": "wasm-ld : error : initial memory too small",
"BuildRetry": false,
"ErrorPattern": "",
"ExcludeConsoleLog": false
}
Reproduction Steps
Linking for initial memory $(WasmInitialHeapSize)=18874368 bytes. Set this msbuild property to change the value.
Linking with emcc with -O2 -Wl,-O0 -Wl,--lto-O0. This may take a while ...
"C:/helix/work/correlation/build/emsdk/node/14.18.2_64bit/bin/node.exe" C:\helix\work\correlation\build\emsdk\upstream\emscripten\src\compiler.js C:\Users\ContainerAdministrator\AppData\Local\Temp\tmppkdhk_2y.json --symbols-only
"C:/helix/work/correlation/build/emsdk/upstream/bin\wasm-ld.exe" @C:\Users\ContainerAdministrator\AppData\Local\Temp\emscripten_w6_esgr0.rsp.utf-8
wasm-ld : error : initial memory too small, 19468624 bytes needed [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=523499
cc @radical
Known issue validation
Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=523499
Error message validated: wasm-ld : error : initial memory too small
Result validation: :white_check_mark: Known issue matched with the provided build.
Validation performed at: 1/11/2024 2:03:08 PM UTC
Report
| Build | Definition | Test | Pull Request |
|---|---|---|---|
| 525399 | dotnet/runtime | WasmTestOnBrowser-System.Numerics.Tensors.Tests.WorkItemExecution | dotnet/runtime#96899 |
| 524793 | dotnet/runtime | WasmTestOnBrowser-System.Numerics.Tensors.Tests.WorkItemExecution | dotnet/runtime#95583 |
| 524562 | dotnet/runtime | WasmTestOnBrowser-System.Numerics.Tensors.Tests.WorkItemExecution | dotnet/runtime#95583 |
| 523904 | dotnet/runtime | WasmTestOnBrowser-System.Numerics.Tensors.Tests.WorkItemExecution | dotnet/runtime#96618 |
| 523499 | dotnet/runtime | WasmTestOnBrowser-System.Numerics.Tensors.Tests.WorkItemExecution | dotnet/runtime#96696 |
| 522876 | dotnet/runtime | WasmTestOnBrowser-System.Numerics.Tensors.Tests.WorkItemExecution | dotnet/runtime#96455 |
| 522800 | dotnet/runtime | WasmTestOnBrowser-System.Numerics.Tensors.Tests.WorkItemExecution | dotnet/runtime#96108 |
| 522684 | dotnet/runtime | WasmTestOnBrowser-System.Numerics.Tensors.Tests.WorkItemExecution | dotnet/runtime#96696 |
Summary
| 24-Hour Hit Count | 7-Day Hit Count | 1-Month Count |
|---|---|---|
| 0 | 0 | 8 |
Tagging subscribers to 'arch-wasm': @lewing See info in area-owners.md if you want to be subscribed.
Issue Details
Error Blob
{
"ErrorMessage": "wasm-ld : error : initial memory too small",
"BuildRetry": false,
"ErrorPattern": "",
"ExcludeConsoleLog": false
}
Reproduction Steps
Linking for initial memory $(WasmInitialHeapSize)=18874368 bytes. Set this msbuild property to change the value.
Linking with emcc with -O2 -Wl,-O0 -Wl,--lto-O0. This may take a while ...
"C:/helix/work/correlation/build/emsdk/node/14.18.2_64bit/bin/node.exe" C:\helix\work\correlation\build\emsdk\upstream\emscripten\src\compiler.js C:\Users\ContainerAdministrator\AppData\Local\Temp\tmppkdhk_2y.json --symbols-only
"C:/helix/work/correlation/build/emsdk/upstream/bin\wasm-ld.exe" @C:\Users\ContainerAdministrator\AppData\Local\Temp\emscripten_w6_esgr0.rsp.utf-8
wasm-ld : error : initial memory too small, 19468624 bytes needed [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=523499
We are doing some estimate how much memory we need, based on binary size. I guess this estimate is no good in this case.
cc @radical
| Author: | pavelsavara |
|---|---|
| Assignees: | - |
| Labels: |
|
| Milestone: | 9.0.0 |
the computed size from the binlog: WasmInitialHeapSize=18939904. And the error has 19468624 bytes needed. difference of ~500kb.
cc @radekdoulik