• 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-2342
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Showstopper Showstopper
Assignee: Scouse Linden
Reporter: Moon Metty
Votes: 0
Watchers: 2
Operations

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

Mono Beta - Compiling in Mono randomly fails

Created: 14/May/08 07:45 PM   Updated: 31/May/08 04:25 AM
Return to search
Component/s: Scripts
Affects Version/s: Mono Beta
Fix Version/s: Mono Beta

Environment:
Second Life 1.20.6 (87323) May 12 2008 17:18:14 (Second Life Mono)

You are at 255253.2, 255325.4, 36.4 in Sandbox Newcomb MONO located at sim4.aditi.lindenlab.com (8.4.131.197:12035)
Mono 1.21.1.87548
Issue Links:
Duplicate
 
Relates
 

Linden Lab Issue ID: DEV-15637
Linden Lab Internal Branch: mono-based-on-release-87286


 Description  « Hide
Compiling a script in Mono often fails. Reopening the script reveals the checkboxes "running" and "Mono" empty.
Checking the running box and resetting doesn't help, when you reopen the script it is still not running.
The only way to get it running is to try to compile it again.

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Moon Metty made changes - 15/May/08 03:16 PM
Field Original Value New Value
Link This issue Relates to SVC-1276 [ SVC-1276 ]
Scouse Linden added a comment - 18/May/08 05:50 AM
I've tried many times but I can not reproduce.
Can you give more specific details like how many attempts you made to compile, the specific scripts you've had problems with.

Scouse Linden made changes - 18/May/08 05:50 AM
Resolution Cannot Reproduce [ 5 ]
Status Open [ 1 ] Closed [ 6 ]
Assignee Scouse Linden [ Scouse Linden ]
Moon Metty added a comment - 18/May/08 06:19 PM
Hi Scouse,

Sure! I'm surprised you can't reproduce, it happens 10% - 15% of the times.
Here's a simple repro:

-Rez a box
-Add a default script
-Recompile it a couple of times
-When it doesn't say "Hello, Avatar!" close the script and open it again.

At the office hour on friday 16th we showed it to Vektor, and he reproduced it within a minute.
Also on friday Yumi said:

"Yumi Murakami: when I detach an attachment with a running mono script, sometimes the script goes back to non-running and non-mono."

I've tried this. It took about 20 times of reattaching, but sure enough, the script stopped running, the Mono-box unchecked.
Only recompiling gets it running again.

=======

Second Life 1.20.6 (87323) May 12 2008 17:18:14 (Second Life Mono)

You are at 255832.9, 255380.0, 21.5 in Sandbox Cordova MONO located at sim3001.aditi.lindenlab.com (8.2.33.227:13000)
Mono 1.21.1.87548


Moon Metty added a comment - 18/May/08 07:26 PM
Aha, when you take a misbehaving object in inventory and rez it or attach it, the Mono-box is checked again. The script will run if you check the running-box. (Unless you get the attaching-bug again)

Scouse Linden made changes - 19/May/08 02:14 AM
Resolution Cannot Reproduce [ 5 ]
Status Closed [ 6 ] Reopened [ 4 ]
Scouse Linden added a comment - 19/May/08 02:16 AM
What do you mean by "Recompile it"?
What are the exact steps that you take?

roberto salubrius added a comment - 19/May/08 03:09 AM
Hello, by recompile it means to save the script...
when you alter it, you can re-save it, when you re-save it the running bit,
( the check of running, just goes away )

it started when we got the new viewer: "Second Life 1.20.6 (87323)"

here's a way of reproducing it fast:

Using the viewer: "Second Life 1.20.6 (87323)"
Create a new object
create a new script that contains this:

default
{
state_entry()

{ llOwnerSay("I am running"); }

}

Check the mono box, and save it, normally you should get the message "I am running"

now re-open it.

edit it ( add an space ) and save it again

you should get a new "I am running" message, then do it again... and again... and again...

at one time or another ( mostly sooner ) you will never get the "I am running" message.

then if you re-open the script, you will see that the "Running" checkbox is unchecked !
And also sometimes the "mono" checkbox is uncheched as well !

now, this is not the same, and this was reported to vektor, by myself using a notecard ( he told me he was going to file a Jira about it, but I have not checked it )

this exact same behavior but randomly shows when you have an object with multiple scripts, and yo go to:

Tools - Recompile objects in selection - Mono ( or LSL )

Some will end up running, others will loose the running bit, others where in mono now they will loose the mono check, etc, that part the running and the mono check just goes away, and it is becomming a real issue and problem when beta testing scripts. Vektor is well aware of the problem, he can do a much better explanation than me or anyone else.


Scouse Linden added a comment - 19/May/08 03:40 AM
Seems to be related to the load on the sim. I've tried those steps but can't get it to happen on my sim. I've managed to reproduce this on a sandbox.
I will investigate some more and we will hopefully finally fix this elusive bug.

