Jump to content

Testing scripts to prevent heap collision.


Aura Cheri
 Share

You are about to reply to a thread that has been inactive for 455 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Hello,

I have a script that I want to test to help find and prevent anything that causes a heap collision. I can use http://lsl.blacktulip-virtual.com/lsl-pyoptimizer/online.php but I figure there has to be more of a way test a lsl. It's a tip jar, but I prefer to give it a run through. So I can make it in a way to sell on the marketplace.

Aura

Edited by Aura Cheri
  • Like 1
Link to comment
Share on other sites

LSL is pretty simple, an easy way to do a preliminary check against stack-heap collisions (AKA running out of memory) is with a few questions:

  1. How much free memory does the script have at the end of state_entry? (llGetFreeMemory)
  2. Does your script contain any lists?
  3. Do those lists gain new elements at any point?
  4. Is the number of maximum elements limited by some factor? How?

PyOptimizer (or any LSL tool that I know of) is unable to prevent (or even warn about) your script running out of memory, even if you do something that would very obviously cause it.

Edited by Wulfie Reanimator
  • Like 3
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 455 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...