gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

WASM crash in getComputedWidth

Open jacob314 opened this issue 3 weeks ago • 2 comments

What happened?

wasm://wasm/000460e2:1

RuntimeError: memory access out of bounds at wasm://wasm/000460e2:wasm-function[215]:0xd5ef at wasm://wasm/000460e2:wasm-function[185]:0xcf8c at X.getComputedWidth (file:///Users/jacobr/git/gemini-cli/emoji_width/node_modules/yoga-layout/dist/binaries/yoga-wasm-base64-esm.js:33:52) at renderer (file:///Users/jacobr/git/gemini-cli/emoji_width/node_modules/ink/build/renderer.js:163:49) at Object.onRender [as onImmediateRender] (file:///Users/jacobr/git/gemini-cli/emoji_width/node_modules/ink/build/ink.js:194:70) at debounce$1.edges.edges (file:///Users/jacobr/git/gemini-cli/emoji_width/node_modules/es-toolkit/dist/compat/function/debounce.mjs:18:23) at invoke (file:///Users/jacobr/git/gemini-cli/emoji_width/node_modules/es-toolkit/dist/function/debounce.mjs:8:18) at onTimerEnd (file:///Users/jacobr/git/gemini-cli/emoji_width/node_modules/es-toolkit/dist/function/debounce.mjs:15:13) at Timeout._onTimeout (file:///Users/jacobr/git/gemini-cli/emoji_width/node_modules/es-toolkit/dist/function/debounce.mjs:26:13) at listOnTimeout (node:internal/timers:605:17)

Node.js v25.2.1 ERROR: npm start failed. Please check its output for details. 'grun' function failed (sub-commands exited with status 1).

What did you expect to happen?

Expect Yoga to not crash. Potentially we passed Yoga an invalid width.

Client information

Client Information

Run gemini to enter the interactive CLI, then run the /about command.

> /about
# paste output here

Login information

No response

Anything else we need to know?

No response

jacob314 avatar Dec 05 '25 18:12 jacob314

p2 as only crash reproduced was on exit anyway. If more users report we should up priority.

jacob314 avatar Dec 05 '25 18:12 jacob314

Node.js v25.2.1 is bleeding edge. Do you experience the same issue with Node.js 20 ?

afarber avatar Dec 09 '25 09:12 afarber