Hi,

Using a fresh install on 8.3.1 and running  basexgui.bat on windows.
I install this expath package
 https://github.com/expkg-zone58/ex-xparse/releases/download/v0.0.5/ex-xparse-0.0.5.xar

Then, paste the following code into an editor window..
------------------------ 
import module namespace xp="http://expath.org/ns/xparse";

"http://www.xqueryfunctions.com/xq/functx-1.0-doc-2007-01.xq"
!unparsed-text(.)
!xp:parse(.,map{"lang":"xquery"}) 
-----------------------
The result is the error...
Stack Overflow: Try tail recursion?

The curious part is..
 if I keep retrying by clicking the execute button - after around 10 tries it starts working and seems to continue to work every time after that within that GUI instance.
I have reproduced this on another pc.

/Andy