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

beauti from version v.2.7.x won't save xml file #1084

Open
juliadupin opened this issue Feb 13, 2023 · 3 comments
Open

beauti from version v.2.7.x won't save xml file #1084

juliadupin opened this issue Feb 13, 2023 · 3 comments

Comments

@juliadupin
Copy link

Hi all,

I'm using the beast2 package on a windows machine (windows 10), and after testing all beauti versions v.2.7.x, including under compatibility mode, none of them actually saves the xml file. With no error message, or any message of any sort, and no crashing either.
While version v2.6.7 does save it, no problem.

I am fine with just using v2.6.7 but wanted to report the issue in any case.

Julia

@rbouckaert
Copy link
Member

Thanks for the bug report Julia.

It is a bit of a mystery what is happening here, since I have not been able to reproduce the problem with Windows 10 and v2.7.3: importing any alignment, then File/Save and type x produces the file x.xml. Perhaps it is something specific to the packages you have installed?

When you go to the Help/Messages menu, do you see any report of error messages there when saving (especially at the end of the list of messages)? Perhaps there is a clue there to what might be going wrong.

Remco

@juliadupin
Copy link
Author

Hi Remco,

thank you for your reply. It's a java error actually

"Probing: starbeast3.addon.jar Exception in thread "JavaFX Application Thread" java.lang.OutOfMemoryError: Java heap space"

I've tried to follow what you suggested in a previous post by can't seem to get this to work:

java -Xmx8g -cp C:\ProgramFiles\BEAST.v2.7.3\lib\launcher.jar beast.pkgmgmt.launcher.BeautiLauncher

it returns a "java.lang.ClassNotFoundException: beastfx.app.beauti.Beauti" error

Any tips are much appreciated!
Thanks!

Julia

@rbouckaert
Copy link
Member

Hi Julia,

Probably the easiest way to increase memory (which is indeed what the error message indicates is necessary) is to edit the batch file in \path\to\BEAST\bat\BEAUti.bat, (where \path\to\BEAST is the path to where you have BEAST installed).

Line 7 says

    "%~dp0\..\jre\bin\java" -Dfile.encoding=UTF-8 -cp "%~dp0\..\lib\launcher.jar" beast.pkgmgmt.launcher.BeautiLauncher %*

and if you add -Xmx16g as argument to java, like so

    "%~dp0\..\jre\bin\java" -Xmx16g -Dfile.encoding=UTF-8 -cp "%~dp0\..\lib\launcher.jar" beast.pkgmgmt.launcher.BeautiLauncher %*

it should reserve 16GB of memory. To start BEAUti, run path\to\BEAST\bat\BEAUti.bat from the command prompt.

By default, 8GB is reserved for BEAUti when launched via the icon, so changing it to 16GB makes more sense than keeping it 8GB.

Hope this helps,

Remco

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

2 participants