# Feature-classifier classify-sklearn; Error Segmentation fault (core dumped)

**URL:** https://forum.qiime2.org/t/feature-classifier-classify-sklearn-error-segmentation-fault-core-dumped/5140
**Category:** User Support
**Tags:** feature-classifier
**Created:** [July 20, 2018, 12:16pm UTC](https://forum.qiime2.org/t/feature-classifier-classify-sklearn-error-segmentation-fault-core-dumped/5140 "2018-07-20T12:16:33Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![emmo1](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/e/839c29/32.png) [@emmo1](https://forum.qiime2.org/u/emmo1)
#### Post date: [July 20, 2018, 12:16pm UTC](https://forum.qiime2.org/t/feature-classifier-classify-sklearn-error-segmentation-fault-core-dumped/5140/1 "2018-07-20T12:16:33Z")

</div>

Hi,

I am using the following command to classify sequences uses a trained reference file from the qiime2 website:

qiime feature-classifier classify-sklearn   
--i-classifier silva-132-99-515-806-nb-classifier.qza   
--i-reads rep-seqs.qza   
--o-classification taxonomy.qza

I have tried this command on two computers now. When I first ran the command, on both computers, I initially got an error indicating that I ran out of space in my temporary directory, so I created a new temporary directory and changed the temporary environment variable. This was confirmed after running the following:

> env

However, after I change where temporary files should be saved, and rerunning the original command, I get a new error saying "Segmentation fault (core dumped)." I was using a computer with 8G of RAM, but then switched to one with 32G of RAM. The same error continues to occur.

Any help would be appreciated. Thanks!

---

<div class="post-metadata">

### Author: ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)
#### Post date: [July 20, 2018, 12:19pm UTC](https://forum.qiime2.org/t/feature-classifier-classify-sklearn-error-segmentation-fault-core-dumped/5140/2 "2018-07-20T12:19:55Z")

</div>



---

<div class="post-metadata">

### Author: ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)
#### Post date: [July 21, 2018, 1:01am UTC](https://forum.qiime2.org/t/feature-classifier-classify-sklearn-error-segmentation-fault-core-dumped/5140/3 "2018-07-21T01:01:19Z")

</div>

Hey there @emmo1!

> [@emmo1](#):
>
> I initially got an error indicating that I ran out of space in my temporary directory,

Just to make this clear, this means a partition on your hard disk is running out of space.

> [@emmo1](#):
>
> I was using a computer with 8G of RAM, but then switched to one with 32G of RAM

RAM (memory) is not disk space, but rather random-access memory space. Perhaps you are seeing this [segfault](https://en.wikipedia.org/wiki/Segmentation_fault) because the location you mapped to is a ramdisk?

Can you provide some details about the disks, partitioning, and where you mapped tmp to?

Thanks! :qiime2:

---

<div class="post-metadata">

### Author: ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)
#### Post date: [July 21, 2018, 1:01am UTC](https://forum.qiime2.org/t/feature-classifier-classify-sklearn-error-segmentation-fault-core-dumped/5140/4 "2018-07-21T01:01:20Z")

</div>



---

<div class="post-metadata">

### Author: ![emmo1](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/e/839c29/32.png) [@emmo1](https://forum.qiime2.org/u/emmo1)
#### Post date: [July 22, 2018, 12:07pm UTC](https://forum.qiime2.org/t/feature-classifier-classify-sklearn-error-segmentation-fault-core-dumped/5140/5 "2018-07-22T12:07:40Z")

</div>

Hey @thermokarst,

My working directory was

> "/mnt/e/qiime/"

and I created a new temporary and saved to qiime2 environment using:

> mkdir /mnt/e/new\_temp  
> export TMPDIR='/mnt/e/new\_temp'

The 'E:' drive has 205G free after using

> df -h

I think the issue was with the Windows linux subsystem, which until this moment has not had any problems handling linux programs. However, I used a Mac OS device recently and have successfully classified the features in my samples. Therefore, you can disregard this issue. I appreciate the quick response 🙂

---

<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: [August 22, 2018, 6:13pm UTC](https://forum.qiime2.org/t/feature-classifier-classify-sklearn-error-segmentation-fault-core-dumped/5140/6 "2018-08-22T18:13:56Z")

</div>

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