Micro:Bit crashing 020 (Bluetooth + Text + Event)

Hello,
I have an Issue receiving an out of memory issue with a pretty simple code:

  • Display Some Text on the screen
  • Have something in the forever loop
  • Create a listener for bluetooth.onUartDataReceived
  • Create a listener for Button A

If now the Buton Event is called while the test is scrolling the microbit will crash after it finished with it. The Button event won’t be called at all.

That having said the pretty old /v1 Editor works quite perfect and can cache a lot of Events and will then delete the events on line instead of crashing after like 10 events in line.

Here is the complete Code for testing:

This wasn’t easy to figure out, because at first I had much bigger code basis and thought that might be the reason. But I feel like a memory issue in such a short code could be a bug.

Does anyone have the same problem? Maybe there is just a little bug to fix somewhere?

Thank you for reading
Juri

1 Like

It seem to depend on the start block somehow:

Perhaps you should better open an issue at github.

1 Like