Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005082opensim[REGION] Scripting Enginepublic2010-10-10 02:042010-10-11 20:04
ReporterDrCuriosity 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0005082: Assignment of list with default values causes error on script reset (but not on save)
DescriptionIn an LSL script, a two lists are globally declared, one with with default values, e.g.:

list defaults = [1, 2, 3];
list states;

In the state_entry() event, the populated list is copied into the empty list using a standard variable assignment: "states = defaults". This works fine when the script is first saved and executed. However, when the script is reset (either via the viewer or a scripted llResetScript() function), both lists become empty. In fact, the "defaults" list variable becomes empty even before the assignment takes place in the script.

When the above assignment is removed, the lists behave as expected, i.e. the "defaults" list is populated and the "states" list is empty.
Additional InformationMinimal test LSL script that replicates bug is attached.

Mono version in use is v2.6.4.
TagsNo tags attached.
Git Revision or version number0
Run Mode Standalone (Multiple Regions)
Physics Engine
Script Engine
Environment.NET / Windows32
Mono VersionOther
Viewer
Attached Filestxt file icon scripting_bug.txt [^] (642 bytes) 2010-10-10 02:04 [Show Content]

- Relationships

-  Notes
(0016952)
DrCuriosity (reporter)
2010-10-11 20:04

As a workaround for this issue, it seems that while "list1 = list2;" breaks, "list1 = [] + list2;" will work fine in the interim.

- Issue History
Date Modified Username Field Change
2010-10-10 02:04 DrCuriosity New Issue
2010-10-10 02:04 DrCuriosity File Added: scripting_bug.txt
2010-10-10 02:04 DrCuriosity Git Revision => 0
2010-10-10 02:04 DrCuriosity SVN Revision => 0
2010-10-10 02:04 DrCuriosity Run Mode => Standalone (Multiple Regions)
2010-10-10 02:04 DrCuriosity Environment => .NET / Windows32
2010-10-10 02:04 DrCuriosity Mono Version => Other
2010-10-11 20:04 DrCuriosity Note Added: 0016952


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker