Transaction
MemoryAllocationFailed
“memory allocation failed, out of memory”
The program exhausted its heap (32 KiB by default). Reported as a program failure.
Common causes
- Allocating large
Vecs orStrings, or deserialising large accounts into owned structs.
How to fix it
- Request a larger heap with
ComputeBudgetProgram.requestHeapFrame(up to 256 KiB). - Use zero-copy deserialisation and avoid cloning account data.