Mantis Bug Tracker

View Revisions: Issue #8706 All Revisions ] Back to Issue ]
Summary 0008706: Various exceptions thrown with scripts, attachments, NPCs, etc.
Revision 2020-05-29 19:59 by mewtwo0641
Description As of commit 8b7716, I am experiencing various exceptions being thrown with scripts, failed attachments, etc.

The script exceptions happen most often when teleporting, sim crossing, or logging off. I am unsure what exactly is causing these exceptions but at the very least, they seem to be making the scripts involved stop working. This is most noticeable on scripts that users are using in attachments (vs. scripts NPCs are using)

There are several NPCs that auto load after the sim starts and the failed attachments exceptions are happening on them; although the consequences of these exceptions are as of right now, unknown, since visibly the attachments appear to be attached to the NPCs.

I have tried the usual steps to see if it's an issue on my end and possibly resolve (in no particular order): relog, restart OS, reboot server, delete viewer cache, delete OpenSim caches, delete ScriptEngines folder, reset the affected scripts, recompile the affected scripts, etc.

I ran git bisect and found that these issues start happening at commit 8b7716. Reverting this commit does partially fix the issue for me. The script exceptions stop happening and the scripts no longer quit functioning after the above mentioned scenarios; although the attachment exceptions still occur, so I suspect another commit after 8b7716 is causing this.

If I checkout a revision before commit 8b7716 then everything is fine; no issues at all.

===================================
Moved Additional Information here:
===================================

Git Bisect Result:

$ git bisect good
8b771620203b0cafc851934a2514166dac1b2923 is the first bad commit
commit 8b771620203b0cafc851934a2514166dac1b2923
Author: UbitUmarov <ajlduarte@sapo.pt>
Date: Thu May 14 12:02:46 2020 +0100

    make sog, sop and sop inventory IDisposable

 .../Avatar/Attachments/AttachmentsModule.cs | 4 +-
 OpenSim/Region/Framework/Scenes/Scene.cs | 2 +-
 .../Region/Framework/Scenes/SceneObjectGroup.cs | 53 ++++++++++++++++------
 OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 36 ++++++++++++++-
 .../Framework/Scenes/SceneObjectPartInventory.cs | 28 +++++++++++-
 5 files changed, 104 insertions(+), 19 deletions(-)


Exceptions (There are many of these exceptions, but they all say the same thing, just the attachments and script names are changed):

Script Exceptions:

2020-05-20 21:47:45,293 INFO [YEngine]: Exception while running dbf4b8f1-57ce-43c4-a2ac-f407c334a7f8
NullReferenceException: Object reference not set to an instance of an object.
Prim: <AO v7.0.3>, Script: <* AO v7.0.3>, Location: Test Region <0,-1,-1>
Script must be Reset to re-enable.
  at OpenSim.Region.ScriptEngine.Shared.Api.LSL_Api.llGetInventoryType(String name) in LSL_Api.cs:line 13531
  at OpenSim.Region.ScriptEngine.Shared.ScriptBase.ScriptBaseClass.llGetInventoryType(String name) in LSL_Stub.cs:line 546
  at handleEvent(string)
  at timerTick()
  at default timer
  at OpenSim.Region.ScriptEngine.Yengine.XMRInstAbstract.CallSEH() in XMRInstAbstract.cs:line 525
  at OpenSim.Region.ScriptEngine.Yengine.XMRInstance.StartEx() in XMRScriptUThread.cs:line 51
System.NullReferenceException: Object reference not set to an instance of an object.
   at OpenSim.Region.ScriptEngine.Shared.Api.LSL_Api.llGetInventoryType(String name) in E:\opensim\OpenSim\Region\ScriptEngine\Shared\Api\Implementation\LSL_Api.cs:line 13531
   at OpenSim.Region.ScriptEngine.Shared.ScriptBase.ScriptBaseClass.llGetInventoryType(String name) in E:\opensim\OpenSim\Region\ScriptEngine\Shared\Api\Runtime\LSL_Stub.cs:line 546
   at handleEvent(string)(XMRInstanceSuperType , String )
   at timerTick()(XMRInstanceSuperType )
   at default timer(XMRInstAbstract )
   at OpenSim.Region.ScriptEngine.Yengine.XMRInstAbstract.CallSEH() in E:\opensim\OpenSim\Region\ScriptEngine\YEngine\XMRInstAbstract.cs:line 525
   at OpenSim.Region.ScriptEngine.Yengine.XMRInstance.StartEx() in E:\opensim\OpenSim\Region\ScriptEngine\YEngine\XMRScriptUThread.cs:line 51


Attachment Exceptions:

