• 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.
Issue Details (XML | Word | Printable)

Key: SVC-3010
Type: Bug Bug
Status: Resolved Resolved
Resolution: Cannot Reproduce
Priority: Critical Critical
Assignee: Unassigned
Reporter: Cenji Neutra
Votes: 0
Watchers: 1
Operations

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

Mono runtime exception on script execution (ArgumentOutOfRangeException)

Created: 05/Sep/08 05:21 PM   Updated: 16/Sep/08 05:04 PM
Return to search
Component/s: Scripts
Affects Version/s: 1.24 Server
Fix Version/s: None

Issue Links:
Relates


 Description  « Hide
A customer of our vendors reported this exception:
[12:32] Vendor [script:.CheckData 2.3]: Script run-time error
[12:32] Vendor [script:.CheckData 2.3]: System.ArgumentOutOfRangeException: Index is less than 0 or more than or equal to the list count.
Parameter name: index
0
at System.Collections.ArrayList.get_Item (Int32 index) [0x00000]
at LindenLab.SecondLife.Script.GetNextQueuedEvent (System.Int32& event_type) [0x00000]

I didn't observe that ever happening during the development and testing of that script on 1.24, so unfortunately I'm unable to reproduce it (and can't post the script here due to business sensitivity - though would be happy for a Linden to look at it).
I'm going on vacation for a week, but I'll post a repro case if I am able to reproduce it and produce a simpler script.

I believe this was on a 1.24.3 or 1.24.4 version sim.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Cenji Neutra made changes - 05/Sep/08 05:22 PM
Field Original Value New Value
Link This issue Relates to SVC-1276 [ SVC-1276 ]
Periapse Linden added a comment - 15/Sep/08 10:28 AM
please reopen if you find a repro for this. Currently there is nothing we can investigate

Periapse Linden made changes - 15/Sep/08 10:28 AM
Resolution Cannot Reproduce [ 5 ]
Status Open [ 1 ] Resolved [ 5 ]
Cenji Neutra added a comment - 15/Sep/08 10:57 AM
Did someone look into the cause?
Not having reproducibility isn't necessarily a reason in itself to not try to fix it. As a seasoned software engineer and someone who's written compilers to IL code under Mono myself, I can say the logical thing to do would be to look at the source for your GetNextQueuedEvent() method and find where you're doing queue[i] where i is out of range (if you haven't already).
Guessing by the method name, its parameter and the exception, I'd bet that the event queue is an ArrayList and you're just indexing incorrectly under some circumstance.

Paste the source to the method in here and I'll try to find it for you

I will certainly post if I can reproduce it - but given it wasn't an object I own and LL is the only party able to access its state, that may not be possible.

PS: given that there seem to be a lot of bugs still in the Mono engine, perhaps you should upload the debug symbol files to the sims too, so that you get line number information in your exception stack outputs.


Periapse Linden made changes - 16/Sep/08 01:50 PM
Link This issue is related to by SVC-1276 [ SVC-1276 ]
Periapse Linden made changes - 16/Sep/08 01:52 PM
Link This issue Relates to SVC-1276 [ SVC-1276 ]
Cenji Neutra made changes - 16/Sep/08 05:04 PM
Link This issue Relates to SVC-2908 [ SVC-2908 ]
Cenji Neutra added a comment - 16/Sep/08 05:04 PM
SVC-2908 has become a meta issue for these Mono exception bugs.

Sue Linden made changes - 13/Nov/08 12:11 PM
Workflow jira-2007-12-22a [ 58900 ] jira-2008-11-14 [ 82629 ]
Sue Linden made changes - 13/Nov/08 04:47 PM
Workflow jira-2008-11-14 [ 82629 ] jira-2008-11-14a [ 92362 ]