Duet3D / RepRapFirmware

OO C++ RepRap Firmware
GNU General Public License v3.0
939 stars 532 forks source link

Check for sufficient free memory before allocating a new heap block #1013

Open dc42 opened 4 months ago

dc42 commented 4 months ago

Currently, excessive use of variables and especially arrays can lead to Out Of Memory resets on Duet 2, which are hard to debug. We should consider checking whether there is enough free memory for a new heap block and aborting the current meta command graciously if not. See https://forum.duet3d.com/post/339777.