Hi all,
I am trying to use Control-FreeC software in order to look for CNA in tumor samples, but I have to deal with an error:
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted (core dumped)
It seems that program run out of memory. I tried to rerun in single-thread mode but I got the same error. Note that I have plenty of free memory while running freec.
Did anyone face the same problem?
Thank you in advance.
Definitely a problem of the memory allocation. Is your config file properly set? All your parameters in the config file set as per the best practice? V. Boeva the developer of the tool is pretty active if you mail her to reply for the problem. There can be many reasons for this problem.
The
window
and thestep
parameter setting for the segmentation might be too low, and also theminMappabilityPerWindow
andbreakPointThreshold
you can increase that and see if that is really creating the problem. Then are you running it on whole genome or whole exome? I have usually used it for whole exome with normal and tumor bam files with no segmentation error.How much memory are you allocating to the script while running the tool on your config file?
Thank you for your answer Chris. You know I tried to play with all these options you mentioned before. I run a test sample a month ago and it worked like a charm. Now that I decided to run a whole analysis I faced this issue. Since, I was extremely disappointed and I couldn't figure out what is going on, I decided to re-download the freec and guess what.....It WORKED. I dunno, but somehow the previous version I downloaded a month ago was corrupted. The most frustrating thing is that I almost spent a day on that, but at the end the solution was sooooo simple! S...t happens!
In any case, thank you for your answer Cheers
Probably a problem with the different archived dependency file paths that might have been screwed or not set earlier with the previous version you downloaded. Was it a different version you downloaded again or the same version?
The version is exactly the same, so probably the error should be due to some screwed files. Thanks anyway
Have you found the solution? I am also facing the same problem: terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Aborted (core dumped)
I just re-downloaded and it worked! strange eh? good luck!