Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Support [Server] Compile stack size

 
  • 0 Vote(s) - 0 Average
Server Compile stack size
Paulthas01
Offline

Burgershot Member
Posts: 11
Threads: 4
Joined: Feb 2021
Reputation: 0
#1
2021-03-17, 11:39 AM (This post was last modified: 2021-03-17, 01:35 PM by Paulthas01.)
I would like to understand what that means, it is appearing outside the -d3 compilation parameters.

As far as I know, it shouldn't happen.

Pawn compiler 3.10.10 Copyright © 1997-2006, ITB CompuPhase

Header size: 58400 bytes
Code size: 5920252 bytes
Data size: 25992156 bytes
Stack/heap size: 16384 bytes; estimated max. usage=130285 cells (521140 bytes)
Total requirements:31987192 bytes

[Finished in 7.2s]

In my gamemode, I use a lot of 2d / 3d arrays, the size of the .amx is 26MB.

Does this affect server performance? Causes shutdown?
Virsenas
Offline

Burgershot Member
Posts: 47
Threads: 0
Joined: Feb 2021
Reputation: 6
#2
2021-03-17, 01:01 PM
Did you revert to an older YSI version and see what happens when you compile?
Paulthas01
Offline

Burgershot Member
Posts: 11
Threads: 4
Joined: Feb 2021
Reputation: 0
#3
2021-03-17, 01:11 PM
It compiles normal, the problem is not the YSI version, but the stack of my gamemode that looks like I am using more cells than it was to use.

My question is to understand what it means what I wrote in the topic, stack size
Virsenas
Offline

Burgershot Member
Posts: 47
Threads: 0
Joined: Feb 2021
Reputation: 6
#4
2021-03-17, 01:23 PM
(2021-03-17, 11:39 AM)Paulthas01 Wrote: This happened after I put the updated YSI from Y_Less.

(2021-03-17, 01:11 PM)Paulthas01 Wrote: It compiles normal, the problem is not the YSI version

Then why did you mention YSI assuming it was the problem when it had nothing to do with your problem ...?

26MB for an .amx file is not normal. And you already said yourself what is the problem. Your arrays.

And when you expect people to help you, you need to show something with which they can work with (in this situation is code). Can someone fix a car without having a look at it? We are not magicians or mind readers and can not get inside your head and see the code you see. At least show one of the bigger arrays and tell how you want to use them.
Paulthas01
Offline

Burgershot Member
Posts: 11
Threads: 4
Joined: Feb 2021
Reputation: 0
#5
2021-03-17, 01:32 PM
I agree that the problem is my matrices, I only mentioned YSI because before updating it, when compiling without the -d3 parameter it did not show the stack size information.

My doubt is what this means:

Pawn compiler 3.10.10 Copyright © 1997-2006, ITB CompuPhase

Header size: 58400 bytes
Code size: 5920252 bytes
Data size: 25992156 bytes
Stack / heap size: 16384 bytes; estimated max. usage = 130285 cells (521140 bytes)
Total requirements: 31987192 bytes

[Finished in 7.2s]
Virsenas
Offline

Burgershot Member
Posts: 47
Threads: 0
Joined: Feb 2021
Reputation: 6
#6
2021-03-17, 01:51 PM
https://letmegooglethat.com/?q=pawno+compiler+parameters
Paulthas01
Offline

Burgershot Member
Posts: 11
Threads: 4
Joined: Feb 2021
Reputation: 0
#7
2021-03-17, 02:01 PM
Does this current stack size cause gamemode to shutdown or crash?
Y_Less
Offline

Administrator

Posts: 323
Threads: 16
Joined: Feb 2019
Reputation: 90
#8
2021-03-17, 02:38 PM
(2021-03-17, 01:32 PM)Paulthas01 Wrote: when compiling without the -d3 parameter it did not show the stack size information.

Or, to put it another way:

Quote:when I enable more information I get more information

You are seeing this message because you explicitly asked for this message by enabling `-d3`.
Paulthas01
Offline

Burgershot Member
Posts: 11
Threads: 4
Joined: Feb 2021
Reputation: 0
#9
2021-03-17, 02:42 PM (This post was last modified: 2021-03-17, 02:44 PM by Paulthas01.)
I am seeing the message even without enabling the -d3 parameter.

I would like to understand what this message means exactly because I still don't know 100% and how I can solve it.

The size of my .amx is 26MB so I find it very strange
arber
Offline

Burgershot Member
Posts: 11
Threads: 0
Joined: Aug 2020
Reputation: 1
Location: Kosovo
#10
2021-03-17, 03:30 PM
the message is showing you header, code, data stack/heap size thats what it means and 26mb isnt strange if your gamemode is 26mb
Paulthas01
Offline

Burgershot Member
Posts: 11
Threads: 4
Joined: Feb 2021
Reputation: 0
#11
2021-03-17, 03:42 PM
It is this size because I use a lot of 2D / 3D arrays, my question is not why it is this size.

My question is what does the message that actually appears mean?

- Is there something wrong with the game mode?
- Am I using more cells than allowed?
- Does this cause some kind of server crash or shutdown?

Those are my doubts

NOTE: This message appears even without enabling the -d3 parameter at the time of compilation.
Y_Less
Offline

Administrator

Posts: 323
Threads: 16
Joined: Feb 2019
Reputation: 90
#12
2021-03-18, 05:24 PM
No, the message is a message. It is information. A message can't cause your mode to crash.
Paulthas01
Offline

Burgershot Member
Posts: 11
Threads: 4
Joined: Feb 2021
Reputation: 0
#13
2021-03-18, 07:27 PM
(2021-03-18, 05:24 PM)Y_Less Wrote: No, the message is a message. It is information. A message can't cause your mode to crash.

As I understand it, Y_Less, I'm using more memory than I should...
I'm is what I'm asking if it causes any crashes.

If I got it wrong, could you explain it to me?
Y_Less
Offline

Administrator

Posts: 323
Threads: 16
Joined: Feb 2019
Reputation: 90
#14
2021-03-18, 08:57 PM
The problem is probably loads of local arrays. But again, this message isn't a warning, it's just a report.
Paulthas01
Offline

Burgershot Member
Posts: 11
Threads: 4
Joined: Feb 2021
Reputation: 0
#15
2021-03-19, 12:16 PM
(2021-03-18, 08:57 PM)Y_Less Wrote: The problem is probably loads of local arrays. But again, this message isn't a warning, it's just a report.

Can this cause any future problems?
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode