Skip to content

[browser][AOT] wasm-ld : error : initial memory too small #96840

Closed

Description

@pavelsavara

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

Log

  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: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=523499
Error message validated: wasm-ld : error : initial memory too small
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 1/11/2024 2:03:08 PM UTC

Report

Summary

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

Activity

  1. added
    arch-wasm
    blocking-clean-ci
    Known Build Error
    os-browser
    on Jan 11, 2024
  2. added this to the 9.0.0 milestone on Jan 11, 2024
  3. radical commented on Jan 11, 2024

    @radical
    Member

    the computed size from the binlog: WasmInitialHeapSize=18939904. And the error has 19468624 bytes needed. difference of ~500kb.

  4. radical commented on Jan 11, 2024

    @radical
    Member
  5. locked and limited conversation to collaborators on Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Known Build Errorarch-wasmarea-Build-monoblocking-clean-cios-browser

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions