NTDOCAdministrator
(KiX Master)
2002-09-19 02:47 AM
KiXtart v4.12 Beta 1 update

Has anyone found any issues that may prevent this build from becoming a RELEASE version?

Please post any issues related to this build so that we can hopefully get it compiled as a release if no one finds or reports any issues.


NTDOCAdministrator
(KiX Master)
2002-09-21 02:51 AM
Re: KiXtart v4.12 Beta 1 update

So no one is using or tyring this version? or it is ready for Production status?

kholm
(Korg Regular)
2002-09-21 05:17 PM
Re: KiXtart v4.12 Beta 1 update

I have found noting serious [Smile]

All my script run with no modification, so i'm tempted to release a beta into production.

The only issues i have found until now is that the Set command dosn't work on Win95, but since
it hasn't worked in previous versions, this shouldn't prevent an upgrade.

Another small one is that if you use MessageBox() from a DOS console the messagebox dosn't get focus
the focus stays on the DOS console.
This last one i have only seen when running KiX32/WKiX32 from WinXP

-Erik


Sealeopard
(KiX Master)
2002-09-21 09:24 PM
Re: KiXtart v4.12 Beta 1 update

I haven't anything wrong either. However, it seems that COM is now working like a charm [Smile]

Sealeopard
(KiX Master)
2002-09-22 06:10 PM
Re: KiXtart v4.12 Beta 1 update

Okay, I have to revers my statement, I did find something, might be a memory leak.

The code posted below was run on a Pentium-III 1000 with 512MB RAM under Windows 2000 Server. It fails around the number combination 8,2,0,0 with an 'out-of-memory' error. Beforehand, memory consumption (as displayed in the Task Manager) is increasing constantly.

Additionally, in case of divisions by 0 , no 'division-by-zero' error is created but the division results in a mathematically incorrect '0'.

code:
BREAK ON
cls

$rc = redirectoutput(@SCRIPTDIR+'\game24full.txt')

DIM $rc, $out, $result, $i1, $i2, $i3, $i4, $shellcommand, $ticks

$rc=SETOPTION('Explicit','ON')
$rc=SETOPTION('NoVarsInString','ON')
$rc=SRND(@MSECS)


? 'Game24 KiXtart Golf running under KiXtart v'@KIX
? 'Computer = Pentium III '+@MHZ+' and '+MEMORYSIZE()+' RAM'
? ''

$ticks=@TICKS

for $i1=0 to 9
for $i2=0 to 9
for $i3=0 to 9
for $i4=0 to 9
? 'Numbers = '+$i1+', '+$i2+', '+$i3+', '+$i4
$out=Game24($i1,$i2,$i3,$i4)
if $out
? 'Result = '+$out
else
? 'No solution found'
endif
? ''
next
next
next
next

? ''
? 'Time = '+(@TICKS-$ticks)+' ticks'
; end of the kiXtart Golf validation script


;!
Function game24($,$b,$c,$d)
$game24=f(""+$+$b+$c+$d,"")
EndFunction
Function f($,$b)
Dim $e,$x,$y,$z,$a
If($)
For $x=1 to Len($)
$e=f(Left($,$x-1)+SubStr($,$x+1),$b+SubStr($,$x,1))
If $e $f=$e EndIf
Next
Else
$e=Split("+ - * /")
For Each $x In $e
For Each $y In $e
For Each $z In $e
$=Left($b,1)+".0"+$x+"("+SubStr($b,2,1)+".0"+$y+"("+SubStr($b,3,1)+".0"+$z+Right($b,1)+"))"
$z=Execute("$$a="+$)
If "24"=$a $f=$ EndIf
Next
Next
Next
EndIf
EndFunction
;!
;!



NTDOCAdministrator
(KiX Master)
2002-09-23 09:44 PM
Re: KiXtart v4.12 Beta 1 update

Shawn, Howard, Alex, Lonkero, etc...

Can anyone else analyze and confirm this to be a possible bug?


LonkeroAdministrator
(KiX Master Guru)
2002-09-23 11:27 PM
Re: KiXtart v4.12 Beta 1 update

doc,
hoby has seen something and so have I.

just have to see that it really is kixtart and not the add-ons doing this...


Kdyer
(KiX Supporter)
2002-09-23 11:36 PM
Re: KiXtart v4.12 Beta 1 update

I have been out of it for a while..

Were we able to get the Access, SQL DB query stuff resolved with the new version?

Thanks!

Kent


LonkeroAdministrator
(KiX Master Guru)
2002-09-23 11:44 PM
Re: KiXtart v4.12 Beta 1 update

what I've seen on the board, they seems to working again...

still I wonder, what is the use if there is exchaustive access to DB and all kix gives is an:
"out of memory"

anyway, it seems that those problems were solved and the solving has introduced another stuff...

like, not working set on w9x (which should work in this version, I quess...).

 


LonkeroAdministrator
(KiX Master Guru)
2002-09-24 03:38 PM
Re: KiXtart v4.12 Beta 1 update

doc, I don't know do you use execute, but:
code:
$x=0
do $=execute("$$x=kbhit()") until $x

caused 30M of memory usage in 1 minute.

in normal logonscript it should have no effect but for exchaustive long running scripts it is real pain.
 