2020-05-22 21:00:47,061 ERROR [ATTACHMENTS MODULE]: Failed to attach Bracer 62d5e8fa-ebf5-438a-b58f-7f590c9991d1 for Helper NPC, exception Value cannot be null. at System.Threading.Monitor.Enter(Object obj)
   at OpenSim.Region.Framework.Scenes.ScenePresence.AddAttachment(SceneObjectGroup gobj) in E:\opensim\OpenSim\Region\Framework\Scenes\ScenePresence.cs:line 5462
   at OpenSim.Region.CoreModules.Avatar.Attachments.AttachmentsModule.AttachToAgent(IScenePresence sp, SceneObjectGroup so, UInt32 attachmentpoint, Vector3 attachOffset, Boolean silent) in E:\opensim\OpenSim\Region\CoreModules\Avatar\Attachments\AttachmentsModule.cs:line 1083
   at OpenSim.Region.CoreModules.Avatar.Attachments.AttachmentsModule.AttachObjectInternal(IScenePresence sp, SceneObjectGroup group, UInt32 attachmentPt, Boolean silent, Boolean addToInventory, Boolean resumeScripts, Boolean append) in E:\opensim\OpenSim\Region\CoreModules\Avatar\Attachments\AttachmentsModule.cs:line 665
   at OpenSim.Region.CoreModules.Avatar.Attachments.AttachmentsModule.RezSingleAttachmentFromInventoryInternal(IScenePresence sp, UUID itemID, UUID assetID, UInt32 attachmentPt, Boolean append, XmlDocument doc) in E:\opensim\OpenSim\Region\CoreModules\Avatar\Attachments\AttachmentsModule.cs:line 1291
2020-05-22 21:00:47,084 ERROR [ATTACHMENTS MODULE]: Unable to rez attachment with itemID aa432743-671d-4620-b546-cd2260058287, assetID d5276939-7158-4ac4-bd0a-30e9ca81ee5e, point 19 for 00000000-0000-0000-0000-000000000000: Value cannot be null.
   at System.Threading.Monitor.Enter(Object obj)
   at OpenSim.Region.Framework.Scenes.ScenePresence.RemoveAttachment(SceneObjectGroup gobj) in E:\opensim\OpenSim\Region\Framework\Scenes\ScenePresence.cs:line 5597
   at OpenSim.Region.CoreModules.Avatar.Attachments.AttachmentsModule.RezSingleAttachmentFromInventoryInternal(IScenePresence sp, UUID itemID, UUID assetID, UInt32 attachmentPt, Boolean append, XmlDocument doc) in E:\opensim\OpenSim\Region\CoreModules\Avatar\Attachments\AttachmentsModule.cs:line 1304
   at OpenSim.Region.CoreModules.Avatar.Attachments.AttachmentsModule.RezAttachments(IScenePresence sp) in E:\opensim\OpenSim\Region\CoreModules\Avatar\Attachments\AttachmentsModule.cs:line 455
Revision 2020-05-22 19:37 by mewtwo0641
Description As of commit 8b7716, I am experiencing various exceptions being thrown with scripts, failed attachments, etc.

The script exceptions happen most often when teleporting, sim crossing, or logging off. I am unsure what exactly is causing these exceptions but at the very least, they seem to be making the scripts involved stop working. This is most noticeable on scripts that users are using in attachments (vs. scripts NPCs are using)

There are several NPCs that auto load after the sim starts and the failed attachments exceptions are happening on them; although the consequences of these exceptions are as of right now, unknown, since visibly the attachments appear to be attached to the NPCs.

I have tried the usual steps to see if it's an issue on my end and possibly resolve (in no particular order): relog, restart OS, reboot server, delete viewer cache, delete OpenSim caches, delete ScriptEngines folder, reset the affected scripts, recompile the affected scripts, etc.

I ran git bisect and found that these issues start happening at commit 8b7716. Reverting this commit does partially fix the issue for me. The script exceptions stop happening and the scripts no longer quit functioning after the above mentioned scenarios; although the attachment exceptions still occur, so I suspect another commit after 8b7716 is causing this.

If I checkout a revision before commit 8b7716 then everything is fine; no issues at all.
Revision 2020-05-22 19:35 by mewtwo0641
Description As of commit 8b7716, I am experiencing various exceptions being thrown with scripts, failed attachments, etc.

The script exceptions happen most often when teleporting, sim crossing, or logging off. I am unsure what exactly is causing these exceptions but at the very least, they seem to be making the scripts involved stop working. This is most noticeable on scripts that users are using in attachments (vs. scripts NPCs are using)

There are several NPCs that auto load after the sim starts and the failed attachments exceptions are happening on them; although the consequences of these exceptions are as of right now, unknown, since visibly the attachments appear to be attached to the NPCs.

I have tried the usual steps to see if it's an issue on my end and possibly resolve (in no particular order): relog, restart OS, reboot server, delete viewer cache, delete OpenSim caches, delete ScriptEngines folder, reset the affected scripts, recompile the affected scripts, etc.

These issues start happening at commit 8b7716. Reverting this commit does partially fix the issue for me. The script exceptions stop happening and the scripts no longer quit functioning after the above mentioned scenarios; although the attachment exceptions still occur, so I suspect another commit after 8b7716 is causing this.

If I checkout a revision before commit 8b7716 then everything is fine; no issues at all.


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker