microbit-foundation / python-editor-v3

Micro:bit Educational Foundation Python Editor V3
https://python.microbit.org
MIT License
57 stars 36 forks source link

[Simulator] table index is out of bounds crash #1057

Open microbit-matt-hillsdon opened 1 year ago

microbit-matt-hillsdon commented 1 year ago

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 commented 1 year ago

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