aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs (unfollow)
Commit message (Collapse)AuthorFilesLines
2010-02-15Formatting cleanup.Jeff Ames1-1/+1
2010-01-25Fix a problem where llDie() calls were sometimes leaving dead objects behind.Justin Clark-Casey (justincc)1-6/+3
When an object was deleted, the remove script instance call was aggregating the scripting events as normal. This would queue a full update of the prim before the viewer was notifed of the deletion of that prim (QuitPacket) On some occasions, the QuitPacket would be sent before the full update was dequeued and sent. In principle, you would think that a viewer would ignore updates for deleted prims. But it appears that in the Linden viewer (1.23.5), a prim update that arrives after the prim was deleted instead makes the deleted prim persist in the viewer. Such prims have no properties and cannot be removed from the viewer except by a relog. This change stops the prim event aggregation call if it's being deleted anyway, hence removing the spurious viewer-confusing update.
2010-01-04Formatting cleanup. Add copyright headers.Jeff Ames1-1/+1
2009-12-22Remove GetState. It is really unused and was reinstated by the revertMelanie1-7/+0
2009-12-22Revert "Remove an insterface member that was never used"Melanie1-0/+15
It was used. By the API, which is dynamically loaded. So it didn't complain until it hit Bamboo This reverts commit 33d5018e94e52cb875bf43bced623bdc6aa41ef0.
2009-12-22Remove an insterface member that was never usedMelanie1-15/+0
2009-12-22FINALLY! Script compile errors now appear in the script error pane,Melanie1-70/+93
not in a funky debug window.
2009-12-22Add a data path for error messagesroot1-0/+5
Committed from my other box where git is not configured properly Signed-off-by: Melanie <melanie@t-data.com>
2009-12-21Script State Fix: Part 2Melanie1-16/+20
Change the reader to wrap old-style definitions in new style wrappers. Change importer to not check irrelevant data that can't be reconstructed This removes the last bit of knowledge of XEngine's .state files from core.
2009-12-21Remove extra checking on the itemID of saved state, since it changes duringMelanie1-4/+5
rez from inventory.
2009-12-21Script State Fix: Step 1Melanie1-0/+6
Add Engine=xxx attribute and check for it's presence. Ignore state data written bby another engine
2009-11-27minor: remove mono compiler warningJustin Clark-Casey (justincc)1-1/+1
2009-11-26Fix a small bug. Trusted script crossings now work againMelanie1-1/+1
2009-11-26Remove the old (Remoting) region crossing code. Fix the new code toMelanie1-8/+116
pass script state and assembly again properly. Reintroduce respecting tht TrustBinaries flag. Changes the interregion protocol! No version bump because it was broken anyway, so with a version mismatch it will simply stay broken, but not crash. Region corssing still doesn't work because there is still monkey business with both rezzed prims being pushed across a border and attached prims when walking across a border. Teleport is untested by may work.
2009-11-26Remove GetAssemblyName and friends from the SE interface. It's now handledMelanie1-9/+86
internally
2009-11-03Remove parallel loading from XEngine, but retain the new design whereMelanie1-8/+19
all scripts are loaded from the same thread, rather than launching a new one for each script. This is only marginally slower, but avoids the race condition that led to script engine failure.
2009-10-29More performance improvements to XEngine script loadingJohn Hurliman1-42/+25
2009-10-29* Misc. formatting cleanup for the previous patchJohn Hurliman1-9/+9
* Added the new AppDomainLoading variable to the [XEngine] section in the example config
2009-10-29OptimizationsDan Lake1-20/+31
2009-10-17Add support for display of the script compilation errors in the script editor'sMelanie1-13/+32
debug pane. This will still use DEBUG_CHANNEL currently, since it is not fully implemented. This also removes the "Compiled successfully" message that pops up in the viewer.
2009-10-09Apply http://opensimulator.org/mantis/view.php?id=4066Justin Clark-Casey (justincc)1-1/+1
If XEngine compile fails, show script name in error message in-world as well as the exception itself Thanks Luca Peck
2009-10-01Formatting cleanup.Jeff Ames1-4/+4
2009-08-31Change the return value if the compiler to "object" to allow compilersMelanie1-2/+2
to return dynamic method objects
2009-08-14Add some extra info to script load messagesMelanie1-2/+2
2009-08-10Replace the Replaceable modules nameMelanie1-1/+1
2009-08-07Another stab at cmickeyb's patch for script GC.Melanie1-7/+7
Moved the Close() for the appdomain-hosted parts into a new destructor on ScriptInstance.
2009-08-07Revert the XEngine memleak patch, it causes premature GC.Melanie1-7/+7
This matches behavior seen with an earlier attempt to do this, apparently the sponsor mechanism does't work in Mono
2009-08-06|From: James J Greensky <jame.j.greensky@intel.com>Melanie1-7/+7
|Date: Wed, 5 Aug 2009 09:51:52 -0700 |Subject: [PATCH] Closed two major memory leaks for scripted objects | |Two major memory leaks for the scripted objects were fixed |- One leak had to do with remoting acrossing app domains. When a script and | its controlling agent communicate across an application boundary, it calls | functions on a stub proxy object that then invokes the remote method on | the object in the other app domain. These stub objects (two for each script) | were setup to have infinate lifetimes and were never being garbage collected. |- The second leak was the result of adding a scene object part instance method | to a scene event and never removing it. This cause the event's delegate list | to maintain a link to that object which is then never freed as the scene event | object is never destroyed. Patch applied, please direct feedback to me. Possible issue: Longtime idle scripts like vendors may fail.
2009-08-04Add plumbing for the SceneObjectDeleter to wait for the script engine toMelanie1-0/+9
allow final deletion of objects. Meant to support the attach(NULL_KEY) event,
2009-07-10Committing the interface change and the addition to the modules to getMelanie Thielker1-0/+5
the ball rolling on replacable modules. No user functionality yet
2009-06-25From: Alan Webb <alan_webb@us.ibm.com>Dr Scofield1-1/+1
After noticing on several occasions that the thread counts we see when running OpenSIm were bordering on the astronomical I decided to seriously investigate. After much poking I discovered that the problem is actually very simple. The XEngine secition of the example ini says that the timeout for an iden thread is in seconds, and an example value of 60 is specified. In fact, this is actually resulting in a 60mS idle timeout, which is not normally enough for a smart thread to survive. I have added a multiplier to the XEngine constructor so that the number now matches the published behavior.
2009-06-06Correct an error where the config file name was always considered to be aMelanie Thielker1-0/+7
local file. This caused llHttpRequest and llSetInventoryPermsMask to fail on regions that load their config from a web server
2009-06-05Thank you, thomax, for a patch to provide finer-grained access control toMelanie Thielker1-1/+1
scripting. Fixes Mantis #2862
2009-06-01Minor: Change OpenSim to OpenSimulator in older copyright headers and ↵Jeff Ames1-1/+1
LICENSE.txt.
2009-04-15minor: Remove some mono compiler warnings. Uncomment code when it's ↵Justin Clarke Casey1-2/+2
actually being used.
2009-04-15Convert both script engines to new region module format. Add proper unloadMelanie Thielker1-9/+58
handling to XEngine. Add needed stubs to DotNetEngine.
2009-04-12Fix a regression where animations would only be sent if the avatar hasMelanie Thielker1-2/+36
attachments. Convert base types to LSL types for event marshalling through IScriptModule to avoid parameter errors.
2009-04-11Adding a script event, changed(CHANGED_ANIMATION)Melanie Thielker1-0/+9
This is sent to all root prims of all attachments of an avatar when the animation state changes. llGetAnimation() can thenbe used to find the new movement animation. This eliminates the need for fast timers in AOs
2009-04-10Make the scrpt engines ignore any script that begins with //MRM:Melanie Thielker1-0/+3
2009-04-10Introduce IXmlRpcRouter, an interface that allows registering XMLRPCMelanie Thielker1-0/+18
UUIDs with a central marshaller for grids, or publish the ULS for objects elsewhere.
2009-04-10Add events to IScriptEngine to notify scripting modules of the removalMelanie Thielker1-0/+14
of objects from the scene, and of scripts from objects. This facilitates the development of modules that can register prims with externall servers for inbound email and XMLRPC. Currently implemented in XEngine only. Also applying cmickeyb's compiler locking patch, since it seems risk-free.
2009-03-26Read the .map files in on sim startup. Also clean them up when an assemblyMelanie Thielker1-0/+3
is deleted.
2009-03-26Make the error messages passed to RegionReady more descriptiveMelanie Thielker1-3/+4
Patch by antont, thank you. Fixes Mantis #3338
2009-03-22Thank you, dslake, for a patch that fixes XEngine linemap handling.Melanie Thielker1-1/+4
Fixes Mantis #3321
2009-02-23Mantis#3187. Thank you kindly, DoranZemlja for a patch that:Charles Krinke1-0/+32
Adds a warning for an LSL construct that exploits a popular list memory saving hack.
2009-02-22Refactor log4net logger handling in script engine. (#3148)Jeff Ames1-6/+1
2009-02-18Fix the windows sharing violations on script crossingsMelanie Thielker1-2/+2
2009-02-10this is step 2 of 2 of the OpenSim.Region.Environment refactor.Dr Scofield1-1/+1
NOTHING has been deleted or moved off to forge at this point. what has happened is that OpenSim.Region.Environment.Modules has been split in two: - OpenSim.Region.CoreModules: all those modules that are either directly or indirectly referenced from other OpenSim packages, or that provide functionality that the OpenSim developer community considers core functionality: CoreModules/Agent/AssetTransaction CoreModules/Agent/Capabilities CoreModules/Agent/TextureDownload CoreModules/Agent/TextureSender CoreModules/Agent/TextureSender/Tests CoreModules/Agent/Xfer CoreModules/Avatar/AvatarFactory CoreModules/Avatar/Chat/ChatModule CoreModules/Avatar/Combat CoreModules/Avatar/Currency/SampleMoney CoreModules/Avatar/Dialog CoreModules/Avatar/Friends CoreModules/Avatar/Gestures CoreModules/Avatar/Groups CoreModules/Avatar/InstantMessage CoreModules/Avatar/Inventory CoreModules/Avatar/Inventory/Archiver CoreModules/Avatar/Inventory/Transfer CoreModules/Avatar/Lure CoreModules/Avatar/ObjectCaps CoreModules/Avatar/Profiles CoreModules/Communications/Local CoreModules/Communications/REST CoreModules/Framework/EventQueue CoreModules/Framework/InterfaceCommander CoreModules/Hypergrid CoreModules/InterGrid CoreModules/Scripting/DynamicTexture CoreModules/Scripting/EMailModules CoreModules/Scripting/HttpRequest CoreModules/Scripting/LoadImageURL CoreModules/Scripting/VectorRender CoreModules/Scripting/WorldComm CoreModules/Scripting/XMLRPC CoreModules/World/Archiver CoreModules/World/Archiver/Tests CoreModules/World/Estate CoreModules/World/Land CoreModules/World/Permissions CoreModules/World/Serialiser CoreModules/World/Sound CoreModules/World/Sun CoreModules/World/Terrain CoreModules/World/Terrain/DefaultEffects CoreModules/World/Terrain/DefaultEffects/bin CoreModules/World/Terrain/DefaultEffects/bin/Debug CoreModules/World/Terrain/Effects CoreModules/World/Terrain/FileLoaders CoreModules/World/Terrain/FloodBrushes CoreModules/World/Terrain/PaintBrushes CoreModules/World/Terrain/Tests CoreModules/World/Vegetation CoreModules/World/Wind CoreModules/World/WorldMap - OpenSim.Region.OptionalModules: all those modules that are not core modules: OptionalModules/Avatar/Chat/IRC-stuff OptionalModules/Avatar/Concierge OptionalModules/Avatar/Voice/AsterixVoice OptionalModules/Avatar/Voice/SIPVoice OptionalModules/ContentManagementSystem OptionalModules/Grid/Interregion OptionalModules/Python OptionalModules/SvnSerialiser OptionalModules/World/NPC OptionalModules/World/TreePopulator
2009-02-06This changeset is the step 1 of 2 in refactoringDr Scofield1-3/+2
OpenSim.Region.Environment into a "framework" part and a modules only part. This first changeset refactors OpenSim.Region.Environment.Scenes, OpenSim.Region.Environment.Interfaces, and OpenSim.Region.Interfaces into OpenSim.Region.Framework.{Interfaces,Scenes} leaving only region modules in OpenSim.Region.Environment. The next step will be to move region modules up from OpenSim.Region.Environment.Modules to OpenSim.Region.CoreModules and then sort out which modules are really core modules and which should move out to forge. I've been very careful to NOT BREAK anything. i hope i've succeeded. as this is the work of a whole week i hope i managed to keep track with the applied patches of the last week --- could any of you that did check in stuff have a look at whether it survived? thx!
2009-02-05From: Christopher Yeoh <yeohc@au1.ibm.com>Sean Dague1-17/+46
This patch fixes the problem where if an object containing a script is deleted at the same time as an object containing the same script is rezzed, it can result in the assembly file being deleted after the second object script initialisation has found it but not started using it yet, resulting in the script not starting up.