# When BLE MIDI is used with Gestures causes Out Of Memory

**URL:** <https://forum.makecode.com/t/when-ble-midi-is-used-with-gestures-causes-out-of-memory/863>\
**Category:** micro:bit\
**Created:** [December 6, 2019, 11:56am UTC](https://forum.makecode.com/t/when-ble-midi-is-used-with-gestures-causes-out-of-memory/863 "2019-12-06T11:56:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gbraad](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gbraad/32/338_2.png) [@gbraad](https://forum.makecode.com/u/gbraad)\
**Post date:** [December 6, 2019, 11:56am UTC](https://forum.makecode.com/t/when-ble-midi-is-used-with-gestures-causes-out-of-memory/863/1 "2019-12-06T11:56:15Z")

</div>

When I use Bluetooth-MIDI with Gesture.ThreeG and Gesture.SixG it seems the device is easy to throw 020 (out of memory) after a few impacts. This feels like something wrong in how memory is cleared perhaps?

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [December 6, 2019, 7:20pm UTC](https://forum.makecode.com/t/when-ble-midi-is-used-with-gestures-causes-out-of-memory/863/2 "2019-12-06T19:20:19Z")

</div>

Memory is _very_ tight on the micro:bit with the Bluetooth stack running

---

<div class="post-metadata">

**Author:** ![gbraad](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gbraad/32/338_2.png) [@gbraad](https://forum.makecode.com/u/gbraad)\
**Post date:** [December 7, 2019, 4:18am UTC](https://forum.makecode.com/t/when-ble-midi-is-used-with-gestures-causes-out-of-memory/863/3 "2019-12-07T04:18:48Z")

</div>

It feels like this got worse, as this used to work. I can’t quantify as I didn’t keep record before of course, but are recent changes possibly causing this to occur (regressions)?

---

<div class="post-metadata">

**Author:** ![kjw](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@kjw](https://forum.makecode.com/u/kjw)\
**Post date:** [January 31, 2020, 12:16pm UTC](https://forum.makecode.com/t/when-ble-midi-is-used-with-gestures-causes-out-of-memory/863/4 "2020-01-31T12:16:52Z")

</div>

If you want to go back and try/compare a previous release you can specify the version in the url to get that: [https://makecode.microbit.org/v2.0.5](https://makecode.microbit.org/v2.0.5)

I’m not sure if there are release/deployment notes that specify exactly when releases go to beta and production…

---

<div class="post-metadata">

**Author:** ![gbraad](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gbraad/32/338_2.png) [@gbraad](https://forum.makecode.com/u/gbraad)\
**Post date:** [March 1, 2020, 1:53pm UTC](https://forum.makecode.com/t/when-ble-midi-is-used-with-gestures-causes-out-of-memory/863/5 "2020-03-01T13:53:19Z")

</div>

I’ll have a look. have been focussing on other stuff these days due to the situation in China.
