<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Hello all,<br>
    <br>
    On git r/17830, I am getting an out of memory exception when ever I
    try to detach a scripted object or on logout. I also have to tell
    the viewer to detach the attachments sometimes as many as 5 times in
    a row before it will actually detach (Seems to affect non scripted
    objects as well). I've tried deleting the contents of my
    ScriptsEngine folder as well as my assetcache folder to no avail.
    Sometimes the exception triggers and sometimes it doesn't (about
    every other detach attempt or logout attempt).<br>
    <br>
    <br>
    <b>Exceptions:<br>
      On log out:<br>
      ==========<br>
    </b><br>
    2012-01-18 07:47:12,281 ERROR -
    OpenSim.Region.ClientStack.LindenUDP.LLClientView [LLCLIENTVIEW]:
    Caught exception while processing
    OpenMetaverse.Packets.LogoutRequestPacket for mewtwo0641 Alito,
    Exception of type 'System.OutOfMemoryException' was thrown.    at
    System.String.ToCharArray()<br>
       at System.Text.Encoding.GetBytes(String s)<br>
       at OpenMetaverse.Utils.StringToBytes(String str)<br>
       at
    OpenSim.Region.CoreModules.Avatar.Attachments.AttachmentsModule.UpdateKnownItem(IScenePresence
    sp, SceneObjectGroup grp) in c:\Documents and
    Settings\admin\Desktop\opensim-e7619f7
    r17830\opensim-e7619f7\OpenSim\Region\CoreModules\Avatar\Attachments\AttachmentsModule.cs:line
    486<br>
       at
    OpenSim.Region.CoreModules.Avatar.Attachments.AttachmentsModule.SaveChangedAttachments(IScenePresence
    sp) in c:\Documents and Settings\admin\Desktop\opensim-e7619f7
    r17830\opensim-e7619f7\OpenSim\Region\CoreModules\Avatar\Attachments\AttachmentsModule.cs:line
    164<br>
       at OpenSim.Region.Framework.Scenes.Scene.RemoveClient(UUID
    agentID, Boolean closeChildAgents) in c:\Documents and
    Settings\admin\Desktop\opensim-e7619f7
    r17830\opensim-e7619f7\OpenSim\Region\Framework\Scenes\Scene.cs:line
    3122<br>
       at OpenSim.Region.ClientStack.LindenUDP.LLClientView.Close() in
    c:\Documents and Settings\admin\Desktop\opensim-e7619f7
    r17830\opensim-e7619f7\OpenSim\Region\ClientStack\Linden\UDP\LLClientView.cs:line
    517<br>
       at
    OpenSim.Region.ClientStack.LindenUDP.LLUDPServer.RemoveClient(LLUDPClient
    udpClient) in c:\Documents and
    Settings\admin\Desktop\opensim-e7619f7
    r17830\opensim-e7619f7\OpenSim\Region\ClientStack\Linden\UDP\LLUDPServer.cs:line
    1033<br>
       at
    OpenSim.Region.ClientStack.LindenUDP.LLUDPServer.LogoutHandler(IClientAPI
    client) in c:\Documents and Settings\admin\Desktop\opensim-e7619f7
    r17830\opensim-e7619f7\OpenSim\Region\ClientStack\Linden\UDP\LLUDPServer.cs:line
    1340<br>
       at System.Action`1.Invoke(T obj)<br>
       at
    OpenSim.Region.ClientStack.LindenUDP.LLClientView.Logout(IClientAPI
    client) in c:\Documents and Settings\admin\Desktop\opensim-e7619f7
    r17830\opensim-e7619f7\OpenSim\Region\ClientStack\Linden\UDP\LLClientView.cs:line
    11217<br>
       at
    OpenSim.Region.ClientStack.LindenUDP.LLClientView.HandleLogout(IClientAPI
    client, Packet packet) in c:\Documents and
    Settings\admin\Desktop\opensim-e7619f7
    r17830\opensim-e7619f7\OpenSim\Region\ClientStack\Linden\UDP\LLClientView.cs:line
    11201<br>
       at
    OpenSim.Region.ClientStack.LindenUDP.LLClientView.ProcessSpecificPacketAsync(Object
    state) in c:\Documents and Settings\admin\Desktop\opensim-e7619f7
    r17830\opensim-e7619f7\OpenSim\Region\ClientStack\Linden\UDP\LLClientView.cs:line
    683<br>
    <br>
    <b>On manual attachment detach:<br>
      ==========================</b><br>
    <br>
    2012-01-18 07:53:04,156 ERROR -
    OpenSim.Region.ClientStack.LindenUDP.LLClientView [LLCLIENTVIEW]:
    Caught exception while processing
    OpenMetaverse.Packets.ObjectDetachPacket for mewtwo0641 Alito,
    Exception of type 'System.OutOfMemoryException' was thrown.    at
    System.String.Concat(String str0, String str1)<br>
       at OpenMetaverse.Utils.StringToBytes(String str)<br>
       at
    OpenSim.Region.CoreModules.Avatar.Attachments.AttachmentsModule.UpdateKnownItem(IScenePresence
    sp, SceneObjectGroup grp) in c:\Documents and
    Settings\admin\Desktop\opensim-e7619f7
    r17830\opensim-e7619f7\OpenSim\Region\CoreModules\Avatar\Attachments\AttachmentsModule.cs:line
    486<br>
       at
    OpenSim.Region.CoreModules.Avatar.Attachments.AttachmentsModule.DetachSingleAttachmentToInvInternal(IScenePresence
    sp, UUID itemID) in c:\Documents and
    Settings\admin\Desktop\opensim-e7619f7
    r17830\opensim-e7619f7\OpenSim\Region\CoreModules\Avatar\Attachments\AttachmentsModule.cs:line
    699<br>
       at
    OpenSim.Region.CoreModules.Avatar.Attachments.AttachmentsModule.DetachSingleAttachmentToInv(IScenePresence
    sp, UUID itemID) in c:\Documents and
    Settings\admin\Desktop\opensim-e7619f7
    r17830\opensim-e7619f7\OpenSim\Region\CoreModules\Avatar\Attachments\AttachmentsModule.cs:line
    401<br>
       at
    OpenSim.Region.CoreModules.Avatar.Attachments.AttachmentsModule.Client_OnObjectDetach(UInt32
    objectLocalID, IClientAPI remoteClient) in c:\Documents and
    Settings\admin\Desktop\opensim-e7619f7
    r17830\opensim-e7619f7\OpenSim\Region\CoreModules\Avatar\Attachments\AttachmentsModule.cs:line
    917<br>
       at
    OpenSim.Region.ClientStack.LindenUDP.LLClientView.HandleObjectDetach(IClientAPI
    sender, Packet Pack) in c:\Documents and
    Settings\admin\Desktop\opensim-e7619f7
    r17830\opensim-e7619f7\OpenSim\Region\ClientStack\Linden\UDP\LLClientView.cs:line
    6170<br>
       at
    OpenSim.Region.ClientStack.LindenUDP.LLClientView.ProcessSpecificPacketAsync(Object
    state) in c:\Documents and Settings\admin\Desktop\opensim-e7619f7
    r17830\opensim-e7619f7\OpenSim\Region\ClientStack\Linden\UDP\LLClientView.cs:line
    683<br>
    <br>
    <b><br>
      If I log in after OoM Exception is thrown:<br>
      ==================================</b><br>
    <br>
    2012-01-18 08:02:35,687 ERROR -
    OpenSim.Region.CoreModules.Avatar.Attachments.AttachmentsModule
    [ATTACHMENTS MODULE]: Unable to rez attachment: Exception of type
    'System.OutOfMemoryException' was thrown.   at
    System.String.CreateStringFromEncoding(Byte* bytes, Int32
    byteLength, Encoding encoding)<br>
       at System.Text.UTF8Encoding.GetString(Byte[] bytes, Int32 index,
    Int32 count)<br>
       at OpenMetaverse.Utils.BytesToString(Byte[] bytes)<br>
       at
    OpenSim.Region.CoreModules.Framework.InventoryAccess.BasicInventoryAccessModule.RezObject(IClientAPI
    remoteClient, InventoryItemBase item, UUID assetID, Vector3 RayEnd,
    Vector3 RayStart, UUID RayTargetID, Byte BypassRayCast, Boolean
    RayEndIsIntersection, Boolean RezSelected, Boolean RemoveItem, UUID
    fromTaskID, Boolean attachment) in c:\Documents and
    Settings\admin\Desktop\opensim-e7619f7
    r17830\opensim-e7619f7\OpenSim\Region\CoreModules\Framework\InventoryAccess\InventoryAccessModule.cs:line
    725<br>
       at
    OpenSim.Region.CoreModules.Framework.InventoryAccess.BasicInventoryAccessModule.RezObject(IClientAPI
    remoteClient, UUID itemID, Vector3 RayEnd, Vector3 RayStart, UUID
    RayTargetID, Byte BypassRayCast, Boolean RayEndIsIntersection,
    Boolean RezSelected, Boolean RemoveItem, UUID fromTaskID, Boolean
    attachment) in c:\Documents and
    Settings\admin\Desktop\opensim-e7619f7
    r17830\opensim-e7619f7\OpenSim\Region\CoreModules\Framework\InventoryAccess\InventoryAccessModule.cs:line
    692<br>
       at
    OpenSim.Region.CoreModules.Avatar.Attachments.AttachmentsModule.RezSingleAttachmentFromInventoryInternal(IScenePresence
    sp, UUID itemID, UUID assetID, UInt32 attachmentPt) in c:\Documents
    and Settings\admin\Desktop\opensim-e7619f7
    r17830\opensim-e7619f7\OpenSim\Region\CoreModules\Avatar\Attachments\AttachmentsModule.cs:line
    720<br>
       at
    OpenSim.Region.CoreModules.Avatar.Attachments.AttachmentsModule.RezSingleAttachmentFromInventory(IScenePresence
    sp, UUID itemID, UInt32 AttachmentPt) in c:\Documents and
    Settings\admin\Desktop\opensim-e7619f7
    r17830\opensim-e7619f7\OpenSim\Region\CoreModules\Avatar\Attachments\AttachmentsModule.cs:line
    308<br>
       at
    OpenSim.Region.CoreModules.Avatar.Attachments.AttachmentsModule.RezAttachments(IScenePresence
    sp) in c:\Documents and Settings\admin\Desktop\opensim-e7619f7
    r17830\opensim-e7619f7\OpenSim\Region\CoreModules\Avatar\Attachments\AttachmentsModule.cs:line
    142<br>
    <br>
    <pre class="moz-signature" cols="72">-- 
OpenSim: 9 Region Standalone on 0.7.3 Dev
Physics: Open Dynamics Engine
OS: Windows XP 32 Bit
CPU: AMD Phenom II X4 840 3.2 GHz
Memory: 3 GB DDR3
Database: MySQL 5.1.11</pre>
  </body>
</html>