Not enough memory to compile?
#1

Good morning.

When I compile my gamemode (From about 35,000 lines) I get this:

pawn Код:
Header size:          18992 bytes
Code size:          1524988 bytes
Data size:          5877080 bytes
Stack/heap size:      16384 bytes; estimated max. usage=5987 cells (23948 bytes)
Total requirements: 7437444 bytes
I read that it came from memory or something like that, but I would be sure.
Why it appears CAQ?

And how to fix it?

Thank you.
Reply
#2

=)) don't care it nothing happend you can do your work after compile it will give you a .amx file
if you don't like this message you can change your pawno
Reply
#3

Had the same thing twice. It doesn't matter TheSy, you just can continue scripting and compile what and whenever you want.
Reply
#4

That's not the concern.

Is that it will not impact on the players when they play (slowdowns, lags ...?)

Say at the level of optimization I'm not strong (And my English as the way xD).
Reply
#5

If you didnt compile your mode with debug level 3 (-d3) which also pops up that message

Otherwise it shows that there is a possible heap / stack collision in your code
Usually happens if you used a lot of local variables or stacked a lot of functions

There are two ways to fix it,
first, recheck your code and don't waste memory (you got by default around 16kB local memory ~ 4000 cells)
second, increase the stack / heap memory block
Reply
#6

No TheSy it will do nothing
do your work and don't care it
one of my gamemode was like that
Reply
#7

maybe you're loosing some bracked "{"
Reply
#8

Add this line at top of your script, somewhere at defines

#pragma dynamic Number

where Number is bytes at: Total requirements: 7437444 bytes

vv

#pragma dynamic 7437444
Reply
#9

Quote:
Originally Posted by ******
Посмотреть сообщение
Have your players been slowed down?
I have not opened it as a preventive and informative for me especially for the future.

Quote:
Originally Posted by Nero_3D
Посмотреть сообщение
If you didnt compile your mode with debug level 3 (-d3) which also pops up that message

Otherwise it shows that there is a possible heap / stack collision in your code
Usually happens if you used a lot of local variables or stacked a lot of functions

There are two ways to fix it,
first, recheck your code and don't waste memory (you got by default around 16kB local memory ~ 4000 cells)
second, increase the stack / heap memory block
I read a method with the dynamic pragma to fix it, but I want to fix it so "clean" .

Quote:
Originally Posted by Raza2013
Посмотреть сообщение
maybe you're loosing some bracked "{"
No.
There would have been an otherwise error.

EDIT:
Quote:
Originally Posted by ikey07
Посмотреть сообщение
Add this line at top of your script, somewhere at defines

#pragma dynamic Number

where Number is bytes at: Total requirements: 7437444 bytes

vv

#pragma dynamic 7437444
I read a method with the dynamic pragma to fix it, but I want to fix it so "clean" .
Reply
#10


i said change you pawno wait i'm uploading for you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)