AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Solved Error in restmenu (https://forums.alliedmods.net/showthread.php?t=332991)

ssproxima 06-13-2021 00:14

Error in restmenu
 
Can any one help me out on this error

HTML Code:

L 06/12/2021 - 14:17:20: Start of error session.
L 06/12/2021 - 14:17:20: Info (map "de_vostok_cz") (file "addons/amxmodx/logs/error_20210612.log")
L 06/12/2021 - 14:17:20: [AMXX] Displaying debug trace (plugin "restmenu.amxx", version "1.9.0.5271")
L 06/12/2021 - 14:17:20: [AMXX] Run time error 4: index out of bounds
L 06/12/2021 - 14:17:20: [AMXX]    [0] restmenu.sma::findAdminsWithMenu (line 498)
L 06/12/2021 - 14:17:20: [AMXX]    [1] restmenu.sma::refreshMenus (line 515)
L 06/12/2021 - 14:17:20: [AMXX]    [2] restmenu.sma::@ConsoleCommand_Restrict (line 240)


fysiks 06-13-2021 16:02

Re: Error in restmenu
 
I'm not sure how that would be possible unless get_players() has a bug in it. Does this happen often?

ssproxima 06-14-2021 12:27

Re: Error in restmenu
 
My logs are full of this error only..

fysiks 06-14-2021 21:54

Re: Error in restmenu
 
1 Attachment(s)
Try out this version that has some debug logging implemented. When you know the error has occurred again, please attach your error log file and the resetmenu_debug.txt file (probably in the "cstrike" folder).

ssproxima 06-17-2021 09:05

Re: Error in restmenu
 
1 Attachment(s)
Log uploaded

fysiks 06-17-2021 22:16

Re: Error in restmenu
 
You'll need to also attach the error file that contains errors during the time that this was logging so that the error can be correlated with the debug output.

ssproxima 06-18-2021 00:15

Re: Error in restmenu
 
2 Attachment(s)
Sorry about not attaching the required files. Here are the log files.

fysiks 06-18-2021 01:16

Re: Error in restmenu
 
1 Attachment(s)
I think I found the source of the error. It occurs when there are 32 players and you use the amx_restrict command (as far as I can tell). I belive I've fixed this issue in this new debug version. When you have 32 players on the server, use the amx_restrict command (excluding the "list" subcommand) and we'll see if there is another error. Though it sounds like you probably use this enough to trigger testing of the fix.

Basically, if you see "32/32" in the debug log but do not have a corresponding error at that same time in the error log then it's fixed in this version.

Once you confirm that it fixes it, I'll create a pull request on GitHub to fix it.

ssproxima 06-19-2021 12:42

Re: Error in restmenu
 
1 Attachment(s)
I think its fixed now no error log now, attaching the debug file. Please check the same. Thanks :)

fysiks 06-19-2021 14:38

Re: Error in restmenu
 
The fix has been submitted and accepted into the official AMX Mod X source code (commit here). You can download the fixed final version here (right-click and save as).


All times are GMT -4. The time now is 12:56.

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