MantisBT - opensim
View Issue Details
0007007opensim[REGION] Scripting Enginepublic2014-02-13 03:132014-02-13 03:43
.NETWindows 2008 Server2008 Server
master (dev code) 
0.8.0 (Dev) 0eda7dd: 2014-01-27 - git hash : 966ab21839d9cccf66b440834cd8b469f7b19e2d
Grid (Multiple Regions per Sim)
.NET / Windows64
Firestorm, Kokua, Sing.
0007007: When user teleports while wearing a scripted item, the menu no longer functions and an error appears on the console
When user teleports while wearing a scripted item, the menu no longer functions and an error appears on the console.
Wear a scripted item that has a menu. Teleport to another region. Touch the item, menu will no longer function. Reproducable every time.
Region (root) # 02:40:59 - [XEngine]: Failed to save state of script Left-Foot Paw Cuff 2.04 (l lower leg).color-texture-script, ite
m UUID ce0c0aa2-66c1-46a4-9e1c-bd2c85e5557a, prim UUID e4bc9fe0-1432-4d91-9a0d-57dc969ed2e2 in Stonehaven. Exception
System.AppDomainUnloadedException: The target application domain has been unloaded.

Server stack trace:
   at System.Threading.Thread.InternalCrossContextCallback(Context ctx, IntPtr ctxID, Int32 appDomainID, InternalCrossContextDelegat
e ftnToCall, Object[] args)
   at System.Runtime.Remoting.Channels.CrossAppDomainSink.DoTransitionDispatch(Byte[] reqStmBuff, SmuggledMethodCallMessage smuggled
Mcm, SmuggledMethodReturnMessage& smuggledMrm)
   at System.Runtime.Remoting.Channels.CrossAppDomainSink.SyncProcessMessage(IMessage reqMsg)

Exception rethrown at [0]:
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at OpenSim.Region.ScriptEngine.Shared.ScriptBase.IScript.GetVars()
   at OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.GetVars() in c:\NewOSBuilds\opensim-0eda7dd\opensim-0eda7dd\OpenSim
\Region\ScriptEngine\Shared\Instance\ScriptInstance.cs:line 1032
   at OpenSim.Region.ScriptEngine.Shared.Instance.ScriptSerializer.Serialize(ScriptInstance instance) in c:\NewOSBuilds\opensim-0eda
7dd\opensim-0eda7dd\OpenSim\Region\ScriptEngine\Shared\Instance\ScriptSerializer.cs:line 80
   at OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.SaveState(String assembly) in c:\NewOSBuilds\opensim-0eda7dd\opensi
m-0eda7dd\OpenSim\Region\ScriptEngine\Shared\Instance\ScriptInstance.cs:line 1074
   at OpenSim.Region.ScriptEngine.XEngine.XEngine.DoBackup(Object o) in c:\NewOSBuilds\opensim-0eda7dd\opensim-0eda7dd\OpenSim\Regio
n\ScriptEngine\XEngine\XEngine.cs:line 847
No tags attached.
Issue History
2014-02-13 03:13wbalazicNew Issue
2014-02-13 03:28melanieNote Added: 0025176
2014-02-13 03:38wbalazicNote Added: 0025177
2014-02-13 03:43wbalazicNote Added: 0025178

2014-02-13 03:28   
This, although possible, should be a very rare occurrence. What happened here is that DoBackup, which should run once every 10 minutes, tried to back up a script that was in the attachment.

Is the failure of the script the on;y reproducible portion or do you also always see this error? If yes, you may have changed your script maintenance cycle interval to a very low value.
2014-02-13 03:38   
It only happens with the failure of the script, but we have tested it several times so it is happening on every TP. Is there somewhere that I can look to find the script maintainence cycle setting to verify for you the time?
2014-02-13 03:43   
I have the following in the opensimdefaults.ini:

    ; Interval (s) between background save of script states
    SaveInterval = 120

    ; Interval (s) between maintenance runs (0 = disable)
    MaintenanceInterval = 10

These were the defaults that came with the build.