• All submissions to this site are governed by Second Life Project Contribution Agreement. By submitting patches and other information using this site, you acknowledge that you have read, understood, and agreed to those terms.
MAINTENANCE ANNOUNCEMENT - JIRA will undergo maintenance starting 1:00am PDT through 3:00am on Saturday 2010.03.20. Please do not enter issues during this time as the system maybe restarted.
Issue Details (XML | Word | Printable)

Key: SVC-1825
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: WorkingOnIt Linden
Reporter: Creem Pye
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
2. Second Life Service - SVC

control event triggers runtime error

Created: 13/Mar/08 06:19 AM   Updated: 22/Mar/08 05:37 PM
Component/s: Scripts
Affects Version/s: Mono Beta
Fix Version/s: Mono Beta

Time Tracking:
Not Specified

Environment: Mono 1.19.1.82025
Issue Links:
Duplicate
 
Relates
 

Linden Lab Issue ID: DEV-12180
Linden Lab Internal Branch: mono-based-on-1-19-1-server-81640


 Description  « Hide
Creating a Mono script with a control event triggers a runtime error whenever the control event triggers:

"Script run-time error
System.ArgumentException: parameters
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000]
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000]
at LindenLab.SecondLife.LslUserScript.OnEvent (ScriptEvent evt) [0x00000]
at LindenLab.SecondLife.Script.Run (ScriptEvent evt) [0x00000] "

Repro:
Create the following script and place it in an object:

default
{
state_entry()

{ llRequestPermissions(llGetOwner(), PERMISSION_TAKE_CONTROLS); }

run_time_permissions(integer perm)
{
llOwnerSay("permissions "+(string)perm);
if (perm & (PERMISSION_TAKE_CONTROLS))

{ llTakeControls(CONTROL_UP | CONTROL_DOWN | CONTROL_FWD | CONTROL_BACK | CONTROL_RIGHT | CONTROL_LEFT | CONTROL_ROT_RIGHT | CONTROL_ROT_LEFT | CONTROL_ML_LBUTTON | CONTROL_LBUTTON, TRUE, FALSE); }

}
control(key id, integer level, integer edge)

{ llOwnerSay("control "+(string)level+" "+(string)edge); }

}

After the object is granted control permissions, pressing any of the controlled keys results in the runtime error listed above. The LSL2 version of this script does not have this problem.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Vektor Linden added a comment - 19/Mar/08 10:39 AM
I'm seeing this too, importing.