Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008309opensim[GRID] Inventory Servicepublic2018-03-27 20:152019-02-06 11:29
Assigned Tomewtwo0641 
PlatformOperating SystemOperating System Version
Product Versionmaster (dev code) 
Target VersionFixed in Versionmaster (dev code) 
Summary0008309: Timeout and crash if it takes too long to purge trash folder
DescriptionIf it takes too long to purge the trash folder, the operation times out, and then results in crashing the OpenSim instance the operation was performed on.

I usually only see this when the trash folder has accumulated a lot of items (On order of thousands) and then empty trash/purge is performed.

A workaround to this would be to not wait until the trash folder accumulates so many items before emptying it; but it would be good if OpenSim didn't crash in case it does happen... Some of the more productive members of my grid aren't in the habit of emptying their trash folder on a regular basis :)
Steps To ReproducePurge the trash when it has a lot of items in it
Additional InformationException Log:

2018-03-26 00:27:58,907 INFO [FORMS]: Error receiving response from [^] The operation has timed out. Request: METHOD=PURGEFOLDER&ID=c8ecc228-937e-4668-9393-64bff28a63a0
2018-03-26 00:27:59,237 ERROR [APPLICATION]:
APPLICATION EXCEPTION DETECTED: System.UnhandledExceptionEventArgs

Exception: System.Net.WebException: The operation has timed out

Server stack trace:
   at OpenSim.Framework.SynchronousRestFormsRequester.MakeRequest(String verb, String requestUrl, String obj, Int32 timeoutsecs, IServiceAuth auth, Boolean keepalive) in E:\opensim\OpenSim\Framework\WebUtil.cs:line 1049
   at OpenSim.Services.Connectors.XInventoryServicesConnector.MakeRequest(String method, Dictionary`2 sendData) in E:\opensim\OpenSim\Services\Connectors\Inventory\XInventoryServicesConnector.cs:line 719
   at OpenSim.Services.Connectors.XInventoryServicesConnector.PurgeFolder(InventoryFolderBase folder) in E:\opensim\OpenSim\Services\Connectors\Inventory\XInventoryServicesConnector.cs:line 415
   at OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory.RemoteXInventoryServicesConnector.PurgeFolder(InventoryFolderBase folder) in E:\opensim\OpenSim\Region\CoreModules\ServiceConnectorsOut\Inventory\RemoteXInventoryServiceConnector.cs:line 257
   at OpenSim.Region.Framework.Scenes.Scene.PurgeFolderAsync(UUID userID, UUID folderID) in E:\opensim\OpenSim\Region\Framework\Scenes\Scene.PacketHandlers.cs:line 706
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)

Exception rethrown at [0]:
   at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
   at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
   at OpenSim.Region.Framework.Scenes.Scene.PurgeFolderDelegate.EndInvoke(IAsyncResult result)
   at OpenSim.Region.Framework.Scenes.Scene.PurgeFolderCompleted(IAsyncResult iar) in E:\opensim\OpenSim\Region\Framework\Scenes\Scene.PacketHandlers.cs:line 715
   at System.Runtime.Remoting.Messaging.AsyncResult.SyncProcessMessage(IMessage msg)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()

Application is terminating: True
TagsNo tags attached.
Git Revision or version number
Run Mode Grid (Multiple Regions per Sim)
Physics EngineubODE
Script Engine
Environment.NET / Windows64
Mono VersionNone
Attached Files

- Relationships

-  Notes
UbitUmarov (administrator)
2018-03-27 20:31

made a change in master.
should not terminate now ( but will timeout on same conditions)
mewtwo0641 (reporter)
2018-03-27 22:45

That seems to work, no more crash. Thank you! :)
BillBlight (developer)
2019-02-06 11:29

Marked as Resolved but never closed, can be reopened if needed.

- Issue History
Date Modified Username Field Change
2018-03-27 20:15 mewtwo0641 New Issue
2018-03-27 20:31 UbitUmarov Note Added: 0032612
2018-03-27 22:45 mewtwo0641 Note Added: 0032613
2018-03-27 22:45 mewtwo0641 Status new => resolved
2018-03-27 22:45 mewtwo0641 Fixed in Version => master (dev code)
2018-03-27 22:45 mewtwo0641 Resolution open => fixed
2018-03-27 22:45 mewtwo0641 Assigned To => mewtwo0641
2019-02-06 11:29 BillBlight Note Added: 0034400
2019-02-06 11:29 BillBlight Status resolved => closed

Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker