When we start up BaseX (whether the server or the GUI) and run a particular a query against a particular .xqm file, we always get a tail recursion error.

Error:
[bxerr:BASX0005] Stack Overflow: Try tail recursion?

If we attempt to execute it again (sometimes twice, but have done so repeatedly up to 5 times), the error goes away and all is fine.

Is there anything you can suggest or anything we can provide you to see how to eliminate this.  This is particularly problematic on our server when we reboot our production application.
Anything you can suggest or anyway we can help is much appreciated.


Buddy