You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The JavaScript port's garbage collector may need to be revisited. I am not sure where the exact problem is, but running import gc followed by gc.collect triggers the following error:
RuntimeError: memory access out of bounds
at wasm-function[35]:0x15fa
at invoke_vii (ports/javascript/build/micropython.js:2188:25)
at wasm-function[1387]:0xa200b
at wasm-function[1094]:0x79b38
at wasm-function[647]:0x4b571
at wasm-function[426]:0x3554d
at wasm-function[424]:0x3543c
at invoke_iiii (ports/javascript/build/micropython.js:2133:32)
at wasm-function[1179]:0x7f687
at wasm-function[657]:0x4c416
EDIT: I should also note that this is being compiled with Emscripten 2.0.4, which uses WebAssembly instead of asm.js. However, we found that the same crash occurs in asm.js mode (though the stack trace is obviously different).
The text was updated successfully, but these errors were encountered:
The GC now works correctly using asyncify and the functions
emscripten_scan_stack() and emscripten_scan_registers(). Stack/call depth
is monitored via the use of the pystack option.
Fixes issue micropython#6738.
Signed-off-by: Damien George <damien@micropython.org>
The JavaScript port's garbage collector may need to be revisited. I am not sure where the exact problem is, but running
import gc
followed bygc.collect
triggers the following error:EDIT: I should also note that this is being compiled with Emscripten 2.0.4, which uses WebAssembly instead of asm.js. However, we found that the same crash occurs in asm.js mode (though the stack trace is obviously different).
The text was updated successfully, but these errors were encountered: