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

build step failed after throwing an instance of 'std::bad_alloc' #24

Open
rmormando opened this issue Dec 14, 2023 · 2 comments
Open

build step failed after throwing an instance of 'std::bad_alloc' #24

rmormando opened this issue Dec 14, 2023 · 2 comments
Assignees

Comments

@rmormando
Copy link

I am trying to build a kmer db using the k-mer output from KMC but I keep getting an error.

This is the command I am running:

./kmer-db build -from-kmers ./KMC.list ./output/KMC_out.db

Where the list looks like this:

Sample1
Sample2
Sample3
...

And the files in the directory are like this:

Sample1.kmc_pre
Sample1.kmc_suf
Sample2.kmc_pre
Sample2.kmc_suf
Sample3.kmc_pre
Sample3.kmc_suf
...

But I get this error when I try to run it:

Kmer-db version 1.11.1 (07.03.2023)
S. Deorowicz, A. Gudys, M. Dlugosz, M. Kokot, and A. Danek (c) 2018

Analysis started at Thu Dec 14 23:19:36 2023

Database building mode (from k-mers)
Processing samples...
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Aborted

Is there a quick fix for this?

@agudys agudys self-assigned this Apr 12, 2024
@agudys
Copy link
Member

agudys commented Apr 12, 2024

Hello!

I will take a look on -from-kmers mode - maybe something got messed up in on of the last releases.

Best,
Adam

@jov131
Copy link

jov131 commented Sep 8, 2024

I got a similar error while running all2all module:

kmer-db all2all -t 4 samples_ct.txt ct_km25

Kmer-db version 1.11.1 (07.03.2023)
All versus all comparison
Loading k-mer database samples_ct.txt...
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted (core dumped)

The service is equipped with 40G RAM.
Is there anyway to solve this problem?

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

3 participants