# Error while running DADA2 command?

**URL:** https://forum.qiime2.org/t/error-while-running-dada2-command/3316
**Category:** User Support
**Tags:** dada2
**Created:** [March 5, 2018, 2:27pm UTC](https://forum.qiime2.org/t/error-while-running-dada2-command/3316 "2018-03-05T14:27:09Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Soha](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/s/a87d85/32.png) [@Soha](https://forum.qiime2.org/u/Soha)
#### Post date: [March 5, 2018, 2:27pm UTC](https://forum.qiime2.org/t/error-while-running-dada2-command/3316/1 "2018-03-05T14:27:09Z")

</div>

\*\*\* caught segfault \*\*\*  
address 0x8, cause 'memory not mapped'

Traceback:  
1: .Call("\_dada2\_dada\_uniques", PACKAGE = "dada2", seqs, abundances, err, quals, score, gap, use\_kmers, kdist\_cutoff, band\_size, omegaA, max\_clust, min\_fold, min\_hamming, min\_abund, use\_quals, final\_consensus, vectorized\_alignment, homo\_gap, multithread, verbose, SSE)  
2: dada\_uniques(names(derep[[i]]$uniques), unname(derep[[i]]$uniques), err, qi, opts[["SCORE\_MATRIX"]], opts[["GAP\_PENALTY"]], opts[["USE\_KMERS"]], opts[["KDIST\_CUTOFF"]], opts[["BAND\_SIZE"]], opts[["OMEGA\_A"]], if (initializeErr) { 1 } else { opts[["MAX\_CLUST"]] }, opts[["MIN\_FOLD"]], opts[["MIN\_HAMMING"]], opts[["MIN\_ABUNDANCE"]], TRUE, FALSE, opts[["VECTORIZED\_ALIGNMENT"]], opts[["HOMOPOLYMER\_GAP\_PENALTY"]], multithread, (verbose \>= 2), opts[["SSE"]])  
3: dada(drps[1:i], err = NULL, selfConsist = TRUE, multithread = multithread, VECTORIZED\_ALIGNMENT = FALSE, SSE = 2)  
An irrecoverable exception occurred. R is aborting now ...  
Traceback (most recent call last):  
File "/home/qiime2/miniconda/envs/qiime2-2017.12/lib/python3.5/site-packages/q2\_dada2/\_denoise.py", line 126, in denoise\_single  
run\_commands([cmd])  
File "/home/qiime2/miniconda/envs/qiime2-2017.12/lib/python3.5/site-packages/q2\_dada2/\_denoise.py", line 35, in run\_commands  
subprocess.run(cmd, check=True)  
File "/home/qiime2/miniconda/envs/qiime2-2017.12/lib/python3.5/subprocess.py", line 398, in run  
output=stdout, stderr=stderr)  
subprocess.CalledProcessError: Command '['run\_dada\_single.R', '/tmp/qiime2-archive-rx2i34iy/d46613bb-148c-4e30-a84a-1130b7bebbdf/data', '/tmp/tmp3zoxe4lk/output.tsv.biom', '/tmp/tmp3zoxe4lk', '0', '0', '2.0', '2', 'consensus', '1.0', '1', '1000000']' returned non-zero exit status -11

During handling of the above exception, another exception occurred:

Traceback (most recent call last):  
File "/home/qiime2/miniconda/envs/qiime2-2017.12/lib/python3.5/site-packages/q2cli/commands.py", line 224, in **call**  
results = action(\*\*arguments)  
File "", line 2, in denoise\_single  
File "/home/qiime2/miniconda/envs/qiime2-2017.12/lib/python3.5/site-packages/qiime2/sdk/action.py", line 228, in bound\_callable  
output\_types, provenance)  
File "/home/qiime2/miniconda/envs/qiime2-2017.12/lib/python3.5/site-packages/qiime2/sdk/action.py", line 363, in _callable\_executor_  
output\_views = self.\_callable(\*\*view\_args)  
File "/home/qiime2/miniconda/envs/qiime2-2017.12/lib/python3.5/site-packages/q2\_dada2/\_denoise.py", line 137, in denoise\_single  
" and stderr to learn more." % e.returncode)  
Exception: An error was encountered while running DADA2 in R (return code -11), please inspect stdout and stderr to learn more.

Plugin error from dada2:

An error was encountered while running DADA2 in R (return code -11), please inspect stdout and stderr to learn more.

---

<div class="post-metadata">

### Author: ![Nicholas\_Bokulich](https://forum.qiime2.org/user_avatar/forum.qiime2.org/nicholas_bokulich/32/19937_2.png) [@Nicholas\_Bokulich](https://forum.qiime2.org/u/Nicholas_Bokulich)
#### Post date: [March 5, 2018, 2:39pm UTC](https://forum.qiime2.org/t/error-while-running-dada2-command/3316/2 "2018-03-05T14:39:33Z")

</div>



---

<div class="post-metadata">

### Author: ![ebolyen](https://forum.qiime2.org/user_avatar/forum.qiime2.org/ebolyen/32/11_2.png) [@ebolyen](https://forum.qiime2.org/u/ebolyen)
#### Post date: [March 5, 2018, 9:44pm UTC](https://forum.qiime2.org/t/error-while-running-dada2-command/3316/3 "2018-03-05T21:44:00Z")

</div>

Hi @Soha,

It's been a while since we've seen the dreaded [`0x8` error](https://forum.qiime2.org/search?q=0x8%20memory%20not%20mapped). I notice you are running 2017.12 which had an early release with this issue.

Could you provide the results of `qiime info`? You may just need to update to the latest QIIME 2 (in fact I would recommend that in either case!)

Otherwise, do you have an RStudio installation alongside QIIME 2 (or any other installation of R)? The library paths are known to conflict with each other causing this issue as well. In that case use:

```auto
echo ".libPaths(.libPaths()[2])" > ~/.Rprofile

```

to correct the problem, although this will come at the cost of RStudio's packages.

---

<div class="post-metadata">

### Author: ![ebolyen](https://forum.qiime2.org/user_avatar/forum.qiime2.org/ebolyen/32/11_2.png) [@ebolyen](https://forum.qiime2.org/u/ebolyen)
#### Post date: [March 5, 2018, 9:44pm UTC](https://forum.qiime2.org/t/error-while-running-dada2-command/3316/4 "2018-03-05T21:44:16Z")

</div>



---

<div class="post-metadata">

### Author: ![system](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/3X/2/1/21af5fe23cb6f4579467c66a9ed94e55274ca7bd.svg) [@system](https://forum.qiime2.org/u/system)
#### Post date: [April 6, 2018, 3:44am UTC](https://forum.qiime2.org/t/error-while-running-dada2-command/3316/5 "2018-04-06T03:44:19Z")

</div>

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
