Change font size
It is currently Thu Apr 25, 2019 7:32 am

Forum rules


{L_IMAGE}



Post a new topicPost a reply Page 1 of 1   [ 4 posts ]
Author Message
 Post subject: Script exection gets terminated
PostPosted: Tue Jun 05, 2018 12:49 pm 

Joined: Tue Jun 05, 2018 12:36 pm
Posts: 1
I am running a script in a region I own, has not other avatars present, and has only 3 other scripts running. The script is for an HUD I am developing. At this time it is being used to process some data to used in the HUD's menu system. The result of the process will be used by the script, but this processing itself will not be part of the HUD scripts.

On repeated script executions I find that the script quits running sometime between 30 and 40 seconds, when it is about half done. The place in the process where it quits varies, and it quits in iteration loops that execute successfully many times, which suggest it is not a bug in the script. It looks to my like something is terminating execution. Is there a time limit on how long a script can run, after which it is forcibly terminated? If so there a region setting that can increase this time?

The functions llGetFreeMemory(), llGetUsedMemory( ) are not yet implemented in Osgrid. Is there another way to get this information?


Top
 Profile  
 
 Post subject: Re: Script exection gets terminated
PostPosted: Tue Jun 05, 2018 4:37 pm 
Furious Typer
User avatar

Joined: Fri Aug 19, 2011 7:10 pm
Posts: 240
Location: UK
You will probably get more meaningful replies by posting the scripts (or at least, sample scripts exhibiting the same behaviour). None of us psychic here.

_________________
50's sim based at Rumbled on OSGrid
happily running on Debian Linux on a VPS since June 10 2013


Top
 Profile  
 
 Post subject: Re: Script exection gets terminated
PostPosted: Wed Jun 06, 2018 7:16 pm 

Joined: Mon Jul 19, 2010 3:30 am
Posts: 8
Although ive not seen your script the duration of 30 to 40 seconds you speak of sounds suspiciously of the event limit setting in opensim.ini. By default an event (touch() listen() state_entry() etc) in lsl has a maximum execution time of 30 seconds. If you exceed this your script will simply stop and will do so silently. This is by design and is intended to stop a rogue script hogging sim resources. Although you could increase this setting in opensim.ini, a better solution would be to use a timer() and rework your code to execute via timer in chunks that are less than 30secs. Having said that, you can find the setting here:


[XEngine]

;# {EventLimit} {} {Amount of time a script can spend in an event handler} {}
;; Time a script can spend in an event handler before it is interrupted
EventLimit = 30


Top
 Profile  
 
 Post subject: Re: Script exection gets terminated
PostPosted: Wed Jun 06, 2018 7:21 pm 

Joined: Mon Jul 19, 2010 3:30 am
Posts: 8
Wanted to add since this is a hud you are making and that huds can travel to different sims via the avatar it would probably be best to assume the sim the hud is operating on will only have the default 30s to work with so is prob best to rework your code and use that timer()


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 4 posts ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
610nm Style by Daniel St. Jules of Gamexe.net