Skip to content

Generated binary crashes with "RuntimeError: memory access out of bounds" #4084

Closed Answered by daxpedda
womeier asked this question in Q&A
Discussion options

You must be logged in to vote

I'm fairly certain that the memory access out of bounds refers to an out-of-bounds read/write in Wasm's linear memory.

Indeed.
I was just going with the theory here that it might be an issue with the stack size, which does affect the available Wasm linear memory.
But, as I said, I didn't actually look into your application.

So if wasm-bindgen doesn't generate Wasm code itself, then this is perhaps the wrong place and I should report it somewhere else.

I was talking specifically about "codegen", ergo the Wasm output, which indeed the majority of doesn't happen in wasm-bindgen.
But this error could still be caused by wasm-bindgen, which might be doing some wrong things here or there.

Ho…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@womeier
Comment options

@daxpedda
Comment options

@womeier
Comment options

@daxpedda
Comment options

Answer selected by womeier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #3910 on August 20, 2024 15:16.