krabourn
(Hey THIS is FUN)
2002-09-24 06:02 PM
Re: KiXtart v4.12 Beta 1 update

I am getting out of memory errors when I leave my remote administation script running for about two hours with version 4.12 Beta 1.

I have been running a variation of this script since version 3.63 and have never received an out of memory before. My script is text based, so you can take kixforms out of the equation.


Les
(KiX Master)
2002-09-24 06:18 PM
Re: KiXtart v4.12 Beta 1 update

krabourn,
It has already been shown that Execute() is leaky. Does your admin script have any Execute() statements? If not, then you should take apart your script and test them piece by piece to see where the leak may be and post the results.

TIA


krabourn
(Hey THIS is FUN)
2002-09-24 06:27 PM
Re: KiXtart v4.12 Beta 1 update

I don't use execute. I have call, shell, run and some WMI COM calls. Those are the closest to execute that I can think of. I guess I will have to check these out.

krabourn
(Hey THIS is FUN)
2002-09-24 07:25 PM
Re: KiXtart v4.12 Beta 1 update

OK, Here are my results. All of my tests lasted 60 seconds.

EXECUTE
Execute kept climbing the whole time.
Start: 172,532 K
Finish: 191,420 K
Difference: 18,888 K

code:
Break on
$x=0
do
$=execute("$$x=kbhit()")
until $x

CALL
Call kept climbing the whole time.
Start: 172,368 K
Finish: 179,836 K
Difference: 7,468 K

code:
Break On
$x=0
do
call ".\test-code.kix"
until $x

TEST-CODE.KIX
code:
$x=kbhit()

RUN
Run held steady.
Start: 172,532 K
Finish: 178,552 K
Difference: 6,020 K

code:
Break on
$x=0
do
Run('%Comspec% /C Dir .\ > Nul')
until $x

SHELL
Shell held steady.
Start: 172,564 K
Finish: 173,340 K
Difference: 766 K

code:
Break on
$x=0
do
Shell('%Comspec% /C Dir .\ > Nul')
until $x

WMI
WMI held steady.
Start: 185,336 K
Finish: 186,636 K
Difference: 1,300 K

code:
Break on
$x=0
do
$Locator = CreateObject ('WbemScripting.SWbemLocator')
$WMIConnect = $Locator.ConnectServer('.', 'root\CIMV2', $AdminName, '"' + $AdminPassword + '"')
$WMIConnectError = @error
IF $WMIConnectError = 0
$WMIConnect.Security_.ImpersonationLevel = 3
ENDIF
$Locator = ''
$WMIConnect = ''
$WMIConnectError = ''
until $x

Hope this helps.


Howard Bullock
(KiX Supporter)
2002-09-24 07:33 PM
Re: KiXtart v4.12 Beta 1 update

Interesting leak using CALL. Good work documenting. I think we will have some fix requests for Ruud when he gets back.

ShawnAdministrator
(KiX Supporter)
2002-09-24 07:36 PM
Re: KiXtart v4.12 Beta 1 update

Yeah - think one can see a pattern emerging - not
outside the realm of possiblility that CALL and
EXECUTE might share the same code.


Howard Bullock
(KiX Supporter)
2002-09-24 07:39 PM
Re: KiXtart v4.12 Beta 1 update

Call & Execute both leak in 4.02 also.

krabourn
(Hey THIS is FUN)
2002-09-24 07:41 PM
Re: KiXtart v4.12 Beta 1 update

Call is probably the closest to Execute. I have one script that I made, for controling services, before there were UDFs and I have not converted it. I use Call to access it.

I guess this is a good insentive.


ShawnAdministrator
(KiX Supporter)
2002-09-24 07:42 PM
Re: KiXtart v4.12 Beta 1 update

[Eek!]

Radimus
(KiX Supporter)
2002-09-24 08:26 PM
Re: KiXtart v4.12 Beta 1 update

just don't break COM again [Wink]

Ruud van Velsen
(Hey THIS is FUN)
2002-10-14 05:14 PM
Re: KiXtart v4.12 Beta 1 update

In short: thanks for all the info. I'll look into this and let you know what I find.

Ruud


Ruud van Velsen
(Hey THIS is FUN)
2002-10-15 11:02 AM
Re: KiXtart v4.12 Beta 1 update

Just to report that I indeed found a memory leak in the script execution handler. Relatively minor leak, but in tight loops as in the samples above, it can quickly lead to rather dramatic effects... Beta 2 of 4.12 will include a fix for this particular issue.

Thanks again for all the information.

Ruud


LonkeroAdministrator
(KiX Master Guru)
2002-10-15 05:04 PM
Re: KiXtart v4.12 Beta 1 update

also, the build numbers could change as new versions come along.
I've understood it's been 104 for a long time.


MCA
(KiX Supporter)
2002-12-01 12:26 AM
Re: KiXtart v4.12 Beta 1 update

Dear krabourn,

Did you have still memory leaks during execution of your examples?
Did other guys detect also memory leaks in latest kixtart 4.12 build 112 release?
greetings.

[ 07. December 2002, 10:19: Message edited by: MCA ]


LonkeroAdministrator
(KiX Master Guru)
2002-12-01 12:30 AM
Re: KiXtart v4.12 Beta 1 update

the leaks were gone by the fix.