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

"std::bad_alloc" and "Cannot open the file" errors #64

Open
hkaspersen opened this issue Feb 2, 2024 · 0 comments
Open

"std::bad_alloc" and "Cannot open the file" errors #64

hkaspersen opened this issue Feb 2, 2024 · 0 comments

Comments

@hkaspersen
Copy link

I am trying to run the following command on an unzipped fastq-file (only one fastq file in the dir):

nonpareil -s *fastq -T kmer -f fastq -X 10000 -n 2048 -k 24 -t 16

With Nonpareil version 3.4.1, this command results in the following error after running for approximately 20-30 minutes:

Nonpareil v3.401
 [      0.0]  reading 100-B5-3_S15_L002_R1_001.fastq
 [      0.0]  Picking 10000 random sequences
 [      0.0]  Started counting
Fatal error:
Cannot open the file
 [     18.5] Fatal error: Cannot open the file

To test, I switched to version 3.3.3, using the exact same data and command as above, but then I got the following error:

Nonpareil v3.303
 [      0.0]  reading 100-B5-3_S15_L002_R1_001.fastq
 [      0.0]  Picking 10000 random sequences
 [      0.1]  Started counting
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Aborted (core dumped)

In both cases, I had allocated the process 40Gb of memory and 16 CPUs. The file itself is not corrupt or otherwise compromised. I am running Nonpareil through a conda installation (separate envs for each version).
I cannot figure out what the problem is here. Any help would be appreciated!

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