roberto salubrius added a comment - 19/May/08 07:52 AM
oh, related to sim load, that's interesting, and could be completly true, because of the randomness of the pattern it displays, there's another bug that also displays a random pattern, llDetectedKey(0)=NULL_KEY when using a freshly rezzed sensor, maybe that one is also related to the load of the sim, and some other random behaviors that moon and me have seen on mono. this gives us a light, on what is happening, also another script I coded, that oscillates, by self feedback, stops randomly, but when I added a sleep the problem got solved, but I also noticed that the error was in direct relationship to dilation of the sim, makes you think about this errors.

thx Scouse


Scouse Linden made changes - 20/May/08 09:51 AM
Status Reopened [ 4 ] Fix Pending [ 10001 ]
Linden Lab Internal Branch mono-based-on-release-87286
Scouse Linden made changes - 20/May/08 09:51 AM
Link This issue is duplicated by SVC-2366 [ SVC-2366 ]
Scouse Linden made changes - 20/May/08 02:51 PM
Link This issue is related to by SVC-1347 [ SVC-1347 ]
Vektor Linden added a comment - 20/May/08 05:08 PM
Raising priority for this to showstopper, as it is a serious blocker for testing. I have managed to get this to happen reliably by:

Teleporting
Region crossing
Recompiling to mono

I added this to seven scripts in a prim for a simple repro, incrementing scriptnum for each new script:

// <Code>
integer scriptnum = 1;

default {
state_entry() { llSetTimerEvent(3.0); }

timer() { llOwnerSay ("Script " + (string)scriptnum + " still running"); }
}
// </Code>

Setup:
Start in a Mono region with another Mono region next to it. For this test, I started in Sandbox Cordova MONO.

Repro:

1) Add the above script to a prim 7 times, increment the scriptnum and save to mono for each.
2) Make 3 copies of the prim and name them 1, 2 and 3. If you want, take a copy of one for later testing.
3) Recompile prim 1 to mono. Do so until at least one script stops reporting. This usually takes no more than a few attempts.
4) Attach prim 2 and walk from one Mono region to another. Do so until at least one script stops reporting. This usually takes no more than a few attempts.
5) Return to the place where you created your prims, and drop prim 2.
6) Attach prim 3 and teleport to another Mono region. Do so until at least one script stops reporting. This usually takes no more than a few attempts.

Results: Scripts are frequently being set to Not Running, as well as having their Mono bit toggled off. LSL2 compiled scripts seem to be ok.

Expected Results: Mono scripts should be able to go through the above steps and remain running Mono scripts.


Vektor Linden made changes - 20/May/08 05:08 PM
Priority Normal [ 4 ] Critical [ 2 ]
Vektor Linden made changes - 20/May/08 05:09 PM
Priority Critical [ 2 ] Showstopper [ 1 ]
lindenrobot made changes - 20/May/08 05:10 PM
Linden Lab Issue ID DEV-15637
Scouse Linden added a comment - 21/May/08 12:10 AM
Put th priority back down as its already fixed and will be in the next release.

Scouse Linden made changes - 21/May/08 12:10 AM
Priority Showstopper [ 1 ] Normal [ 4 ]
Saii Hallard added a comment - 22/May/08 07:52 AM
I have the same problem with products that have a lot of scripts (40+). There is no logic to it, it just randomly disables scripts when rezzing or even when using the recompile function (to mono) from the Second Life viewer.

After manually recompiling all scripts and activating them... testing and working fine... then take the object back to inventory... rez again and randomly scripts are disabled and mono turned off again.

There was nobody in the sim (cordova) and therefore sim load seems to have nothing to do with it.


Vektor Linden added a comment - 22/May/08 11:48 AM - edited
The fact that the fix is pending does not change the fact that it is a showstopper in the eyes of QA. Please do not change the priority.

Vektor Linden made changes - 22/May/08 11:48 AM
Priority Normal [ 4 ] Showstopper [ 1 ]
of oz added a comment - 24/May/08 08:52 AM - edited
Me too. I have a 32-prim linked object, each prim containing the same script. If I use "tools/recompile-in-selection", I find that the root prim in particular can end up with the mono flag off, and running off, and need recompiling.

I may be wrong but I have the impression this was NOT happening a month ago.


Periapse Linden made changes - 28/May/08 10:24 AM
Link This issue is related to by SVC-1276 [ SVC-1276 ]
Periapse Linden made changes - 28/May/08 10:25 AM
Link This issue Relates to SVC-1276 [ SVC-1276 ]
Moon Metty added a comment - 31/May/08 04:23 AM
Great, the mono scripts are running again. I will mark this bug as fixed.

Phew


Moon Metty made changes - 31/May/08 04:25 AM
Status Fix Pending [ 10001 ] Resolved [ 5 ]
Fix Version/s Mono Beta [ 10240 ]
Resolution Fixed [ 1 ]
Sue Linden made changes - 13/Nov/08 12:10 PM
Workflow jira-2007-12-22a [ 55873 ] jira-2008-11-14 [ 82461 ]
Sue Linden made changes - 13/Nov/08 04:44 PM
Workflow jira-2008-11-14 [ 82461 ] jira-2008-11-14a [ 91514 ]