Playdate.sound.sample.new: Malloc Failed on device, but fine on simulator

Loading a sound I get an error: malloc(1332258) failed. This is after loading a not-small sample. Checking on the Memory in the Simulator, I am almost definitely running out of ram.

It'd be cool if the simulator had some kind of warning when you would run out of ram on the device.

Not that this is really a bug... more like a developer who discovers how much RAM is on the device. I'm positing so it's discoverable by others. :slight_smile:

Do you have Malloc Pool on? It should keep track of allocated memory and error like it would on device if it runs out.

3 Likes

Nice. That's exactly it. Thank you.