aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Scripting (unfollow)
Commit message (Collapse)AuthorFilesLines
2009-07-10Remove all references to HttpServer from CommsManager (all incarnations)Melanie Thielker1-1/+1
Change all uses of the HttpServer properties to use the new singleton
2009-06-12* minor: remove one mono warningJustin Clarke Casey1-1/+1
2009-06-09Formatting cleanup. Ignore some generated files.Jeff Ames1-2/+2
2009-06-09From: Alan Webb <alan_webb@us.ibm.com>Dr Scofield1-30/+45
This change addresses two issues: [1] It adds a flag field to the blendface call which allows the caller to indicate whether or not the generated asset is temporary, and whether or not the asset being replaced should be explicitly retired fromt the memory cache. The decimal values correspond to: 0 - Permanent asset, do not expire old asset 1 - Permanent asset, expire old asset 2 - Temporary asset, do not expire old asset 3 - Temporary asset, expire old asset '3' corresponds to the default behavior seen today, and is the continued behavior of the non-blendface calls. [2] The dynamic texture routines are highly-asynchronous and can be scheduled simultaneously on a multi-core machine. The nature of the texture management interfaece is such that updates may be lost, and the nature of asynchornous operation means that they may be processed out of order. A lock has been added to ensure that updates are at least atomic. No attempt has been made to enforce ordering. The lock applies to the SceneObjectPart being updated and is held for the lifetime of the TextureEntry used to carry texture updates (the one instance carries all faces supported by the prim). Users of these services should remember that the dynamic texture call is asynchronous and control will be returned *before* the texture update has actually occurred. As a result, a isubsequent GetTexture call may not return the expected asset id. A script must wait for the corresponding TEXTURE_CHANGED event before retrieving any texture information.
2009-06-04Comment out unused variables / private fields to avoid compiler warnings.Jeff Ames1-1/+1
2009-06-03From: Chris Yeoh <yeohc@au1.ibm.com>Dr Scofield1-7/+13
- fixes wild swings in memory usage related to usage of GetDrawStringSize() We've been seeing wild swings in memory usage and a large chunk of memory leak. From analysing this it's pretty clear that the mono garbage collector is rather buggy! When exercised heavily it looks like it frees more than its meant to resulting in crashes. GetDrawStringSize() measures the size in pixels of text. To do this memory for an image is allocated and used to call the GDI text measure functions. Although no reference to the temporary memory for the measuring is kept, it takes quite a while for the mono garbage collector to clean up - so if lots calls to GetDrawStringSize() are made at once there can be a spike in memory usage. If the garbage collector is not fast enough then the GDI layer runs out of memory. It also looks like the garbage collector is not always reclaiming all of the memory. I've attached an OpenSim patch which works around the garbage collector issues. Instead of dynamically allocating memory for measuring text sizes, it serialises (on a per region basis) access to a single block of memory. The effect of this is to be nicer to the garbage collector as it has a lot less work to do, at the cost of some theoretical loss in performance (nothing noticeable with our tests which hit it pretty hard). OpenSim still does leak memory slowly, but it is a lot more stable with this patch. I suspect that either the garbage collector misses bits of freed memory or the GDI/cairo layer leaks a bit each time a texture is created. Thats going to be a lot harder to hunt down, but for reference if someone has OpenSim running on Windows it would be interesting to see if it has the same problem as it would tell us if its a mono/GDI problem or an OpenSim problem.
2009-06-03From: Alan Webb <alan_webb@us.ibm.com>Dr Scofield1-2/+5
Modify dynamic texture handling so that an explicitly targetted face is not scheduled for immediate expiration. The requirement for precaching explicitly requires these assets to persist. They do however remain temporary. This approach leaves the legacy mode of operation (ALL_SIDES) unchanged in this respect.
2009-06-01Minor: Change OpenSim to OpenSimulator in older copyright headers and ↵Jeff Ames8-8/+8
LICENSE.txt.
2009-05-31Add copyright headers, formatting cleanup, ignore some generated files.Jeff Ames1-43/+43
2009-05-26Revert a change I made to get a better URL because it failes under monoMelanie Thielker1-1/+1
2009-05-26Couple of tweaks to the URL module: handle script reset gracefully andMelanie Thielker1-1/+10
stop crashing http server threads.
2009-05-23* Pipes requestors IP address through all XmlRpcRequest delegates. This is ↵Adam Frisby1-1/+2
needed to be able to 'NAT-wrap' the login sequence. * If you have something using XmlRpc that isn't in core, change your method signature from: (XmlRpcRequest request) to: (XmlRpcRequest request, IPEndPoint remoteClient)
2009-05-22From: Alan Webb <alan_webb@us.ibm.com>Dr Scofield2-50/+105
Changes to support client-side image pre-caching in the region. This commit adds an additional calling sequence to the DynamicTexture data and URL calls. The new interface allows a dynamic image to be loaded into a specific object face (rather than the mandatory ALL_SIDES supported today. This is in part fulfilment of ticket #458.
2009-05-22cleaning out warnings.Dr Scofield1-1/+1
NOTE: we currently have a gazillion warnings caused stuff flagged as "obsolete" (OGS1 stuff) --- what's up with that?
2009-05-20Add copyright headers, formatting cleanup.Jeff Ames1-4/+4
2009-05-19From: Alan Webb <alan_webb@us.ibm.com>Dr Scofield1-0/+1
The image render module is returning everything twice. Once with data, once with null. This change adds a return to stop this behavior. This was not apparent until I added a message to the catching routine which issued a warning message when no data was returned.
2009-05-15Heart surgery on asset service code bits. Affects OpenSim.ini configuration ↵diva1-3/+2
-- please see the example. Affects region servers only. This may break a lot of things, but it needs to go in. It was tested in standalone and the UCI grid, but it needs a lot more testing. Known problems: * HG asset transfers are borked for now * missing texture is missing * 3 unit tests commented out for now
2009-05-13Fix up some URL detailsMelanie Thielker1-6/+3
2009-05-13Add the port to the generated URL. For some reson this still doesn't want toMelanie Thielker1-1/+1
receive requests.
2009-05-13Make the LSL HTTP server create and give out URLs to scriptsMelanie Thielker1-1/+14
2009-05-13Add most of the meat to the LSL HTTP serverMelanie Thielker1-11/+123
2009-05-13Plumb request and return URL functions.Melanie Thielker1-2/+9
Implements llRequestURL, llRequestSecureURL, llReleaseURL
2009-05-13Add a skeleton for the LSLHttpServerMelanie Thielker1-0/+116
2009-05-07From: Alan Webb <alan_webb@us.ibm.com>Dr Scofield1-4/+15
logs error message on empty data in DynamicTextureModule
2009-05-06Thank you kindly, Fly-Man- for a patch that:Charles Krinke1-5/+17
Adding more SL likeness for Email module in CORE. I've added some SL likeness to the Email module so that it looks more like emails going out in the same standard as SL uses
2009-05-04Intermediate commit. WILL NOT COMPILE!Melanie Thielker2-0/+2
2009-05-03Thank you kindly, Thomax, for a patch that:Charles Krinke1-1/+2
Does not set prims to fullbright when an ossl dynamic texture function is called.
2009-05-02Thank you kindly, Fly-Man, for a patch that:Charles Krinke1-1/+1
* Added the hostname so the email gets the right hostname when going outbound
2009-04-18Thank you kindly, StrawberryFride, for a patch that:Charles Krinke1-5/+10
Adds a test to see if the first option on osDynamicTextureData is "AltDelim", then picks up the first character after the whitespace and uses as a delimiter instead of ;. If this string does not appear at the start of the data, the default ; will be used, hence this should not break existing code.
2009-04-10Expose the XMLRPC listener port on the IXMLRPC interface to allowMelanie Thielker1-0/+5
publication
2009-03-31Update svn properties, add copyright header, formatting cleanup.Jeff Ames1-34/+30
2009-03-24From: Alan Webb <alan_webb@us.ibm.com>Dr Scofield1-7/+37
Changes to AssetCache and DynamicTextureModule to eliminate opportunities for lost texture updates.
2009-03-12Update svn properties, minor formatting cleanup.Jeff Ames1-8/+8
2009-03-11* Make all coded defaults match settings in OpenSim.ini.exampleJustin Clarke Casey1-2/+2
* In most cases, the setting in OpenSim.ini.example is taken as the canonical one since this is the file virtually everyone ends up using * OpenSim will start up with a blank OpenSim.ini, in which case sqlite is the default database (as before)
2009-03-11From: Alan M Webb <alan_webb@us.ibm.com>Dr Scofield1-6/+9
This fixes *another* sync error in a list/dictionary iterator. This time in WorldComm. I'm beginning to think something is going on...
2009-03-07Added the ability to set User-Agent in llHTTPRequest. No new default value ↵idb1-1/+4
has been set since having no User-Agent seems to work well but the facility is now available to set this if required. Using something based on the pattern of SLs User-Agent may well cause problems, not all web servers respond well to it. See the notes in the SL Wiki http://wiki.secondlife.com/wiki/LlHTTPRequest Fixes Mantis #3143
2009-02-22Mantis#3218. Thank you kindly, TLaukkan (Tommil) for a patch that:Charles Krinke4-8/+18
* Added log4net dependency to physxplugin in prebuild.xml. * Added missing m_log fields to classes. * Replaced Console.WriteLine with appropriate m_log.Xxxx * Tested that nant test target runs succesfully. * Tested that local opensim sandbox starts up without errors.
2009-02-22Update svn properties, add copyright headers, minor formatting cleanup.Jeff Ames1-21/+21
2009-02-21Applied patch from mantis #3217, which allows Dynamic Images of type RGB (so ↵MW1-7/+23
with no alpha value). Thanks BlueWall.
2009-02-20Update svn properties, add copyright headers, minor formatting cleanup.Jeff Ames1-49/+43
2009-02-19Mantis#3188. Thank you kindly, BlueWall, for a patch that:Charles Krinke1-3/+49
Adding the ability to set the background color for osSetDynamicTextureData in the extra data: bgcolour:value (see http://msdn.microsoft.com/en-us/library/aa358802.aspx [^] for color names)
2009-02-18From: Christopher Yeoh <yeohc@au1.ibm.com>Sean Dague3-0/+33
The attached patch implements osGetDrawStringSize that looks like: vector osGetDrawStringSize(string contentType, string text, string fontName, int fontSize) in LSL. It is meant to be used in conjunction with the osDraw* functions. It returns accurate information on the size that a given string will be rendered given the specified font and font size. This allows for nicely formatted and positioned text on the generated image.
2009-02-17* Apply http://opensimulator.org/mantis/view.php?id=3178Justin Clarke Casey1-5/+6
* Moves llEmail() delay to after e-mail send rather than before, in line with SL * Thanks DoranZemlja * Last build failure looks like a glitch, but one that has already happened twice recently which I need to look at
2009-02-17* Apply http://opensimulator.org/mantis/view.php?id=3179Justin Clarke Casey1-15/+15
* This slightly extends a lock in WorldCommModule so that it covers the GetNewHandle method which states in it's doc that it assumes locking has happened before the method is called * Thanks DoranZemlja
2009-02-17- remove the Metadata property from AssetBase and return all previousMike Mazur2-11/+9
properties as before - prefix private variables with m_ in AssetBase.cs - related to Mantis #3122, as mentioned in https://lists.berlios.de/pipermail/opensim-dev/2009-February/005088.html - all services will likely need to be upgraded after this commit
2009-02-16* refactor: remove AssetCache field hanging off SceneJustin Clarke Casey1-3/+3
* This is always available at Scene.CommsManager.AssetCache
2009-02-15Thank you, Vytek, for a patch that streamlines the delay in the emailMelanie Thielker1-11/+16
module and changes SMTP authentication (applied with changes) Fixes Mantis #3168
2009-02-15Thank you, DoranZemlja, for a patch that addresses some moe llGetNextEmailMelanie Thielker1-37/+88
issues. Fixes Mantis #3145.
2009-02-14Thank you, DoranZemlja, for a patch that implements local inter-object emailMelanie Thielker1-39/+127
delivery. Leaving Mantis #3145 open so that more code can be added.
2009-02-12large scale fix for svn props after "the great refactor"Sean Dague7-81/+81