Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002643 [opensim] [REGION] Scripting Engine major always 2008-11-17 12:52 2009-10-19 07:48
Reporter zilla View Status public  
Assigned To melanie
Priority normal Resolution fixed  
Status closed   Product Version
Summary 0002643: all scripts using at least one event stop working the first time second inventory is run in any region of the sim
Description first time after reset of the sim second inventory is run in any region of the sim it fills up the script event queue and thus prevents all other scripts using events from running until sim is reset again.

Behaviour is consistent -- script event queue crashes every time second inventory is run but the error log messages vary -- the error log for three different test runs of second inventory is copied in additional information below.

The error occurs for the DotNetEngine only, so bypass is to instead use the Xengine.

The script UUID referenced in the error log does not exist in the DB after second inventory has disconnected.
Additional Information Error log:

2008-12-02 08:18:25,233 DEBUG - OpenSim.Region.ScriptEngine.DotNetEngine.ScriptEngine OnRemoveScript localID: 721156 LLUID: 3af0551d-9a5c-47f7-a9d9-41a6e774889f
2008-12-02 08:18:25,295 ERROR - OpenSim.Region.ScriptEngine.DotNetEngine.ScriptEngine [ScriptEngine.DotNetEngine]: Exception System.AppDomainUnloadedException thrown
2008-12-02 08:18:25,295 ERROR - OpenSim.Region.ScriptEngine.DotNetEngine.ScriptEngine [ScriptEngine.DotNetEngine]: Event queue thread terminating with exception. PLEASE REBOOT YOUR SIM - SCRIPT EVENTS WILL NOT WORK UNTIL YOU DO. Exception is System.AppDomainUnloadedException: The application domain in which the thread was running has been unloaded.




2008-12-02 09:08:18,748 ERROR - OpenSim.Region.ScriptEngine.DotNetEngine.ScriptEngine [ScriptEngine.DotNetEngine]: ERROR: Event execution queue item count is at 600. Config variable "EventExecutionMaxQueueSize" is set to 600, so ignoring new event.
2008-12-02 09:08:18,748 ERROR - OpenSim.Region.ScriptEngine.DotNetEngine.ScriptEngine [ScriptEngine.DotNetEngine]: Event ignored: localID: 720052, itemID: cf27e004-0cc5-4398-9de6-0e1434567018, FunctionName: no_sensor
2008-12-02 09:08:23,771 ERROR - OpenSim.Region.ScriptEngine.DotNetEngine.ScriptEngine [ScriptEngine.DotNetEngine]: ERROR: Event execution queue item count is at 600. Config variable "EventExecutionMaxQueueSize" is set to 600, so ignoring new event.
2008-12-02 09:08:23,771 ERROR - OpenSim.Region.ScriptEngine.DotNetEngine.ScriptEngine [ScriptEngine.DotNetEngine]: Event ignored: localID: 720052, itemID: cf27e004-0cc5-4398-9de6-0e1434567018, FunctionName: no_sensor
2008-12-02 09:08:28,794 ERROR - OpenSim.Region.ScriptEngine.DotNetEngine.ScriptEngine [ScriptEngine.DotNetEngine]: ERROR: Event execution queue item count is at 600. Config variable "EventExecutionMaxQueueSize" is set to 600, so ignoring new event.
2008-12-02 09:08:28,794 ERROR - OpenSim.Region.ScriptEngine.DotNetEngine.ScriptEngine [ScriptEngine.DotNetEngine]: Event ignored: localID: 720052, itemID: cf27e004-0cc5-4398-9de6-0e1434567018, FunctionName: no_sensor



Exception rethrown at [0]:
   at OpenSim.Region.ScriptEngine.DotNetEngine.EventQueueThreadClass.EventQueueThreadLoop() in D:\OSGRID\OSGRID RELEASES\osgrid.release.7471\OpenSim\Region\ScriptEngine\DotNetEngine\EventQueueThreadClass.cs:line 207
