Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Dreaded (because unresolved) bad_alloc error

    Greetings,
    I run into a 'std::bad_alloc()' error when processing a 500MB BAM file with cufflinks on a 8BG machine. The exact error message is

    Code:
    . . .
    > Processed 17748 loci.                        [*************************] 100%
    > Map Properties:
    >	Total Map Mass: 14607725.69
    >	Read Type: 54bp single-end
    >	Fragment Length Distribution: Gaussian (default)
    >	              Estimated Mean: 205.82
    >	           Estimated Std Dev: 73.30
    [16:12:46] Assembling transcripts and estimating abundances.
    > Processing Locus EG_1:2534992-2535117        [************************ ]  99%terminate called after throwing an instance of 'std::bad_alloc'
      what():  std::bad_alloc
    I saw many posts about this 'bad_alloc' error, which seams to be related to memory problems. For example,
    http://seqanswers.com/forums/showpos...9&postcount=11
    Application of sequencing to RNA analysis (RNA-Seq, whole transcriptome, SAGE, expression analysis, novel organism mining, splice variants)

    Application of sequencing to RNA analysis (RNA-Seq, whole transcriptome, SAGE, expression analysis, novel organism mining, splice variants)

    Discussion of next-gen sequencing related bioinformatics: resources, algorithms, open source efforts, etc

    Discussion of next-gen sequencing related bioinformatics: resources, algorithms, open source efforts, etc

    Discussion of next-gen sequencing related bioinformatics: resources, algorithms, open source efforts, etc

    However none of those posts received an answer. Does anybody have an idea why this error occurs and how to fix it? I tried to run the same process on a Mac with 4 cores and 8GB of RAM, and a Linux 64bits with 4 cores and 12GB of RAM, with the same result.

    Best,
    Aurelien

  • #2
    Originally posted by Aurelien Mazurie View Post
    I saw many posts about this 'bad_alloc' error, which seams to be related to memory problems.
    AFAIK, this always indicates that an attempt at allocating memory failed.

    This can be a result of running out of memory (due to actual need or a memory leak), an attempt to allocate a stupidly large amount of memory via a broken calculation, or heap fragmentation (so there's enough in total, just not enough in one chunk). You also could be hitting ulimits - check if there are any.

    Try monitoring the consumed resources as it runs (e.g. using top), or if that isn't enlightening, maybe see if you can enable detailed logging. Last resort would be a debugger or some other tool to track memory allocations, and see what you see.

    Comment


    • #3
      Originally posted by Eteleeb
      Aurelien,
      Did you find solution for the problem above? I having the same problem.

      -Eteleeb
      I moved on other projects since then, and I can't remember how I fixed (or dealt with) this error anymore. I know I got the pipeline running on the same machines, so the solution wasn't to add memory.
      Aurelien

      Comment

      Latest Articles

      Collapse

      • seqadmin
        Essential Discoveries and Tools in Epitranscriptomics
        by seqadmin


        The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist on Modified Bases...
        Yesterday, 07:01 AM
      • seqadmin
        Current Approaches to Protein Sequencing
        by seqadmin


        Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
        04-04-2024, 04:25 PM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, 04-11-2024, 12:08 PM
      0 responses
      39 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-10-2024, 10:19 PM
      0 responses
      41 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-10-2024, 09:21 AM
      0 responses
      35 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-04-2024, 09:00 AM
      0 responses
      55 views
      0 likes
      Last Post seqadmin  
      Working...
      X