Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Linux SL client hard lock on saving script

Adam Kaupas
Registered User
Join date: 20 Aug 2006
Posts: 24
11-10-2006 11:54
I'm trying to save a script that's 732 lines long, and the moment I press ctrl-S or hit save, the game freezes completely, and often freezes the system with it. I've tried waiting, and nothing happens.
Oddly, a script a little longer saves fine, so I don't know if it's the length of the script that's doing it.

The script itself is Chisel, specifically the control.lsl script (it's in subversion at sourceforge:
http://chisel.svn.sourceforge.net/viewvc/*checkout*/chisel/SecondLife/control.lsl?revision=2 )

Saving other scripts from the project works fine, so I've no idea what's causing this.
Any help would be appreciated, since it's kinda nasty to not be able to edit the script at all :/

Thanks!
Tofu Linden
Linden Lab Employee
Join date: 29 Aug 2006
Posts: 471
11-13-2006 04:49
Thanks for the interesting bug report... how strange that it doesn't happen on win32. I'll look into it.
Adam Kaupas
Registered User
Join date: 20 Aug 2006
Posts: 24
11-13-2006 09:37
Update: the following code hard crashes my client, every time.
CODE

gInit()
{
gNodeChannel = -1306234851;
gNodePassword = "01837562";
} // gInit
gImport(string url)
{
gHTTPRequest = llHTTPRequest(url, [HTTP_METHOD, "POST", HTTP_MIMETYPE, "application/x-www-form-urlencoded"], "");
} // gImport
default
{
state_entry()
{
gInit();
}
http_response(key request_id, integer status, list metadata, string body)
{
if (request_id == gHTTPRequest)
{
integer n;
while ((n = llSubStringIndex(body, "\n")) != -1)
{
body = llInsertString(llDeleteSubString(body, n, n), n, "");
}
list eval = llParseString2List(body, ["<br/>"], []);
integer i;
integer length;
length = llGetListLength(eval);
for (i = 0; i < length; i++)
{
llMessageLinked(LINK_THIS, 1, "chisel " + llList2String(eval, i), NULL_KEY);
}
// gParseImport(eval);
}
} // http_response

link_message(integer sender_num, integer num, string message, key id)
{
if (llToLower(llGetSubString(message, 0, 5)) == "import")
{
gImport(llGetSubString(message, 7, llStringLength(message)));
}
} // link_message
} // default state
Adam Kaupas
Registered User
Join date: 20 Aug 2006
Posts: 24
11-13-2006 09:53
Final update: I've found the problem! This code crashes me, every time:
CODE

default {
state_entry() {
llOwnerSay("hello.");
}
} //this comment crashes the client.
Tofu Linden
Linden Lab Employee
Join date: 29 Aug 2006
Posts: 471
11-14-2006 01:47
Thanks for the reduced testcase!
Tofu Linden
Linden Lab Employee
Join date: 29 Aug 2006
Posts: 471
02-05-2008 10:02
I can't reproduce this problem any more, so I'm marking it as fixed - can you confirm?
Adam Kaupas
Registered User
Join date: 20 Aug 2006
Posts: 24
02-05-2008 11:16
Yup, seems to be fixed. Thanks!