Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008563opensim[REGION] Script Functionspublic2019-07-15 09:462019-07-19 12:15
ReporterCnayl Rainbow 
Assigned ToUbitUmarov 
PrioritynormalSeveritycrashReproducibilityalways
StatusresolvedResolutionfixed 
PlatformFirestormOSWindows & UbuntuOS Version0.9.1 & 0.9.0
Product Version 
Target VersionFixed in Versionmaster (dev code) 
Summary0008563: llResetLandBanList() and related functions cause error message
DescriptionIf there is at least one user in the 'Always banned' list for a parcel, calling the function llResetLandBanList() removes the first name only plus generates an error
Steps To ReproduceAdd a user to banned list
Run simple script in a prim:
default
{
   touch_start(integer num)
{
  llResetLandBanList();
}
}
When you (as the parcel owner) touch the prim, get error as below.
Additional Information
DEBUG MESSAGE IN WORLD:
[12:55] System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <6649516e5b3542319fb262b421af0adb>:0
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00083] in <6649516e5b3542319fb262b421af0adb>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) <0


OPENSIM CONSOLE ERROR

20:55:05 - [SCRIPT INSTANCE]: Runtime error in script New Script (event touch_start), part Object d5bd398e-049c-40bc-9824-eaa52a73457d at <410.0626, 388.5648, 23.98439> in Sandy Island System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <6649516e5b3542319fb262b421af0adb>:0
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00083] in <6649516e5b3542319fb262b421af0adb>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) <0x7f43c306bf40 + 0x00038> in <6649516e5b3542319fb262b421af0adb>:0
at OpenSim.Region.ScriptEngine.Shared.ScriptBase.Executor.ExecuteEvent (System.String state, System.String FunctionName, System.Object[] args) [0x0009b] in <e0b00b3a968c44d18aca9acc37aebae0>:0
at OpenSim.Region.ScriptEngine.Shared.ScriptBase.ScriptBaseClass.ExecuteEvent (System.String state, System.String FunctionName, System.Object[] args) [0x00000] in <e0b00b3a968c44d18aca9acc37aebae0>:0
at OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.EventProcessorInt () [0x00326] in <796e2a902d034aba971eb38f4fc50bdf>:0
TagsNo tags attached.
Git Revision or version number
Run Mode Grid (Multiple Regions per Sim)
Physics EngineBulletSim
Script Engine
EnvironmentMono / Linux64, Mono / Windows
Mono Version5.x
ViewerFirestorm
Attached Files

- Relationships

-  Notes
(0035487)
Cnayl Rainbow (reporter)
2019-07-15 09:49

Also found that llResetLandPassList() behaves likewise
(0035488)
BillBlight (developer)
2019-07-15 10:36
edited on: 2019-07-15 11:47

Verified it also happens in Yengine, if at least one name on the list, if more than one name , it removes the first person then throws the error, script then stops.

[YEngine]: Exception while running cd3c1999-2749-42c5-a3aa-ede8a3f84cd3
InvalidOperationException: Collection was modified; enumeration operation may not execute.
Prim: <Object>, Script: <New Script>, Location: Dev Outreach <354,386,22>
Script must be Reset to re-enable.
at System.Collections.Generic.List`1+Enumerator[T].MoveNext () <0x7f6fa177a910 + 0x00088> in <04750267503a43e5929c1d1ba19daf3e>:0
at OpenSim.Region.ScriptEngine.Shared.Api.LSL_Api.llResetLandBanList () [0x00071] in <7cec1389b3f74704b9fb1cf82916e964>:0
at OpenSim.Region.ScriptEngine.Shared.ScriptBase.ScriptBaseClass.llResetLandBanList () [0x00000] in <f64a8442bf0b410f8b33fe760243f0ff>:0
at (wrapper dynamic-method) System.Object.default touch_start(OpenSim.Region.ScriptEngine.Yengine.XMRInstAbstract)
at OpenSim.Region.ScriptEngine.Yengine.XMRInstAbstract.CallSEH () [0x0003d] in <4a6124eb15f54598b4301a81ec9e126d>:0
at OpenSim.Region.ScriptEngine.Yengine.XMRInstance.StartEx () [0x00007] in <4a6124eb15f54598b4301a81ec9e126d>:0
[YEngine]: Exception while running cd3c1999-2749-42c5-a3aa-ede8a3f84cd3
InvalidOperationException: Collection was modified; enumeration operation may not execute.
Prim: <Object>, Script: <New Script>, Location: Dev Outreach <354,386,22>
Script must be Reset to re-enable.
at System.Collections.Generic.List`1+Enumerator[T].MoveNext () <0x7f6fa177a910 + 0x00088> in <04750267503a43e5929c1d1ba19daf3e>:0
at OpenSim.Region.ScriptEngine.Shared.Api.LSL_Api.llResetLandBanList () [0x00071] in <7cec1389b3f74704b9fb1cf82916e964>:0
at OpenSim.Region.ScriptEngine.Shared.ScriptBase.ScriptBaseClass.llResetLandBanList () [0x00000] in <f64a8442bf0b410f8b33fe760243f0ff>:0
at (wrapper dynamic-method) System.Object.default touch_start(OpenSim.Region.ScriptEngine.Yengine.XMRInstAbstract)
at OpenSim.Region.ScriptEngine.Yengine.XMRInstAbstract.CallSEH () [0x0003d] in <4a6124eb15f54598b4301a81ec9e126d>:0
at OpenSim.Region.ScriptEngine.Yengine.XMRInstance.StartEx () [0x00007] in <4a6124eb15f54598b4301a81ec9e126d>:0

(0035489)
UbitUmarov (administrator)
2019-07-15 14:12

Thanks, both should work on master now.
(0035490)
Cnayl Rainbow (reporter)
2019-07-19 11:18

Great thanks, works as expected now when I tried it.

- Issue History
Date Modified Username Field Change
2019-07-15 09:46 Cnayl Rainbow New Issue
2019-07-15 09:49 Cnayl Rainbow Note Added: 0035487
2019-07-15 10:36 BillBlight Note Added: 0035488
2019-07-15 11:47 BillBlight Note Edited: 0035488 View Revisions
2019-07-15 14:12 UbitUmarov Note Added: 0035489
2019-07-19 11:18 Cnayl Rainbow Note Added: 0035490
2019-07-19 12:15 Fly-Man- Status new => resolved
2019-07-19 12:15 Fly-Man- Fixed in Version => master (dev code)
2019-07-19 12:15 Fly-Man- Resolution open => fixed
2019-07-19 12:15 Fly-Man- Assigned To => UbitUmarov


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker