aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-03-03changed llGetMemoryLimit to return 65536 as for Mono LSLFreaky Tech1-2/+2
Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
2015-03-03corrected memory info for scriptsFreaky Tech1-6/+6
Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
2015-03-03corrected llGetStartParameter according to ↵Freaky Tech1-0/+2
http://wiki.secondlife.com/wiki/LlGetStartParameter Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
2015-03-03corrected llResetScript according to description within LSL wikiFreaky Tech1-1/+2
Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
2015-02-28Correct PRIM_TEXT return value from trans to alpha.Magnuz Binder1-1/+1
2015-02-27Revert "Adding dynamic ossl permission control"BlueWall3-58/+0
This reverts commit a3681f3052fb5e98e31e7051329a5b748a8bdd8d until further testing. Jenkins now fails ossl tests.
2015-02-27Adding dynamic ossl permission controlBlueWall3-0/+58
Add permission by identifying uuid (owner/creator/group) and function. Revoke permission in the same manner. Permission adjustments immediately effect running scripts ability to call os functions. osGrantScriptPermissions(UUID key,string function) Threat Level Severe osRevokeScriptPermissions(UUID key,string function) Threat Level Severe work sponsored by: Rage
2015-02-25Reduce coupling in regression test task inventory creation methods to make ↵Justin Clark-Casey (justincc)7-20/+20
them usable in tests with no scene present
2015-02-24llLookAt(): use non-physical rotation if host prim is a physical attachmentdahlia1-1/+1
2015-02-02correct some minor comment misspellings in last commitdahlia1-2/+2
2015-02-02Compute rotation for llLookAt() with local positive X axis pointing downdahlia1-14/+11
2015-01-29minor: correct log message when script with non-config stop strategy is ↵Justin Clark-Casey (justincc)1-1/+1
detected to log actual strategy rather than true/false
2015-01-29Avoid a possible race condition by serializing plugin data outside the ↵Justin Clark-Casey (justincc)1-2/+9
EventQueue lock in ScriptInstance.SaveState() This takes the AsyncCommandHandler.staticLock. However, AsyncCommandHandler.DoOneCmdHandlerPass() already holds staticLock and may attempt to take the EventQueue lock via ScriptInstance.PostEvent() in XEngine.CheckListeners() This is a regression from faaf47a (Fri Jan 16 2015) but not simply reverting that commit since it will reintroduce a race between script removal, backup and event queue manipulating code.
2015-01-27Correct typo in raw default script stop strategyJustin Clark-Casey (justincc)1-1/+1
2015-01-27If [XEngine] ScriptStopStrategy is different from a compiled script ↵Justin Clark-Casey (justincc)1-28/+26
strategy, ask user to manually set DeleteScriptsOnStartup = true for at least one simuator session rather than auto-recompiling. This does not work on Windows since the VM retains a handle to the DLL even if class instantiation was unsuccessful. Which causes deletion of the old DLL to fail with access sharing violations. Instead, log a warning in this situation asking the user to manually set DeleteScriptsOnStartup = true for a session (or one could separately delete the DLLs in the relevant bin/scriptengines/<region-uuid> dir For the current session, the script engine will continue using the script compiled stop strategy as before. Relates to http://opensimulator.org/mantis/view.php?id=7278
2015-01-26If an exception comes out of DoOnRezScript in DoOnRezScriptQueue(), then ↵Justin Clark-Casey (justincc)1-6/+17
only fail a single script rather than halting the exntire script startup process.
2015-01-26On a multi-region simulator when AppDomain = true, make sure the DLL from ↵Justin Clark-Casey (justincc)4-91/+147
the appropriate script engines subdir is loaded rather than always that of the first engine to load the DLL. This resolves a DLL load failure on my Linux box when an attachment script was present on another region before the avatar arrived.
2015-01-23When deleting an assembly before re-compile, make sure its attributes allow ↵Justin Clark-Casey (justincc)1-1/+5
deletion. This is to see if this helps with the problem in http://opensimulator.org/mantis/view.php?id=7278 where some DLLs are not allowing this. Since OpenSim created the file it should always be allowed to delete it.
2015-01-23Fix regression where the stored state of every second script in an object ↵Justin Clark-Casey (justincc)1-0/+3
rezzed from inventory (e.g. attachments) was no longer loaded. Likely a regression since f132f642 (2014-08-28) Relates to http://opensimulator.org/mantis/view.php?id=7278
2015-01-17Make XEngine.SaveAllState() actually do this instead of script maintenanceJustin Clark-Casey (justincc)1-8/+8
2015-01-16minor: remove old commented out objectRemoved bool in XEngine.OnRemoveScript()Justin Clark-Casey (justincc)1-5/+0
2015-01-16Add clearqueue code adjustment that should have been in previous commit faaf47aJustin Clark-Casey (justincc)1-4/+1
2015-01-16Prevent a race condition between the script engine backup thread and script ↵Justin Clark-Casey (justincc)3-35/+44
removal by locking on the script's EventQueue and only proceeding if it's flagged as still running. Relates to http://opensimulator.org/mantis/view.php?id=7407
2015-01-16For scripts in attachments, don't save .state files apart from the initial ↵Justin Clark-Casey (justincc)4-8/+195
one as these are ignored since .state is saved in the attachment's asset. This eliminates pointless work and exceptions when an appdomain is unloaded whilst an attachment script state is persisted. Adds test for this case. Relates to http://opensimulator.org/mantis/view.php?id=7407
2015-01-08minor: Add event name to existing debug output when a script event fails ↵Justin Clark-Casey (justincc)1-1/+2
with an exception. To aid debugging.
2014-12-30Renamed VERSION_NUMBER to VersionNumberDiva Canto1-2/+2
2014-12-30This cleans up versioning. Specifically:Diva Canto3-13/+5
- It establishes 4 digits for opensim versions - It uses the same number between opensim releases and mono addins versions It also eliminates the last addin.xml files that were still there, for consistency.
2014-12-29Updated OpenSim-as-addin version from 0.5 to 0.8.1. The addin version number ↵Diva Canto1-1/+1
doesn't need to match the release version number, but I think it's a very good idea that they do.
2014-12-15Remove XEngine.m_uniqueScriptsJustin Clark-Casey (justincc)1-8/+0
This provides no obvious benefit as far as I can tell but has a definite cost in keep script strings in memory for the entire simulator session.
2014-12-10Fix a regression where objects crossing regions in the same simulator (on ↵Justin Clark-Casey (justincc)5-61/+257
their own or as attachments) with AppDomainLoading = false would create the new state in the source region area rather than the dest. This was beause the code was finding the script DLL compiled for the source region as everything is in the same appdomain and using this as the location for the destination script state, etc. This resolves the regression by passing the proper destination separately from the DLL retrieved. Probably a regression since commit d7b92604 (11 July 2014). Added regression test for this case. At least partly addresses http://opensimulator.org/mantis/view.php?id=7278
2014-12-10Avoid a possible race condition where the XEngine script compile thread ↵Justin Clark-Casey (justincc)1-0/+8
could complete but see OnRezScript() insert a new job and complete before it set m_CurrentCompile = null If the above happened, it would mean the new script would not compile until some script was added for compilation.
2014-12-09In XEngine, enqueue a script rez to the compile queue after setting ↵Justin Clark-Casey (justincc)1-3/+4
m_CompileDict to avoid a rare but not impossible race condition.
2014-12-03minor: If we are recompiling scripts in response to a ScriptStopStrategy ↵Justin Clark-Casey (justincc)1-0/+8
config change (a rare situation), then explicitly log this for debug purposes.
2014-12-03Reintroduce general xengine extra debugging log level. This can be ↵Justin Clark-Casey (justincc)1-31/+32
controlled at runtime with the command "debug xengine log <level>", as with similar commands. If log level is 1 then every script load is logged. This means the <logger name="OpenSim.Region.ScriptEngine.XEngine"> section in OpenSim.exe.config is no longer needed to avoid log spam on regions with many scripts and can be removed.
2014-12-03minor: improve logged error in XEngine.SetXmlState if there was a problem ↵Justin Clark-Casey (justincc)1-1/+2
writing the linemap. The previous error report of already exists is inaccurate since existing files do get overwritten.
2014-12-03Always close script linemap file after reading and always dispose of other ↵Justin Clark-Casey (justincc)2-29/+29
streams in the script engine even if exceptions are thrown.
2014-11-29Correct 690fe0c to actually log the exception reported in ↵Justin Clark-Casey (justincc)1-1/+2
DoOnRezScriptQueue()(and now the scene name).
2014-11-29If there are any exceptions in XEngine.DoOnRezScriptQueue() then log the ↵Justin Clark-Casey (justincc)1-31/+43
error and always set m_CurrentCompile = null Setting m_CurrentCompile = null in the finally block reduces the risk that an exception could permanently stop any future scripts compiling until the simulator is restarted. If an exception is seen from this then please report and further changes to fix the bug or improve compiling reliability can be made.
2014-11-29Remove minor race condition where two threads could race on fields such as ↵Justin Clark-Casey (justincc)1-6/+6
m_ScriptFailCount as set in XEngine.DoOnRezScriptQueue()
2014-11-25refactor: Move methods to start a monitored thread, start work in its own ↵Justin Clark-Casey (justincc)1-1/+1
thread and run work in the jobengine from Watchdog to a WorkManager class. This is to achieve a clean separation of concerns - the watchdog is an inappropriate place for work management. Also adds a WorkManager.RunInThreadPool() class which feeds through to Util.FireAndForget. Also switches around the name and obj arguments to the new RunInThread() and RunJob() methods so that the callback obj comes after the callback as seen in the SDK and elsewhere
2014-11-25Fix compile error from previous 1d56029848e96016b5809f596619e32d0ebcc995Justin Clark-Casey (justincc)1-1/+1
2014-11-25Fix issue where llRemoteLoadScriptPin() would treat 0 (the default) as a ↵Justin Clark-Casey (justincc)1-0/+47
valid set pin in a destination prim rather than the unset no pin state Adds regression test for this case.
2014-11-25Label all threadpool calls being made in core OpenSimulator. This is to add ↵Justin Clark-Casey (justincc)2-10/+14
problem diagnosis. "show threadpool calls" now also returns named (labelled), anonymous (unlabelled) and total call stats.
2014-11-25Add some more llGiveInventory() regression testsJustin Clark-Casey (justincc)1-48/+1
2014-11-25refactor: consistently put all test classes in the OpenSim.Tests.Common ↵Justin Clark-Casey (justincc)13-14/+0
package rather than some in OpenSim.Tests.Common.Mock the separate mock package was not useful and was just another using line to always add
2014-11-20LSL key should be implicitly cast to a boolean valueCinder1-0/+10
Signed-off-by: James Hughes <jamesh@ascent.bluewallgroup.com>
2014-11-11Fix issue where llRemoteLoadScriptPin() would treat 0 (the default) as a ↵Justin Clark-Casey1-0/+48
valid set pin in a destination prim rather than the unset no pin state Adds regression test for this case.
2014-10-16Add some more llGiveInventory() regression testsJustin Clark-Casey (justincc)1-0/+71
2014-10-11Change name of just added OSSL osForceSit() to osForceOtherSit()Justin Clark-Casey (justincc)3-11/+12
This is somewhat more in keeping with something like osForceAttachToOtherAvatarFromInventory() and potentially allows a separate osForceSit() command with High threat rather than VeryHigh that only sits the owner and can be enabled without enabling sit of other avatars.
2014-10-11minor: spacing cleanup from previous commit 79a4d1eaJustin Clark-Casey (justincc)1-3/+3