pethrowilo
Joined: 21 Dec 2014 Posts: 7 Location: China
|
Posted: Wed Sep 30, 2015 22:08 Post subject: About letoscript related crashes |
|
|
I use some kind of pre cache to store player/character info in local variables on server load.
But had sometimes encountered crashes on these queries.
These are the nearest sentences to the crash point:
CODE 1
Code: | <1.083ms> Req:"SCRIPT", Param:"$a = ''; $al = 0; $at = 0; for ( vault q<./servervault/ball/> ) { $a = $a + substr( $_, 0, ( $at = $_.length ) ) + '|'; $al = $al + $at + 1 } print $al;" |
CODE 2
Code: | <2.855ms> Req:"SCRIPT", Param:"print $a; undef $a; undef $al; undef $at; " |
CODE 3
Code: | <31.48ms> Req:"SCRIPT", Param:"%f = q<.\servervault\ball\bonejarlson.bic>;" |
The folder ball contains those files
Code: | bonejarlson.bak
bonejarlson.bic
coriogden.bak
coriogden.bic
drarrygrassen.bak
drudochedgefen.bak
drudochedgefen.bic
erirkbone.bak
erirkbone.bic
geramarrino.bak
geramarrino.bic
hanikabone.bak
hanikabone.bic
juliareynn.bak
juliareynn.bic
keburbone.bak
keburbone.bic
laurawelm.bak
laurawelm.bic
meriagobone.bak
meriagobone.bic
merinoakey.bak
meroippibone.bak
meroippibone.bic
merumbone.bak
merumtealle.bak
meruppibone.bak
meruppibone.bic
neganbone.bak
neganbone.bic
perembone.bak
perembone.bic
rigrinbone.bak
rigrinbone.bic
sagribobone.bak
sagribobone.bic
silindrabone.bic
soppibone.bak
soppibone.bic
yashalabone.bak
yashalabone.bic
|
CODE 3 did not appear on the leto log, it would be the next sentence to be execute after CODE 2. I post it here just to make sure nothing is amiss, since I don't know if leto log would log the query first or execute it first.
A wild guess of mine suggests the trouble occurred at the blanks which I used as memory placeholders. As you may already know, I calculated the full length of a particular player character file list, and get the full output by using nwscript. That's why those blanks exist.
But these crashes do not happen all the time, just on a fraction of module loads. The server log suggests, module loads are only about 85% reliable, the rest of them, crashes, mostly because of this problem, this is rather inconvenient. |
|