⌘+k ctrl+k
1.3 (stable)
Search Shortcut cmd + k | ctrl + k
Internal Errors

Internal errors signal an assertion failure within DuckDB. They usually occur due to unexpected conditions or errors in the program's logic.

For example, running issue 17002 on DuckDB v1.2.1 results in an internal error.

INTERNAL Error:
Attempted to access index 3 within vector of size 3

The issue is fixed in DuckDB v1.2.2 and newer versions.

After encountering an internal error, DuckDB enters “restricted mode”, where any further operations will result in the following error message:

FATAL Error:
Failed: database has been invalidated because of a previous fatal error.
The database must be restarted prior to being used again.

To continue working with the same database, start a new DuckDB session on the same database.

The reason DuckDB enters “restricted mode” is because the database is in an undefined state. Internal errors are by definition bugs that should never happen so the code path is never tested.

If you encounter an internal error, please consider creating a minimal reproducible example and submitting an issue to the DuckDB issue tracker.