• 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-4043
Type: Sub-task Sub-task
Status: Open Open
Priority: Normal Normal
Assignee: Unassigned
Reporter: catherine pfeffer
Votes: 3
Watchers: 3
Operations

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

[MONO] Error management : global lists containing other lists create trace dump

Created: 27/Mar/09 03:37 AM   Updated: 30/Mar/09 04:23 PM
Return to search
Component/s: Scripts
Affects Version/s: 1.25 Server
Fix Version/s: None

Environment:
Second Life 1.22.11 (113976) Mar 6 2009 15:48:04 (Second Life Release Candidate)
Notes de version

Votre position : 262635.9, 229940.1, 31.9 in Watarrka Park located at sim2570.agni.lindenlab.com (216.82.18.67:13002)
Second Life Server 1.25.6.113484
Notes de version

CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 5000+
Memory: 2007 MB
OS Version: Linux 2.6.27-9-generic #1 SMP Thu Nov 20 22:15:32 UTC 2008 x86_64
Graphics Card Vendor: NVIDIA Corporation
Graphics Card: GeForce 8400 GS/PCI/SSE2
OpenGL Version: 2.1.2 NVIDIA 173.14.12

libcurl Version: libcurl/7.16.4 OpenSSL/0.9.7c zlib/1.2.3.3 c-ares/1.4.0
J2C Decoder Version: KDU
Audio Driver Version: FMOD version 3.750000
LLMozLib Version: [LLMediaImplLLMozLib] - 2.01.22740 (Mozilla GRE version 1.8.1.13_0000000000)
Packets Lost: 349/104542 (0.3%)
Issue Links:
Duplicate
 
Relates


 Description  « Hide
Consider the following wrong code :

list count = [ 0, 1, 2, 3 ];
list other_count = [ count ];

default
{
state_entry()

{ llSay(0, (string) other_count); }

}

If compiled into LSO, it produces a clean compile-time error :
Function Args:
Local List:
(1, 17) : ERROR : Lists can't contain lists

If compiled into Mono, it produces a call trace at run time :
[3:27] Object[script:New Script]: Script run-time error
[3:27] Object[script:New Script]: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> LindenLab.SecondLife.ListInListException: An application exception has occured.
plus a dozen cryptic lines.

If possible, such an error should be catched at compile time and not at run time. In any case, a simpler error message should be used, as the problem might be hard to debug for the scripter with such indications.

The same problem is handled cleanly if both lists are defined locally, both in LSO and in Mono.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
catherine pfeffer made changes - 27/Mar/09 03:48 AM
Field Original Value New Value
Link This issue is related to by SVC-1276 [ SVC-1276 ]
catherine pfeffer made changes - 27/Mar/09 04:02 AM
Link This issue Relates to SVC-2908 [ SVC-2908 ]
Harleen Gretzky made changes - 30/Mar/09 04:23 PM
Link This issue is original of duplicate SVC-4041 [ SVC-4041 ]