alexdobin / STAR

RNA-seq aligner
MIT License
1.77k stars 495 forks source link

EXITING: fatal error trying to allocate genome arrays, exception thrown: std::bad_alloc #2138

Open Tinsusu opened 1 month ago

Tinsusu commented 1 month ago

I've been having trouble with this error while trying to run STAR on Smart-seq data. Here's the error message. I even tried running 'ulimit -v' as suggested, but the error persists

May 09 09:35:27 ..... started STAR run May 09 09:35:29 ..... loading genome

EXITING: fatal error trying to allocate genome arrays, exception thrown: std::bad_alloc Possible cause 1: not enough RAM. Check if you have enough RAM 32492657569 bytes Possible cause 2: not enough virtual memory allowed with ulimit. SOLUTION: run ulimit -v 32492657569

Here is my setting

STAR --runThreadN 10 \ --genomeDir $starIndex \ --sjdbGTFfile $gtf \ --readFilesCommand zcat \ --readFilesIn $rawdata/$base/WT-Cell-1218_S1270_L004_R1_001.fastq.gz $rawdata/$base/WT-Cell-1218_S1270_L004_R2_001.fastq.gz \ --soloType SmartSeq \ --soloUMIdedup Exact \ --outFileNamePrefix $bamFiles/$base. \ --soloOutFileNames $base \ --outSAMtype BAM SortedByCoordinate