## Summary Copied from Discord. Very simple program requires 100MB+ memory ```rust use rustpython_vm as vm; fn main() -> vm::PyResult<()> { vm::Interpreter::without_stdlib(Default::default()).enter(|vm| { let scope = vm.new_scope_with_builtins(); let source = r#"a = 1"#; let code_obj = vm .compile(source, vm::compiler::Mode::Exec, "<embedded>".to_owned()) .map_err(|err| vm.new_syntax_error(&err, Some(source)))?; vm.run_code_obj(code_obj, scope)?; Ok(()) }) } ``` <!-- Short description of the bug --> ## Expected <!-- What's the expected result? Using ``` ``` block is preferred for text. --> ## Actual ``` ./wasmi_cli /tmp/embedded-rust-python.wasm memory allocation of 79167488 bytes failed Aborted ``` <!-- What's the actual result? Using ``` ``` block is preferred for text. --> ## Python Documentation <!-- If applicable. -->
Activity
astrale-sharp commentedon Jun 23, 2023
I'm running into similar issues, did you compile with --release ?
SeaRoll commentedon Aug 9, 2025
running into same issue
Fix WASM memory allocation failure (RustPython#4989)
Fix WASM memory allocation failure (RustPython#4989)
Fix WASM memory allocation failure (#4989) (#7887)
Fix WASM memory allocation failure (#4989) (#7887)