Log in

View Full Version : Scar Taking too much Memory



Rizowski
05-07-2010, 04:50 PM
I have dont some searches on this topics, i have seen people posting this error in certain scripts but none of them are being answered. Every time i have started the POMS Rune Essence miner script i get a error saying my computer has run out of memory or exact quote:

[Runtime Error] : Exception: Out of memory in line 532 in script C:\...\SCAR\includes\SRL\SRL\Core\Text.scar

From what i can tell on what is on line 532 is the option selector.

I can only run this script for about 2 hours, that is my average before it locks up and says it has run out of memory. I have done the whole nine yards on restarting scar, my computer, even msconfig. I only have Scar running and i average up to 2 hours.

Does anyone know how to fix this and make it so scar doesn't take up all my memory and crash?

Lance
05-07-2010, 05:21 PM
I think you might need to get a better computer, or maybe you have viruses that eat up your computers ram?

YoHoJo
05-07-2010, 05:31 PM
Haha I doubt both, scar/runescape should never be that memory intensive. Probably a small problem in the script/srl.

Rizowski
05-07-2010, 05:36 PM
I don't think i need a better computer. haha I custom built it, not the best specs and I am upgrading the ram to 2 gigs soon. I know that this has been solved before, a couple years ago i think i remember when i have having the same issue, but i don't quite remember what it was that fixed it.

{edit}I am checking for Viruses now.

g0tp0t
05-07-2010, 06:18 PM
im thinking i know what ur problem is :\

maybe not though

check that everything is reed in script. then try to free everything locally instead of globally because if the script is terminated then it might never get to the part wherer it frees everything

Rizowski
05-07-2010, 06:33 PM
check that everything is reed in script. then try to free everything locally instead of globally because if the script is terminated then it might never get to the part wherer it frees everything

Sorry I am not quite following you? I have disabled not just background processes but also, web browser, IM stuff like that as well? is that what you are referring to as locally?

weequ
05-07-2010, 06:37 PM
Try running a different script and if it doesn't lagg the problem should be in the script ;)

Lance
05-07-2010, 07:18 PM
oh also restart your computer when theres a crash due to memory, it will clean your ram I think..

Rizowski
05-07-2010, 07:40 PM
Alright as of right now i am running |Draynor Chop N' Bank - Revision 58 - | From what i can tell it isn't taking as much memory up as the other script. I will let it run for a few more hours and see what it is doing. The memory usage as of right now is 173,724k. I am running a virus scan and I am hoping that is the problem. After that i will restart and run the script again. :) cya in a few hours haha.

i luffs yeww
05-07-2010, 09:07 PM
I got this after about 47 hours of YoHoJo's PMS. I don't think there's much that you can do, other than not do a lot of stuff while you auto. Correct me if I'm wrong, but I think you have to live with it for now.

g0tp0t
05-07-2010, 09:36 PM
thats what i did when scar gave this error. when you restart im fairly sure it empties your ram. unless you hibernate.

what i meant but horribly explained was supposed to be:

sometimes scripts create bitmaps or dtms, and they store them in memory. there is a freedtm() and freebitmao() procedure in scar. what it does is remove that bitmap or dtm from your memory. if you do not free them then the bitmaps and dtms stay in memory till u shut your computer off. i think that might be your problem. thats called a memory leak(when bitmaps or dtms arent freed)

ShowerThoughts
05-07-2010, 10:34 PM
I am pretty sure it's the script, i've also abused scar with lots and lots and lots of dtm and bitmap loading but also freeing and if you free everything shouldn't be a problem(refers to my ECS(check the dtm system), my suggestion is to check the script for memory leaks aka unfreed bmps or dtms.

Smarter Child
05-08-2010, 02:55 AM
Most definitely the script.

[use simba :p]

Rizowski
05-08-2010, 03:00 AM
Something New, I found another topic with this same error that i had, The error has changed though to the script it self not getting enough memory. I got this error after doing Malware, spyware, and virus scans. This error was bad enough that it had me send an error report. :/

Nava2
05-08-2010, 03:10 AM
Something New, I found another topic with this same error that i had, The error has changed though to the script it self not getting enough memory. I got this error after doing Malware, spyware, and virus scans. This error was bad enough that it had me send an error report. :/

Boy, those reports do nothing.

I would suggest trying out Simba, or the newest SCAR.

E: I say Simba, because it will tell you when you have memory leaks.

Rizowski
05-08-2010, 03:15 AM
Where do i find Simba? I haven't heard of it until recently? I have the recent scar, i have checked for updates everyday via Tortoise.

{edit}Ah found where to find it. ->Here (http://villavu.com/forum/showthread.php?t=53785)<-haha. I just had an idea, probably wont help if this is what you said is true below. But would runing Scar in a Virtual box help that in any way?


sometimes scripts create bitmaps or dtms, and they store them in memory. there is a freedtm() and freebitmao() procedure in scar. what it does is remove that bitmap or dtm from your memory. if you do not free them then the bitmaps and dtms stay in memory till u shut your computer off. i think that might be your problem. thats called a memory leak(when bitmaps or dtms arent freed)

g0tp0t
05-15-2010, 12:03 AM
7 days isnt grave dig right? :P. no, runing in vb will probably make it run out of memory faster because virtual box is not allowed more than 75% of your memory. so that means if what is happening is your memory is filled with crap then you will run out of memory 25%sooner. that might not be the problem though :\