Intermittent "memory access out of bounds" error when importing sklearn.datasets #729
Closed
Description
We are in chrome 83 running pyodide in web workers. Running any command that includes from sklearn.datasets import load_iris
(with or without pre-loading using loadPackage
) will intermittently crash with "memory access out of bounds" errors.
Whether the error occurs is consistent until a browser refresh, meaning if running the command throws this error once, running again will always throw the error, even though it is run in a newly initialized web worker/pyodide environment. this can also be reproduced with any of the sklearn.dataset objects. Can provide more debugging info if needed.
Is this known behavior that can be mitigated?
Attached some stacktraces:
python error RuntimeError: memory access out of bounds
at _free (https://pyodide-cdn2.iodide.io/v0.15.0/full/pyodide.asm.wasm:wasm-function[12336]:0x872828)
at __PyMem_RawFree (https://pyodide-cdn2.iodide.io/v0.15.0/full/pyodide.asm.wasm:wasm-function[1754]:0x1ade3b)
at https://pyodide-cdn2.iodide.io/v0.15.0/full/pyodide.asm.wasm:wasm-function[15550]:0x975d11
at _freechildren (https://pyodide-cdn2.iodide.io/v0.15.0/full/pyodide.asm.wasm:wasm-function[461]:0xff835)
at _freechildren (https://pyodide-cdn2.iodide.io/v0.15.0/full/pyodide.asm.wasm:wasm-function[461]:0xff789)
at _freechildren (https://pyodide-cdn2.iodide.io/v0.15.0/full/pyodide.asm.wasm:wasm-function[461]:0xff789)
at _freechildren (https://pyodide-cdn2.iodide.io/v0.15.0/full/pyodide.asm.wasm:wasm-function[461]:0xff789)
at _freechildren (https://pyodide-cdn2.iodide.io/v0.15.0/full/pyodide.asm.wasm:wasm-function[461]:0xff789)
at _freechildren (https://pyodide-cdn2.iodide.io/v0.15.0/full/pyodide.asm.wasm:wasm-function[461]:0xff789)
at _freechildren (https://pyodide-cdn2.iodide.io/v0.15.0/full/pyodide.asm.wasm:wasm-function[461]:0xff789)
python error RuntimeError: memory access out of bounds
at _malloc (https://pyodide-cdn2.iodide.io/v0.15.0/full/pyodide.asm.wasm:wasm-function[12335]:0x87035c)
at __PyMem_RawMalloc (https://pyodide-cdn2.iodide.io/v0.15.0/full/pyodide.asm.wasm:wasm-function[1751]:0x1ade09)
at https://pyodide-cdn2.iodide.io/v0.15.0/full/pyodide.asm.wasm:wasm-function[15547]:0x975ce4
at _parsetok (https://pyodide-cdn2.iodide.io/v0.15.0/full/pyodide.asm.wasm:wasm-function[495]:0x104cd9)
at _PyParser_ParseStringObject (https://pyodide-cdn2.iodide.io/v0.15.0/full/pyodide.asm.wasm:wasm-function[494]:0x104b23)
at _PyParser_ASTFromStringObject (https://pyodide-cdn2.iodide.io/v0.15.0/full/pyodide.asm.wasm:wasm-function[3233]:0x380f23)
at _Py_CompileStringObject (https://pyodide-cdn2.iodide.io/v0.15.0/full/pyodide.asm.wasm:wasm-function[3234]:0x381068)
at _builtin_compile (https://pyodide-cdn2.iodide.io/v0.15.0/full/pyodide.asm.wasm:wasm-function[2687]:0x30e716)
at https://pyodide-cdn2.iodide.io/v0.15.0/full/pyodide.asm.wasm:wasm-function[15960]:0x97722b
at __PyMethodDef_RawFastCallDict (https://pyodide-cdn2.iodide.io/v0.15.0/full/pyodide.asm.wasm:wasm-function[836]:0x132d4c)
Metadata
Assignees
Labels
No labels