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

Solved Error in restmenu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ssproxima
Senior Member
Join Date: Jan 2015
Old 06-13-2021 , 00:14   Error in restmenu
Reply With Quote #1

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)

Last edited by ssproxima; 06-27-2021 at 10:58.
ssproxima is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-13-2021 , 16:02   Re: Error in restmenu
Reply With Quote #2

I'm not sure how that would be possible unless get_players() has a bug in it. Does this happen often?
__________________
fysiks is offline
ssproxima
Senior Member
Join Date: Jan 2015
Old 06-14-2021 , 12:27   Re: Error in restmenu
Reply With Quote #3

My logs are full of this error only..
ssproxima is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-14-2021 , 21:54   Re: Error in restmenu
Reply With Quote #4

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).
Attached Files
File Type: sma Get Plugin or Get Source (restmenu.sma - 50 views - 17.6 KB)
__________________
fysiks is offline
ssproxima
Senior Member
Join Date: Jan 2015
Old 06-17-2021 , 09:05   Re: Error in restmenu
Reply With Quote #5

Log uploaded
Attached Files
File Type: txt restmenu_debug.txt (64.5 KB, 19 views)
ssproxima is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-17-2021 , 22:16   Re: Error in restmenu
Reply With Quote #6

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.
__________________
fysiks is offline
ssproxima
Senior Member
Join Date: Jan 2015
Old 06-18-2021 , 00:15   Re: Error in restmenu
Reply With Quote #7

Sorry about not attaching the required files. Here are the log files.
Attached Files
File Type: log error_20210615.log (10.7 KB, 13 views)
File Type: log error_20210616.log (5.5 KB, 15 views)

Last edited by ssproxima; 06-18-2021 at 00:16.
ssproxima is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-18-2021 , 01:16   Re: Error in restmenu
Reply With Quote #8

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.
Attached Files
File Type: sma Get Plugin or Get Source (restmenu.sma - 16 views - 17.6 KB)
__________________

Last edited by fysiks; 06-18-2021 at 01:40.
fysiks is offline
ssproxima
Senior Member
Join Date: Jan 2015
Old 06-19-2021 , 12:42   Re: Error in restmenu
Reply With Quote #9

I think its fixed now no error log now, attaching the debug file. Please check the same. Thanks
Attached Files
File Type: txt restmenu_debug.txt (123.6 KB, 23 views)

Last edited by ssproxima; 06-19-2021 at 12:42.
ssproxima is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-19-2021 , 14:38   Re: Error in restmenu
Reply With Quote #10

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).
__________________

Last edited by fysiks; 06-19-2021 at 14:38.
fysiks is offline
Reply


Thread Tools
Display Modes

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 21:55.


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