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
        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
      • seqadmin
        Strategies for Sequencing Challenging Samples
        by seqadmin


        Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
        03-22-2024, 06:39 AM

      ad_right_rmr

      Collapse

      News

      Collapse

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