Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preload-size error exits with code 0 #156

Open
jvolkening opened this issue Dec 6, 2023 · 0 comments
Open

preload-size error exits with code 0 #156

jvolkening opened this issue Dec 6, 2023 · 0 comments

Comments

@jvolkening
Copy link

If more memory is requested using --preload-size than is available, KrakenUniq throws an error and terminates (ERROR: Could not allocated memory for loading database chunks). However, the exit code in bash is still 0. I'm not sure why this is because the next line of code in the source is exit(-1);.

The issue can be reproduced simply by requesting more memory than the machine has, e.g on a 128GB machine:

krakenuniq --db db --report-file report.txt --output results.tsv --preload-
size 150G in.fq && echo $?

This causes problems in our Nextflow pipelines because the error situation is not detected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant