python-editor-v3 icon indicating copy to clipboard operation
python-editor-v3 copied to clipboard

[Simulator] table index is out of bounds crash

Open microbit-matt-hillsdon opened this issue 3 years ago • 1 comments
trafficstars

There's a few of these to look at. The error is immediately after the simulator starts for the first time in the session.

Chrome 106, Windows 10.

wasm://wasm/004af5b6:wasm-function[908]:0xcbcfe
5
/v/0.1/build/firmware.js in ret.<computed> at line 1895:35

/v/0.1/build/firmware.js at line 1045:22

/v/0.1/build/firmware.js in invoke_iiii at line 2463:12

/v/0.1/build/firmware.js in imports.<computed> at line 1861:35

At minimum we we need to improve our ability to understand this sort of crash.

The simulator will automatically stop in this scenario but it'll be confusing to the user.

microbit-matt-hillsdon avatar Oct 28 '22 12:10 microbit-matt-hillsdon

Initial work here: https://github.com/microbit-foundation/micropython-microbit-v2-simulator/pull/89

microbit-matt-hillsdon avatar Nov 02 '22 13:11 microbit-matt-hillsdon