Error code

SQLite SQLITE_NOMEM

SQLITESQLITE_NOMEM
Database Error Code· An error code returned by a database server such as PostgreSQL or MySQL.

What it means

out of memory — a memory allocation failed.

How to fix it

  1. Reduce per-connection page cache size with PRAGMA cache_size.
  2. Free other allocations in the process before retrying the operation.
  3. On embedded systems increase available heap or use a smaller SQLite configuration compiled with reduced footprint.

Not affiliated with SQLite. Answer summarized from the manufacturer's manual linked above; consult that source for the authoritative procedure.