Hi
Varada,
What you're reporting here definitely should not happen on a normal run, but it's really hard to understand what exactly causes the error only from your description without being able to reproduce it.
To me it seems that the consensus-making subroutine (namely the PLLUnrootedTree::buildConsensusTree function) gets an empty input file with no gene trees, thus it cannot fill the treePointers vector. The input file here is always the reconciliations/all/<fam_name>.newick file with reconciliation samples for a given gene family. So the question is why this file is empty.
The line 169 can by no means be surprising, as division by 0 is not prohibited for the double type in C++, thus no error is produced here. The bug from github you mentioned doesn't seem to be related in any sense and has already been fixed.
Although your dataset is large, it should be readily possible to find the family on which the reconciliation error occurs -- you'll have an empty gene tree consensus file for it (search in the reconciliations/summaries/ directory). Then you can check for this family the input tree distribution and the output *.newick file mentioned above. As the error occurs during the reconciliation step, you already have the final species tree (in the species_trees/inferred_species_tree.newick file). So you can try to reconcile the single family on which the error occurred with this final species tree and see what will happen (use --species-tree-search SKIP to run in the reconciliation-only mode). If this single-family run reproduces the error, then we'll know that the error is specific to the data used and there will be no trouble to find the cause.
Another guess I have is that the error has something to do with checkpointing, as you wrote that you had restarted the program after a timeout (though I don't see any clear connection here). The checkpointing is not perfect in the current version, but I've recently proposed an update to the code on github that fixes most of the bugs. Hopefully, it will be accepted soon.
Sorry that I couldn't be of more help yet. But it will be interesting to see if any new details appear.
Best,
Stefan