Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FreeBayes sudden error #794

Closed
emilydolivo97 opened this issue Apr 4, 2024 · 4 comments
Closed

FreeBayes sudden error #794

emilydolivo97 opened this issue Apr 4, 2024 · 4 comments

Comments

@emilydolivo97
Copy link

I'm used to run the same freebayes code on my BAM files. I tried today to rerun the same code on the same bam files using the same conda env but I have this error. I'm using these packages version :

minimap2==2.26
samtools==1.19.2
freebayes==1.3.7
( in my script I combined minimap2 and freebayes)

/opt/conda/conda-bld/freebayes_1711687983774/_build_env/x86_64-conda-linux-gnu/include/c++/12.3.0/bits/stl_vector.h:1123: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator [with _Tp = Allele; _Alloc = std::allocator; reference = Allele&; size_type = long unsigned int]: Assertion '__n < this->size()' failed. Aborted (core dumped)*

@ryan-earp
Copy link

I am having the same issues.

/opt/conda/conda-bld/freebayes_1711687983774/_build_env/x86_64-conda-linux-gnu/include/c++/12.3.0/bits/stl_vector.h:1123: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator [with _Tp = Allele*; _Alloc = std::allocator<Allele*>; reference = Allele*&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.
Aborted (core dumped)

@emilydolivo97
Copy link
Author

I am having the same issues.

/opt/conda/conda-bld/freebayes_1711687983774/_build_env/x86_64-conda-linux-gnu/include/c++/12.3.0/bits/stl_vector.h:1123: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator [with _Tp = Allele*; _Alloc = std::allocator<Allele*>; reference = Allele*&; size_type = long unsigned int]: Assertion '__n < this->size()' failed. Aborted (core dumped)

Please inform me when you have resolved this issue, and I will reciprocate.

@emilydolivo97 emilydolivo97 changed the title FreeBayes encountered a sudden error FreeBayes sudden error Apr 5, 2024
@emilydolivo97
Copy link
Author

I am having the same issues.

/opt/conda/conda-bld/freebayes_1711687983774/_build_env/x86_64-conda-linux-gnu/include/c++/12.3.0/bits/stl_vector.h:1123: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator [with _Tp = Allele*; _Alloc = std::allocator<Allele*>; reference = Allele*&; size_type = long unsigned int]: Assertion '__n < this->size()' failed. Aborted (core dumped)

you need to downgrade freebayes version to 1.3.6

@emollier
Copy link

Hi Pjotr,

Symptoms described in this issue are matching the test errors I'm running into while trying to integrate freebayes 1.3.8 into Debian sid. To reproduce the issue after building the binary:

$ cd test/
$ ../build/freebayes -f tiny/q.fa tiny/NA12878.chr22.tiny.bam
[...]
#CHROM	POS	ID	REF	ALT	QUAL	FILTER	INFO	FORMAT	1
/usr/include/c++/13/bits/stl_vector.h:1125: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = Allele*; _Alloc = std::allocator<Allele*>; reference = Allele*&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.
Aborted
$ echo $?
134

Is it something you run into on your side? If not, I'd be curious about the difference between our platforms.

Cheers,
Étienne.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants