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

[BUG] Unable to read trees with sampled ancestors in development #240

Closed
brpetrucci opened this issue May 3, 2022 · 7 comments
Closed

Comments

@brpetrucci
Copy link
Contributor

Describe the bug
Since pulling from development on May 2nd, my scripts have errored when reading trees with sampled ancestors. The specific error is Problem while working with tree: Node had bad index. Two nodes had same index of '0'. This same error is not present when compiling and running the master branch. Furthermore, reading an ultrametric tree or one with extant and fossil tips (but no ancestors) does not lead to error.

To Reproduce
From my tests any tree with sampled ancestors will error, but an example can be downloaded from here, while the equivalent ultrametric tree can be found here, and the tree with fossil and extant tips, but no SAs, here. If tree.nex is the name of the file in question, to reproduce one need simply run readTrees(file = "tree.nex")[1]

Computer info
MacOS Big Sur 11.6, RevBayes development commit ebf2aa7 (Apr 29 2022)

@wrightaprilm
Copy link
Contributor

I am also having this issue on Mac Catalina 10.15.7 and Linux Ubuntu 22.04 LTS.

@brpetrucci
Copy link
Contributor Author

Tried a couple commits up to 8a31d1e (Mar 11) and problem persists.

@brpetrucci
Copy link
Contributor Author

Closed by mistake. Problem still persists in current (Aug 23) version of development

@brpetrucci brpetrucci reopened this Aug 24, 2022
@bredelings
Copy link
Contributor

I'll try and take a look... have you tried compiling a debug version and looking at it in gdb or the xcode debugger?

@bredelings
Copy link
Contributor

@brpetrucci Can you try to make small tree that reproduces the problem? I'm curious what the smallest tree that yield this type of error is. This would serve as a "reduced testcase" that makes it easier to debug.

@bredelings
Copy link
Contributor

@brpetrucci I think I've fixed this on #263 - can you try that out?

@brpetrucci
Copy link
Contributor Author

Seem like it's working! Thank you Ben.

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