Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Notecards: is there a limit?

Ephraim Kappler
Reprobate
Join date: 9 Jul 2007
Posts: 1,946
09-04-2008 01:35
I have looked at every thread and section I could find mention of notecards but I haven't seen any reference to a limit on notecard length. I have a notecard of 403 lines, for instance, which I would like to make even longer still. However, I get two warnings when I run this script on it:

http://wiki.secondlife.com/wiki/LlGetNumberOfNotecardLines

The warnings are: "Script run-time error" and "Stack-Heap Collision" and they occur every time at the count of line 280.

I've checked the notecard and there is nothing untoward about line 280. At first I was tempted to infer that 280 is the limit but I had no trouble until I added the last 30 lines or so to the notecard.

If necessary, I will ditch the project if there is in fact a limit on notecard length but I would like to confirm that there is such a thing before I abort all that hard work.
Nexie Raviprakash
Registered User
Join date: 28 Aug 2008
Posts: 1
notecard
09-04-2008 01:38
dont know about length but i copied and pasted a 1500 aprox word doc no problem

nexie x
Viktoria Dovgal
Join date: 29 Jul 2007
Posts: 3,593
09-04-2008 01:59
It looks like you may be simply running out of memory. That script tries to stuff all the lines read into a big list and dump them out at the end.
Day Oh
Registered User
Join date: 3 Feb 2007
Posts: 1,257
09-04-2008 02:24
64KB according to lslwiki.net... I definitely recall running into a limit before, if you copy a huge enough mass of text and paste it in the viewer cuts it off and makes that "bump" noise.
_____________________
Ephraim Kappler
Reprobate
Join date: 9 Jul 2007
Posts: 1,946
09-04-2008 02:36
From: Day Oh
64KB according to lslwiki.net...

At the risk of demonstrating plank-like thickness, how would I ascertain the memory size of a notecard?
Very Keynes
LSL is a Virus
Join date: 6 May 2006
Posts: 484
09-04-2008 03:35
The memory limit you are hitting is not the notecard memory it is the script memory.
If you are reading the notecard and storing the information into a list in your LSL application and the application runs out of memory, you get the stack-heap collision message. The limit in LSL is 16K and in MONO is 64K, but that is total memory per script, not just data. The jury are still out as to the actual memory gains between old LSL and MONO as it is still in the process of being released.
I suggest you download the release candidate viewer and try recompiling your note card reader with MONO, then see how many lines you can read. It will probably be 2 or 3 times more, but that is pure speculation.
Day Oh
Registered User
Join date: 3 Feb 2007
Posts: 1,257
09-04-2008 04:49
From: Ephraim Kappler
At the risk of demonstrating plank-like thickness, how would I ascertain the memory size of a notecard?


Shoot, it's not so easy I guess... I tested just now using a tool written in C#. It allowed me to upload up to 65536 characters in the body of the notecard. If I tried even a byte more, it returned 400 Bad Request.

I tried testing the limit in the viewer by copying and pasting a really long wiki page. It cut off the text and then I copied it and saved it on my computer as UTF-8, then used a hex editor to see the length in bytes... it was 66000 something. So maybe it's not UTF-8? I dunno, but what I had in the viewer uploaded fine.

But yea, I wasn't paying attention to the thread, I'm sorry... Very Keynes answers the actual question :)
_____________________
Meade Paravane
Hedgehog
Join date: 21 Nov 2006
Posts: 4,845
09-04-2008 07:56
http://wiki.secondlife.com/wiki/Limits seems like a good place to update, if people discover limits..
_____________________
Tired of shouting clubs and lucky chairs? Vote for llParcelSay!!!
- Go here: http://jira.secondlife.com/browse/SVC-1224
- If you see "if you were logged in.." on the left, click it and log in
- Click the "Vote for it" link on the left
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
09-04-2008 11:59
Note also that lines longer than 255 characters will not be completely read by a script. See http://www.lslwiki.net/lslwiki/wakka.php?wakka=llGetNotecardLine