Seqanswers Leaderboard Ad

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

    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

      • seqadmin
        New Genomics Tools and Methods Shared at AGBT 2025
        by seqadmin


        This year’s Advances in Genome Biology and Technology (AGBT) General Meeting commemorated the 25th anniversary of the event at its original venue on Marco Island, Florida. While this year’s event didn’t include high-profile musical performances, the industry announcements and cutting-edge research still drew the attention of leading scientists.

        The Headliner
        The biggest announcement was Roche stepping back into the sequencing platform market. In the years since...
        03-03-2025, 01:39 PM
      • seqadmin
        Investigating the Gut Microbiome Through Diet and Spatial Biology
        by seqadmin




        The human gut contains trillions of microorganisms that impact digestion, immune functions, and overall health1. Despite major breakthroughs, we’re only beginning to understand the full extent of the microbiome’s influence on health and disease. Advances in next-generation sequencing and spatial biology have opened new windows into this complex environment, yet many questions remain. This article highlights two recent studies exploring how diet influences microbial...
        02-24-2025, 06:31 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, Yesterday, 05:03 AM
      0 responses
      16 views
      0 reactions
      Last Post seqadmin  
      Started by seqadmin, 03-19-2025, 07:27 AM
      0 responses
      15 views
      0 reactions
      Last Post seqadmin  
      Started by seqadmin, 03-18-2025, 12:50 PM
      0 responses
      16 views
      0 reactions
      Last Post seqadmin  
      Started by seqadmin, 03-03-2025, 01:15 PM
      0 responses
      185 views
      0 reactions
      Last Post seqadmin  
      Working...