Transaction & RPC errors

MemoryAllocationFailed

Appears as memory allocation failed, out of memory

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 or Strings, 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.

Decode another error

Try: