Difference between revisions of "LSL Errors"
Jump to navigation
Jump to search
(add "Lists may not contain lists" script run-time error) |
|||
Line 1: | Line 1: | ||
{{LSL Header}} | {{LSL Header}} | ||
==Script run-time error== | ==Script run-time error messages== | ||
* '''Lists may not contain lists''' | |||
* '''Stack-Heap Collision''' - The Stack has collided with the Heap.<br/>The LSL memory space contains three sections Bytecode, Stack and Heap which all must be contained in 16kib of memory. | * '''Stack-Heap Collision''' - The Stack has collided with the Heap.<br/>The LSL memory space contains three sections Bytecode, Stack and Heap which all must be contained in 16kib of memory. | ||
** This can occur if the running script is too big. The script compiles and saves successfully, but when an object containing it is instantiated the script crashes. | ** This can occur if the running script is too big. The script compiles and saves successfully, but when an object containing it is instantiated the script crashes. | ||
==Examples== | |||
<pre> | |||
default | |||
{ | |||
state_entry() | |||
{ | |||
list entries = []; | |||
entries += [entries]; // Script run-time error: Lists may not contain lists | |||
} | |||
} | |||
</pre> |
Revision as of 21:19, 5 September 2007
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Script run-time error messages
- Lists may not contain lists
- Stack-Heap Collision - The Stack has collided with the Heap.
The LSL memory space contains three sections Bytecode, Stack and Heap which all must be contained in 16kib of memory.- This can occur if the running script is too big. The script compiles and saves successfully, but when an object containing it is instantiated the script crashes.
Examples
default { state_entry() { list entries = []; entries += [entries]; // Script run-time error: Lists may not contain lists } }