jOpenSimWorld

Grid Status: Online
Total Regions: 23
Visitors (30 Days): 12
Total Residents: 485
Online Now: 0
Hypergriders online: 0
× Please dont hesitate to report bugs here as I am always happy to get hints, where I can improve jOpenSim.

llResetLandBanList() and llResetLandPassList()

5 years 4 months ago #3179 by zephy
I'm not sure if this is a jOpenSim issue but asking just in case - I have found the although I can use the scripting functions to add or remove a user from the ban list or pass list (llAddToLandBanList etc) if I use the functions llResetLandBanList() and/or llResetLandPassList(), if there is at least one user on the list, I get an exception error thrown (it does remove the first person on the list but not others)

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:

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

Please Log in or Create an account to join the conversation.

5 years 4 months ago #3183 by djphil
There seems to be a problem in your script. You should check your lsl script.
The add/remove/reset ban/pass list functions work well on OpenSimulator.
This problem is not related to jOpenSim.

Please Log in or Create an account to join the conversation.

5 years 4 months ago #3184 by zephy
Sorry but with even a simple test script I also found it gives an error on a parcel on Canary island. The script is:
//
default
{
touch_start(integer num)
{
llResetLandBanList();
}
}
//

The error is:

[07:16] System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.ThrowHelper.ThrowInvalidOperationException (System.ExceptionResource resource) [0x0000b] in <dca3b561b8ad4f9fb10141d81b39ff45>:0
at System.Collections.Generic.List`1+Enumerator[T].MoveNextRare () [0x00016] in <dca3b561b8ad4f9fb10141d81b39ff45>:0
at System.Collections.Generic.List`1+Enumerator[T].MoveNext () [0x00050] in <dca3b561b8ad4f9fb10141d81b39ff45>:0
at OpenSim.Region.ScriptEngine.Shared.Api.LSL_Api.llResetLandBanList () [0x0007a] in <e6012250e66240a1b57d351cf24967ce>:0
at OpenSim.Region.ScriptEngine.Shared.ScriptBase.ScriptBaseClass.llResetLandBanList () [0x00000] in <e0b00b3a968c44d18aca9acc37aebae0>:0
at SecondLife.XEngineScript.default_event_touch_start (OpenSim.Region.ScriptEngine.Shared.LSL_Types+LSLInteger num) [0x00007] in <6cd259e5957a4b7fa41

Please Log in or Create an account to join the conversation.

5 years 4 months ago #3185 by zephy
Just a follow up that I managed to get this on when using an OSGrid avatar on a sim that I'm pretty sure has no links with jOpenSim stuff and is running 0.9.1, so I'm guessing this is a general OpenSim issue so will post there.

I'm intrigued you seem to be able to get it to work though?

(Note: It works fine if no names on the ban list but if there is one, it throws the error but still removes the name.)

Please Log in or Create an account to join the conversation.

5 years 4 months ago #3186 by zephy
Sorted in the latest build now
opensimulator.org/mantis/view.php?id=8563

Please Log in or Create an account to join the conversation.

5 years 4 months ago #3187 by foto50
As djphil mentioned, this is not jOpenSim related.

And do you really think I give permission for llResetLandBanList() on the free parcels on Canary Islands? ;)

Greetz
FoTo50

Please Log in or Create an account to join the conversation.

5 years 4 months ago #3188 by zephy
Yes I understand it isn't jOpenSim related but initially I did think it may be as it is to do with profiles in a way and also I couldn't believe (much as djphil also did) that this would be a general openSim error.

However, yes , it turns out people can't use those script functions much as it was an error in opensim that now has a fix built into the latest 0.9.1 build.

PS as it's an lsl script thing, it should work fine in any parcel that the scripter is owner of, so not sure I understand your last point? My reason for trying it there was I was checking if it was local to my grid before posting in opensim mantis (I also tried on a third grid and all gave same response, so was easy to document steps to get the bug.)

Please Log in or Create an account to join the conversation.

5 years 4 months ago - 5 years 4 months ago #3189 by djphil
Hello,

as you may have noticed, the bug was found on XEngine and YEngine and is now fixed (see Mantis 8563 ).

I have little time right now so I could not test it fully but it should work better now.
If you find that the problem has been solved then it is good to close the mantis indicating that it is solved.

Thanks to you for reporting this bug :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.139 seconds

Search

Donate jOpenSim

Please consider supporting our efforts.

Amount

Our Regions

Region: Loc X: Loc Y:
Agora 1000 998
BareBad… 997 997
Bohemas 996 998
BoraBor… 1002 999
Crystal… 1001 1000
DeepTho… 1005 998
FoToSan… 999 995
jCity 1001 997
jOpenWe… 1000 999
JuniorT… 1002 1001
Kanadah… 1002 1000
LindaKe… 1000 997
LittleC… 996 997
MonteSc… 1001 1001
Naos 999 999
Pangaea 1005 1003
RiverSi… 999 1000
Sakani 999 998
Snambin 1001 998
Tartola 997 998
ViewerH… 1002 998
WaterWo… 1001 999
WilderK… 1000 1000

jOpenSimWorld

Grid Status: Online
Total Regions: 23
Visitors (30 Days): 12
Total Residents: 485
Online Now: 0
Hypergriders online: 0