2008-12-02 15:08:07,588 DEBUG - OpenSim.Region.Environment.Scenes.Scene [INTERREGION]: A new prim bea04e54-e103-4404-ab64-d9de54b12f7b arrived from a neighbor
2008-12-02 15:08:07,650 DEBUG - OpenSim.Region.ScriptEngine.DotNetEngine.ScriptEngine [ScriptEngine.DotNetEngine]: Unloading script
2008-12-02 15:08:07,666 ERROR - OpenSim.Region.ScriptEngine.DotNetEngine.ScriptEngine [ScriptEngine.DotNetEngine]: Exception System.AppDomainUnloadedException thrown
2008-12-02 15:08:07,666 ERROR - OpenSim.Region.ScriptEngine.DotNetEngine.ScriptEngine [ScriptEngine.DotNetEngine]: Event queue thread terminating with exception. PLEASE REBOOT YOUR SIM - SCRIPT EVENTS WILL NOT WORK UNTIL YOU DO. Exception is System.AppDomainUnloadedException: The application domain in which the thread was running has been unloaded.
Tags No tags attached.
Git Revision
SVN Revision 7471 7302
Run Mode Grid (Multiple Regions per Sim)
Physics Engine BasicPhysics
Environment .NET / Windows32
Mono Version None
Attached Files

- Relationships

-  Notes
(0007560)
melanie (administrator)
2008-12-04 19:34

It would be great if you could add comments rather than update the header all the time. That way people who are not following it can still look up the history of the bug easily.
(0007561)
zilla (reporter)
2008-12-04 19:42
edited on: 2008-12-07 05:16

Talked to the second inventory (SI) chief designer. He was aware of this bug. He pointed out the following:

SI is solely written in c#, it does not execute any lsl scripts during restore. So the event queue crash is caused by scripts uploaded as part of the contents of the restored objects. It's the compile when these scripts are added to the restored objects that cause the event queue crash. He said he thought he a long time ago had reproduced this error outside SI using the regular client by dragging multiple scripts between object contents and inventory.

So the bypass for this DotNet engine bug is to use SI to restore/upload objects without their scripts adding the scripts afterwards using copy/paste into newly created scripts.

(0013464)
Fly-Man- (developer)
2009-09-18 08:51

Issue hasn't been seen since the latest SI version.

Also DNE is no longer the preferred ScriptEngine
(0013465)
melanie (administrator)
2009-09-18 08:53

Actually, SO uploads an extended properties restore script as well. However, this error is no longer significant.

- Issue History
Date Modified Username Field Change
2008-11-17 12:52 zilla New Issue
2008-11-17 12:52 zilla SVN Revision => 7302
2008-11-17 12:52 zilla Run Mode => Grid (1 Region per Sim)
2008-11-17 12:52 zilla Physics Engine => BasicPhysics
2008-11-17 12:52 zilla Environment => .NET / Windows32
2008-11-17 16:37 nlin Issue Monitored: nlin
2008-11-30 22:52 zilla Summary sit script stopped working => all scripts using at least one event stop working in the entire grid the first time second inventory is run somewhere in the grd
2008-11-30 23:01 zilla Additional Information Updated
2008-11-30 23:04 zilla Severity minor => major
2008-12-01 14:30 zilla Run Mode Grid (1 Region per Sim) => Grid (Multiple Regions per Sim)
2008-12-01 16:43 zilla Summary all scripts using at least one event stop working in the entire grid the first time second inventory is run somewhere in the grd => all scripts using at least one event stop working the first time second inventory is run in any region of the sim
2008-12-01 16:43 zilla Additional Information Updated
2008-12-04 19:14 zilla SVN Revision 7302 => 7471 7302
2008-12-04 19:30 zilla Description Updated
2008-12-04 19:30 zilla Additional Information Updated
2008-12-04 19:34 melanie Note Added: 0007560
2008-12-04 19:35 zilla Description Updated
2008-12-04 19:42 zilla Note Added: 0007561
2008-12-05 15:10 kcozens Issue Monitored: kcozens
2008-12-07 05:16 zilla Note Edited: 0007561
2009-09-18 08:51 Fly-Man- Note Added: 0013464
2009-09-18 08:51 Fly-Man- Status new => feedback
2009-09-18 08:53 melanie Note Added: 0013465
2009-09-18 08:53 melanie Mono Version => None
2009-09-18 08:53 melanie Status feedback => resolved
2009-09-18 08:53 melanie Resolution open => fixed
2009-09-18 08:53 melanie Assigned To => melanie
2009-10-19 07:48 chi11ken Status resolved => closed


Mantis 1.1.1[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker