Page 1 of 1

xy64 , 27.90 : run lax() crash

Posted: 16 Aug 2025 03:33
by bossi
edit : found error , please see my last post , i cant execute more than 8 function calls in a row in x64 ...

Re: xy64 , 27.90 : run lax() crash

Posted: 16 Aug 2025 12:44
by admin
No crash here. Might be something about how your variables resolve.

Re: xy64 , 27.90 : run lax() crash

Posted: 16 Aug 2025 14:05
by klownboy
Hi bossi, could you fill in the blanks on the variables such that it's a working script? I ask because based on your report, I ran an old script that uses montage.exe on XYplorer x64 and it ran fine viewtopic.php?t=12843 Though what I have on my computer may be slighlty updated from that linked script.

Re: xy64 , 27.90 : run lax() crash

Posted: 16 Aug 2025 20:33
by bossi
edit : found error , please see my last post , i cant execute more than 8 function calls in a row in x64 ...

Re: xy64 , 27.90 : run lax() crash

Posted: 16 Aug 2025 22:17
by bossi
ok just for record : its unrelated to run external exe , seems to be an issue of chaining function calls. esp since load_menu also uses a helper function , so i basically need to limit the chain of fx calls . wont dig any deeper than that , but x32 in never got problems wich such chaining...

Re: xy64 , 27.90 : run lax() crash

Posted: 16 Aug 2025 22:39
by bossi
please do the basic code execution , proofing on my end that x64 crashes after a chain of 8 function calls .... while x32 handles more , no problem .

Code: Select all

"TEST"
	TESTA()	

	function TESTA(){
		echo "aaa";
		TESTB();
	}
	function TESTB(){
		echo "bbb";
		TESTC()
	}
	function TESTC(){
		echo "ccc";
		TESTD()
	}
	function TESTD(){
		echo "ddd";
		TESTE()
	}
	function TESTE(){
		echo "eee";
		TESTF()
	}
	function TESTF(){
		echo "fff";
		TESTG()
	}
	function TESTG(){
		echo "ggg";
		TESTH()
	}
	function TESTH(){ // -> crashhh in x64 
		echo "hhh";
		TESTI();
	}
	function TESTI(){ 
		echo "iii";
		TESTJ()
	}
	function TESTJ(){  // superior 32bit reaches and prints "jjj" 
		echo "jjj";
	}
for me it crashed both , when executed via load xytest.xys and via Scripting -> Run Script ...

Re: xy64 , 27.90 : run lax() crash

Posted: 17 Aug 2025 09:26
by admin
Confirmed. I'll inform the TB guys.

btw, here's another test script:

Code: Select all

// 20250817: recursion depth checker
//            VB IDE goes till 202, then crash
//            VB EXE goes till 63, then crash (sometimes error "Out of stack space" before the crash)
//            TB IDE goes till 8, then crash
//            TB EXE goes till 8, then crash
func(1);

function func($i){
  copytext "Recursion depth: $i"; //copy text to clipboard to leave a trace before we crash
  if confirm("Recursion depth: $i<crlf>Click OK to go deeper.") {
    func($i + 1);
  }
}

Re: xy64 , 27.90 : run lax() crash

Posted: 17 Aug 2025 15:40
by admin
Fixed in the next beta. :beer:

Re: xy64 , 27.90 : run lax() crash

Posted: 17 Aug 2025 16:22
by bossi
oh nice i thought im loosing my mind ))

Re: xy64 , 27.90 : run lax() crash

Posted: 17 Aug 2025 16:23
by admin
just uploaded... :)

Re: xy64 , 27.90 : run lax() crash

Posted: 17 Aug 2025 20:09
by bossi
Thx for both quick fixes , back in my comfy zone :party: