Files
esp32-lua-api/native/include/lua
evan 873e003c45 fix(layout): reserve growable tree vectors up front to avoid bad_alloc
Reserve nodes/specs/styles/labelAt/labels at reset() while the heap still
has a large contiguous block. A doubling realloc mid-build needs old+new
buffers live at once and throws bad_alloc on the heap the build itself has
fragmented; the styles vector was the one tripping the firmware's global
new-handler into a reset with ~10 populated cards.

UNVALIDATED: reproduced and fixed in the emulator only. Hardware has ~30KB
less free (NimBLE DMA buffers), so the reserves at reset() may still be
marginal there -- not yet tested on the board.
2026-08-08 08:49:54 -04:00
..
2026-08-04 10:21:18 -04:00