Stack Overflow Error

148 views
Skip to first unread message

Umanga Gunasekera

unread,
Sep 19, 2022, 1:41:38 PM9/19/22
to beast-users
Hi Beast Users,

I am getting the following error when I try to run a BDMM model in BEAST2. 

java.lang.reflect.InvocationTargetException    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)    at java.lang.reflect.Method.invoke(Method.java:498)    at beast.app.beastapp.BeastLauncher.run(Unknown Source)    at beast.app.beastapp.BeastLauncher.main(Unknown Source)Caused by: java.lang.StackOverflowError    at java.util.concurrent.locks.LockSupport.unpark(LockSupport.java:141)    at java.util.concurrent.SynchronousQueue$TransferStack$SNode.tryMatch(SynchronousQueue.java:265)    at java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:383)    at java.util.concurrent.SynchronousQueue.offer(SynchronousQueue.java:913)    at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1371)    at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)    at beast.evolution.speciation.BirthDeathMigrationModel.calculateSubtreeLikelihood(Unknown Source)


I have 190 taxa, 635 sites and 458 patterns, I have 3 different groups of demes. 
I am running this analysis in a windows computer.
When I run a smaller number of MCMC chains (100000) the analysis runs fine, So I think there is nothing wrong with my parameters. But I can't reach enough ESS value. 
In a different question, it was suggested to increase memory usage, but this does not work in Windows computer. 
Can you please let me  know what can I do to get rid of this error using Beauti (I could not get it to change using command lines http://www.beast2.org/increasing-memory-usage/index.html ) , 
Is there anything I can change ?

Thank you,
Umanga 

Umanga Gunasekera

unread,
Sep 20, 2022, 10:46:57 AM9/20/22
to beast-users
I was able to solve this problem following suggestion from someone, since my OS is windows, I have to open BEAST2 lib using cmd, 
in cmd, once I change directory to BEAST folder , I type the command  java -Xss4m -Xmx256m -jar lib/launcher.jar in cmd. It will create a popup window where I can select my xml file. 
I can increase memory 8m, 16m etc. 
Reply all
Reply to author
Forward
0 new messages