[Spade] Deleting or uploading a game on a fresh build causes Out of Memory
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 1.8k
- Avg merge
- 8d 12h
- Merged PRs (30d)
- 12
Description
**Describe the bug**
Uploading a game from the Sprig website to a Sprig hardware, or deleting a game from the Sprig hardware using the dedicated Spade feature causes a PANIC error of type "Out of Memory" in the serial console, and Spade freezes. This seems to happen on fresh builds (not prebuilt, meaning compiled by yourself from the firmware/spade folder)
**To Reproduce**
Steps to reproduce the behavior:
1. Compile Spade by yourself
2. Flash it onto your Sprig (note: it only works a certain way, see https://github.com/hackclub/sprig/issues/3858)
3. Try to upload a game to your Sprig.
4. See a Out of Memory error in the serial log (or if you don't have a serial console, see how Spade freezes)
5. This occurs as well if, right between flashing the proper firmware and flashing your own firmware, you upload a game, then after flashing your own firmware you try deleting the game you uploaded.
**Expected behavior**
Games should appear in the list or disappear from the list once uploaded or deleted.
**Actual behavior**
Spade freezes and gives an Out of Memory error.
Contributor guide
Research direction
Start in the firmware/spade folder, compile a fresh Spade build, flash it to a Sprig, and reproduce the upload and delete flows while watching the serial console for the Out of Memory panic. Done means games can be uploaded and deleted, appear or disappear from the list, and Spade no longer freezes.
Written by the indexing model from the issue text.
Assessment
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100