Skip to content

Troubleshooting

James Pan edited this page Jul 7, 2018 · 2 revisions

Known Issues

"Failed (create rsalg stmts). Reason: out of memory"

Possible cause: RSAlgorithm is initialized before Cargo is initialized. RSAlgorithm calls Cargo::db() in its constructor. If Cargo::db() returns an invalid pointer (because Cargo hasn't been initialized yet), then sqlite3 will report an "out of memory" error. The solution is to put RSAlgorithm after Cargo in your code.

Wrong:
    ...
    RSAlgorithm myalg;
    Cargo mycargo(options);

Right:
    ...
    Cargo mycargo(options);
    RSAlgorithm myalg;
Clone this wiki locally