Raised This Month: $12 Target: $400
 3% 

[CORE?] Heap Low


  
 
 
Thread Tools Display Modes
doubleM
Member
Join Date: Aug 2005
Old 10-24-2006 , 16:57   Re: [CORE?] Heap Low
#11

Wouldnt a bug in the compiler be what causes a heap low error anyways?
doubleM is offline
BAILOPAN
Join Date: Jan 2004
Old 10-24-2006 , 17:55   Re: [CORE?] Heap Low
#12

Unfortunately the error is a bit ambiguous and I think I'll change the message next major release. Heap low should mean "there is no heap space left," which can mean a memory leak in the VM or a native. But in some cases it also erroneously means "heap error," as in the heap crossed under its own minimum boundary.

Only the latter is usually a compiler a bug.
__________________
egg
BAILOPAN is offline
doubleM
Member
Join Date: Aug 2005
Old 11-05-2006 , 22:41   Re: [CORE?] Heap Low
#13

hmm... "there is no heap space left." could that mean that i am overrunning the memory constrictions my machine allocates me? my plugins are QUITE QUITE QUITE (quite quite quite) large, using LOADS of memory. (very inefficiant, i ought to recode them -_-).

Yeah, but basically, can heap low mean no more memory left?

Last edited by doubleM; 11-05-2006 at 23:02.
doubleM is offline
BAILOPAN
Join Date: Jan 2004
Old 11-06-2006 , 00:09   Re: [CORE?] Heap Low
#14

No, that won't happen. The only thing you can be doing is running out of plugin memory (allocated with #pragma dynamic).
__________________
egg
BAILOPAN is offline
doubleM
Member
Join Date: Aug 2005
Old 11-06-2006 , 07:18   Re: [CORE?] Heap Low
#15

ok... so would running out of plugin memory do a heap low?
doubleM is offline
BAILOPAN
Join Date: Jan 2004
Old 11-06-2006 , 13:45   Re: [CORE?] Heap Low
#16

It could. Although as I said, the error message is ambiguous, so I have to change it in the next major release (1.77) to know for sure.

If you would like I can attach an early build here that has the change.
__________________
egg
BAILOPAN is offline
doubleM
Member
Join Date: Aug 2005
Old 11-06-2006 , 20:20   Re: [CORE?] Heap Low
#17

yes, please! 8| lol

oh, also as sorta off topic, would you recommend the array 3.14 module? i use lots of giant static arrays in my plugins (meant to be dynamically sized -_-) that i usually use in a push-pop method (this is what is causing my giant memory usage). I was just wondeing what you thought of the module, i havnt seen many people using it.
doubleM is offline
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 11-11-2006 , 01:50   Re: [CORE?] Heap Low
#18

BAIL any chance you can make a recommendation on how to determine what you should set

#pragma dynamic

to? I'm having this exact same issue with war3x and have never been able to figure out how to get it to go away :/ (It happens after playing for a while, not really debuggable I don't think)
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
BAILOPAN
Join Date: Jan 2004
Old 11-11-2006 , 14:01   Re: [CORE?] Heap Low
#19

My mistake. Core is already differentiating these errors correctly. For some reason in my mind I thought it wasn't. Changing the plugin memory should not affect this error. Proof: You should be able to output the value of heapspace() periodically, preferably close to where you get the error, and you should never see it dip seriously below what your requirements are.

There's a lot of things I can do to help you debug - the best off the top of my head would be having Core log heap info before and after each function call. But before I do that, I found an interesting bug in the forward API dealing with the heap. In theory it's unrelated but I'd like to see if it's a surprise magic fix.

If the attached binary doesn't work, I'll start making heap logging ones for you. But ultimately the best thing would still be me having a copy of your setup which can reproduce the problem ;)
Attached Files
File Type: so amxmodx_mm_i386.so (413.2 KB, 104 views)
__________________
egg
BAILOPAN is offline
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 11-11-2006 , 15:38   Re: [CORE?] Heap Low
#20

TY bail, I"m going to run war3x w/32 bots w/this to test it out...
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:00.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode