Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Aurelien Mazurie
    Member
    • Feb 2011
    • 15

    #1

    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
  • tonybolger
    Senior Member
    • Feb 2010
    • 156

    #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

    • Aurelien Mazurie
      Member
      • Feb 2011
      • 15

      #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

      • SEQadmin2
        Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
        by SEQadmin2



        CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

        Despite this, “CRISPR helped turn genome editing from a specialized technique into
        ...
        07-31-2026, 11:01 AM
      • SEQadmin2
        Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
        by SEQadmin2


        Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

        The systematic characterization of the human proteome has
        ...
        07-20-2026, 11:48 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 08-06-2026, 07:41 AM
      0 responses
      15 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 08-03-2026, 10:13 AM
      0 responses
      31 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-31-2026, 02:55 AM
      0 responses
      41 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-24-2026, 12:17 PM
      0 responses
      26 views
      0 reactions
      Last Post SEQadmin2  
      Working...