• 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-186
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Normal Normal
Assignee: Unassigned
Reporter: Murrough McConachie
Votes: 0
Watchers: 0
Operations

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

A string of over 255 Chracters stored in an Object's description field are resetting to the first 255 in certain conditions.

Created: 05/May/07 09:22 AM   Updated: 02/Feb/08 11:39 PM
Return to search
Component/s: Scripts
Affects Version/s: None
Fix Version/s: None

Issue Links:
Relates


 Description  « Hide
Basically on storing a string of 2180 characters in the object description, I found that on reading it back, initially randomly, it only read back 255 characters.

I wrote a second script on a clean object to prove the error. On testing with some friends, i found that the object is fine, as long as no one touches it or clicks it (even if it has no touch event handlers). As soon as somone clicks on the object, the string read back is then truncated to 255 characters.

The following script was used on the object.

string sString = "";
integer iRequiredLength = 3000;
integer iActualLength = 0;
string sBlank10 = "0123456789";

default
{
state_entry()
{
//Get the string from the description
sString = llGetObjectDesc();
//wait a bit to ensure the description has be loaded
llSleep(2.0);
//get the length of the loaded string
iActualLength = llStringLength(sString);
llWhisper(0,"On start of state_entry string length is " + (string)iActualLength + " chracters.");
//if the string length is not the requiredlength then create new string
if (iActualLength != iRequiredLength)
{
llWhisper(0,"We require a string built that is " + (string)iRequiredLength + " characters.");
//form a new string of the require length
integer x = 0;
integer p = iRequiredLength / 10;
sString = "";
//build the string (in blocks of 10 characters at a time)
for (x = 1; x <= p; x++)

{ sString = llInsertString(sString, x*10, sBlank10); }

//get the length of the newly formed string
iActualLength = llStringLength(sString);
llWhisper(0,"Newly formed string length is " + (string)iActualLength + " chracters.");
//Write this string to the description field
llSetObjectDesc(sString);
//Wait a second or two
llSleep(2.0);
//Reset the string
sString = "";
iActualLength = llStringLength(sString);
llWhisper(0, "The newly formed string has been reset to " + (string)iActualLength + " characters.");
//wait a bit more to be sure to be sure
llSleep(2.0);
}
//Now Read back to ensure the description has the string
sString = llGetObjectDesc();
//wait again to ensure the string has been loaded
llSleep(2.0);
//get the length of the loaded string
iActualLength = llStringLength(sString);
llWhisper(0, "On Finish of state_entry string length is " + (string)iActualLength + " characters.");
//Wait a tiny bit longer
llSleep(2.0);
//Reset the script, and let it go round again
llResetScript();
}
}



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Dzonatas Sol added a comment - 05/May/07 11:06 AM
There has been a known supported limit of only 127 characters. It is not documented at this time, however.
https://wiki.secondlife.com/wiki/LlSetObjectDesc

Being able to set the description to more than 127 characters is possible, but it may change to only 127 characters and break scripts that relied on more.

[Triage: I suggest to import the issue to re-confirm from Lindens that it is still the intention of the servers to only support 127 characters. In any event, update the wiki with the limit that the servers intend to support.]


Strife Onizuka added a comment - 05/May/07 02:33 PM
I'll update the wiki, this sort of limit information hasn't made it into the documentation yet. It should be noted that the limit is actually 127 bytes and not 127 characters.

Rob Linden made changes - 22/Dec/07 12:58 AM
Field Original Value New Value
Workflow jira [ 11313 ] jira-2007-12-21 [ 20596 ]
Rob Linden made changes - 22/Dec/07 01:16 AM
Workflow jira [ 20596 ] jira-2007-12-21 [ 21451 ]
Rob Linden made changes - 22/Dec/07 01:47 AM
Workflow jira [ 21451 ] jira-2007-12-21 [ 23237 ]
Rob Linden made changes - 23/Dec/07 12:11 AM
Workflow jira-2007-12-21 [ 23237 ] jira-2007-12-22a [ 48130 ]
Rob Linden made changes - 23/Dec/07 12:28 AM
Workflow jira-2007-12-21 [ 48130 ] jira-2007-12-22a [ 48964 ]
Celierra Darling made changes - 04/Jan/08 10:28 PM
Link This issue is related to by SVC-1118 [ SVC-1118 ]
anthony reisman made changes - 10/Jan/08 08:52 AM
Link This issue Relates to SVC-674 [ SVC-674 ]

Argent Stonecutter made changes - 01/Feb/08 08:56 AM
Link This issue Relates to SVC-1406 [ SVC-1406 ]
Celierra Darling added a comment - 02/Feb/08 11:39 PM

Celierra Darling made changes - 02/Feb/08 11:39 PM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
Sue Linden made changes - 13/Nov/08 12:08 PM
Workflow jira-2007-12-22a [ 48964 ] jira-2008-11-14 [ 81785 ]
Sue Linden made changes - 13/Nov/08 04:36 PM
Workflow jira-2008-11-14 [ 81785 ] jira-2008-11-14a [ 88963 ]