sampgdk:error's (Max 32 arguments) - Unaware what the problem could be
#1

Код:
[sampgdk:error] Too many callback arguments (at most 32 allowed)
[sampgdk:error] Too many callback arguments (at most 32 allowed)
[sampgdk:error] Too many callback arguments (at most 32 allowed)
[sampgdk:error] Too many callback arguments (at most 32 allowed)
Hello ^, that would be a nice start on this topic. I've been browsing all over the internet, read about the streamer plugin, basically not found out why my server chose to half crash, especially under high load (many players).

I'm questioning as anyone else would do, how can I basically step forward to track down my issue? I don't get any warnings or errors, nothing about heap under-/overflow, neither do I have any knowledge when this started happening as it's a server I took over from someone else last year.

I do use Icognitos streamer, MySQL R39-5, Whirlpool and sscanf as plugins.

Around 50-60 players + the frequency of the half-crashes increases, and with crashdetect installed I get no other information than suddenly 100k lines with that error i started with (which basically increases the size of the logs tremendously haha).

I'm also focused on not having too big string sizes or too large arrays in my gamemode, so it's basically an optimized script.

Have anyone in here had the issue, and can someone briefly explain how the error happens? Can it be tracked more specifically down just than a memory issue? I'm very curious if i could learn something interesting about this, and looking forward to get some responses.

Would really help, as a half crash isn't quite directly possible to notice for a bash script to restart...
Reply
#2

Do you use sscanf for loading?
Reply
#3

Quote:
Originally Posted by TakeiT
Посмотреть сообщение
I already read this, and I already told i got no warnings in my script. No runtime errors, no indication that something is wrong. Thanks for posting a link tho, very helpful xd.
Reply
#4

Yeah my bad, i noticed after.

Do you use sscanf for loading?
Reply
#5

Quote:
Originally Posted by TakeiT
Посмотреть сообщение
Yeah my bad, i noticed after.

Do you use sscanf for loading?
Please elaborate - yes I use SSCANF a few places, but what do you put in "loading" ? Loading from the database and assigning to variables and such?
Mostly used for commands as for now. sscanf was widely used before i upgraded from MySQL R6 some months ago to assign the results into a set of arrays.

PHP код:
sscanf(Cps,"p<,>a<f>[49]",arrCoords2);
    
VehPos[0] = arrCoords2[0];
    
VehPos[1] = arrCoords2[1];
    
VehPos[2] = arrCoords2[2];
    
VehPos[3] = arrCoords2[3];
    
VehPos[4] = arrCoords2[4];
    
VehPos[5] = arrCoords2[5];
    
VehPos[6] = arrCoords2[6];
    
VehPos[7] = arrCoords2[7]; 
This would be one of 4 cases where sscanf is put to split up strings.
Reply
#6

Anyone?

Still unable to find out what causes it.
Reply
#7

bump
Reply
#8

This guy fixed it. Just follow it

https://sampforum.blast.hk/showthread.php?tid=576923

Hopefully you will fix it too
Reply
#9

Quote:
Originally Posted by Micko123
Посмотреть сообщение
This guy fixed it. Just follow it

https://sampforum.blast.hk/showthread.php?tid=576923

Hopefully you will fix it too
Hi - thanks for replying, but there are no solutions in that topic. The crashdetect at least get something useful there, but that's not the case here.

My script runs for a random amount of time, I suspect it's dependent on the amount of players too - and when it half-crashes the sampgdk errors are spamming me 1000++ lines until i stop the server.
Reply
#10

I will consider going back to an older version of the streamer to see if that helps.

Thanks for the tip - However are there any good alternatives to incognitos streamer? found MidoStream and a few others but they didn't seem as promising.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)