arklumpus / TreeViewer

Cross-platform software to draw phylogenetic trees
GNU Affero General Public License v3.0
183 stars 8 forks source link

TreeViewer closes when transforming .trees file #40

Closed lespacelay closed 1 month ago

lespacelay commented 1 month ago

I am running Ubuntu 22. When I tried to open a .trees file, I was prompted to subset the file (and make a binary version). I ran the subsetting but when the process ended and got to the "Transforming trees" stage, the application closes with no error message. I thought it was the subsetting process, so I subset the tree file myself so that there were only 1000 trees in the nexus file. The application still dropped, again at the "Transforming trees" stage in the file processing. Thanks for any help, and I understand the difficulties with having software run on multiple platforms, I appreciate that there is a linux version!

arklumpus commented 1 month ago

Hi! Thank you for using TreeViewer!

By any chance, do your taxon names include a | character? This could explain the crash.

Otherwise, would you be able to send me the file that causes the crash, please? Either here or via email.

You can also try opening the command line and running TreeViewer --log-exceptions > exceptions.txt; this will create a file with more information about the error.

lespacelay commented 1 month ago

Thank you! Yes, my trees used the '|' character, I often use it in my alignment headers as my separator for providing metadata to BEAST. That'd be it. I will remove the '|' and maybe just phase out using it in further analyses if it conflicts with file formats or processes. Logging the exceptions is great, thank you - I am guessing it'd be easy to see that the '|' was the problem if I'd produced the log in the first place.