You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prepare query failed:
select route, idx_last_visited_node, next_node_distance from vehicles where id = ?
terminate called after throwing an instance of 'std::runtime_error'
what(): out of memory
Aborted (core dumped)
Reason:
An RSAlgorithm class is initialized before a Cargo class. The RSAlgorithm class tries to prepare statements against the Cargo DB, but the DB is not created yet.
sqlite3_errmsg
indbsql.cc > prepare_stmt(2)
receives a bad pointer, hence we get a misleading error message (see https://stackoverflow.com/questions/43321649/failed-from-sqlite3-prepare-v2-error-is-out-of-memory).Workaround:
Initialize
Cargo
beforeRSAlgorithm
. For example:The text was updated successfully, but these errors were encountered: