Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run time errors in ac_Timer #45

Closed
rt-2 opened this issue Jun 24, 2017 · 12 comments
Closed

Run time errors in ac_Timer #45

rt-2 opened this issue Jun 24, 2017 · 12 comments

Comments

@rt-2
Copy link
Contributor

rt-2 commented Jun 24, 2017

Hi,
I get this kind of often I don,t know why :

[23/06/2017 23:19:57] [debug] Run time error 4: "Array index out of bounds"
[23/06/2017 23:19:57] [debug] AMX backtrace:
[23/06/2017 23:19:57] [debug] #0 00061050 in public ac_Timer (0) from SAarp.amx

Sorry for the lack of information.
Thank you,
rt-2

@NexiusTailer
Copy link
Owner

So, throughout this whole time, I still have no ideas about the cause of this... If you have any additional information (e.g. logs in "-d3" mode), then please let me know.

@rt-2
Copy link
Contributor Author

rt-2 commented Jul 13, 2017

Ok I have recompiled with the -d3 option, I will give you more information when this occurs again.
It happens quite often so probably during the week-end I will update this.
Thank you,
rt-2

@rt-2
Copy link
Contributor Author

rt-2 commented Jul 30, 2017

I have got this today:

[30/07/2017 11:42:59] [debug] Run time error 4: "Array index out of bounds"
[30/07/2017 11:42:59] [debug] AMX backtrace:
[30/07/2017 11:42:59] [debug] #0 00088954 in public ac_Timer (playerid=3) at C:\Users\rt-2\Desktop\SAARP\SAMP\pawno\include\nex-ac.inc:6587

So here https://github.com/NexiusTailer/Nex-AC/blob/master/src/v1.9/v1.9.26/r2/nex-ac.inc#L6587

@NexiusTailer
Copy link
Owner

Still can't reproduce at all. Has crashdetect wrote at least once, what value out of bounds of the array and what was the size of this array?

@rt-2
Copy link
Contributor Author

rt-2 commented Aug 10, 2017

I actually got this since:

[02/08/2017 16:48:11] [debug] Run time error 4: "Array index out of bounds"
[02/08/2017 16:48:11] [debug] AMX backtrace:
[02/08/2017 16:48:11] [debug] #0 0006683c in ?? (playerid=1, ... <1073741822 arguments>) at C:\Users\rt-2\Desktop\SAARP\SAMP\pawno\include\nex-ac.inc:3549
[02/08/2017 16:48:11] [debug] #1 0002ac90 in public FIXES_OnPlayerUpdate (... <1 argument>) at C:\Users\rt-2\Desktop\SAARP\SAMP\pawno\include\YSI\..\YSI_Data\..\YSI_Coding\..\YSI_Internal\y_cgen.inc:32
[02/08/2017 16:48:11] [debug] #2 00007d08 in public OnPlayerUpdate (playerid=1) at C:\Users\rt-2\Desktop\SAARP\SAMP\pawno\include\fixes.inc:5600
[02/08/2017 16:48:12] [debug] Run time error 4: "Array index out of bounds"
[02/08/2017 16:48:12] [debug] AMX backtrace:
[02/08/2017 16:48:12] [debug] #0 00088954 in public ac_Timer (playerid=1) at C:\Users\rt-2\Desktop\SAARP\SAMP\pawno\include\nex-ac.inc:6587
[07/08/2017 09:11:07] [debug] Run time error 4: "Array index out of bounds"
[07/08/2017 09:11:07] [debug] AMX backtrace:
[07/08/2017 09:11:07] [debug] #0 0006683c in ?? (playerid=0, ... <1073741822 arguments>) at C:\Users\rt-2\Desktop\SAARP\SAMP\pawno\include\nex-ac.inc:3549
[07/08/2017 09:11:07] [debug] #1 0002ac90 in public FIXES_OnPlayerUpdate (... <1 argument>) at C:\Users\rt-2\Desktop\SAARP\SAMP\pawno\include\YSI\..\YSI_Data\..\YSI_Coding\..\YSI_Internal\y_cgen.inc:32
[07/08/2017 09:11:07] [debug] #2 00007d08 in public OnPlayerUpdate (playerid=0) at C:\Users\rt-2\Desktop\SAARP\SAMP\pawno\include\fixes.inc:5600
[07/08/2017 09:11:08] [debug] Run time error 4: "Array index out of bounds"
[07/08/2017 09:11:08] [debug] AMX backtrace:
[07/08/2017 09:11:08] [debug] #0 00088954 in public ac_Timer (playerid=0) at C:\Users\rt-2\Desktop\SAARP\SAMP\pawno\include\nex-ac.inc:6587

Thank you,
rt-2

@NexiusTailer
Copy link
Owner

@rt-2 Did you modify the anti cheat file? If so, it might have been possible to shift some rows with errors, because on one of them (3563) there is no array, but the error is in any case associated with it

@rt-2
Copy link
Contributor Author

rt-2 commented Aug 11, 2017

Yes sorry I did modify the file to add some testing functions, first time I posted here I corrected with the good lines, I forgot on the last time, the real line is 3549 not 3563.
I just corrected it now.
Thank you,
rt-2

@rt-2
Copy link
Contributor Author

rt-2 commented Aug 16, 2017

I think this is related:

[16/08/2017 18:32:49] [SERVER]: TCMD->[CA]James_Cole(4)->"/take".
[16/08/2017 18:32:49] [SERVER]: result(1)->James_Cole(4)->"/take".
[16/08/2017 18:32:49] [inv]: INV_PLYR_AllowedMoreObject(playerid:4) returning 22.
[16/08/2017 18:32:50] [debug] Run time error 4: "Array index out of bounds"
[16/08/2017 18:32:50] [debug] AMX backtrace:
[16/08/2017 18:32:50] [debug] #0 0006683c in ?? (playerid=4, ... <1073741822 arguments>) at C:\Users\rt-2\Desktop\SAARP\SAMP\pawno\include\nex-ac.inc:3549
[16/08/2017 18:32:50] [debug] #1 0002ac90 in public FIXES_OnPlayerUpdate (... <1 argument>) at C:\Users\rt-2\Desktop\SAARP\SAMP\pawno\include\YSI\..\YSI_Data\..\YSI_Coding\..\YSI_Internal\y_cgen.inc:32
[16/08/2017 18:32:50] [debug] #2 00007d08 in public OnPlayerUpdate (playerid=4) at C:\Users\rt-2\Desktop\SAARP\SAMP\pawno\include\fixes.inc:5600
[16/08/2017 18:32:51] [debug] Run time error 4: "Array index out of bounds"
[16/08/2017 18:32:51] [debug] AMX backtrace:
[16/08/2017 18:32:51] [debug] #0 00088954 in public ac_Timer (playerid=4) at C:\Users\rt-2\Desktop\SAARP\SAMP\pawno\include\nex-ac.inc:6587

This happened today. Basically both lines (6587 and 3549) contains information like 'acLastPickup' for the ACInfo array.
This player James_Cole just did /take, he was over an object with a pickup, when he did /take the pickup that he was on top of got destroyed. I think this caused the bug!
Thank you,
rt-2

@NexiusTailer
Copy link
Owner

NexiusTailer commented Aug 22, 2017

I'm forced again to ask you to double-check this on the latest version, because I completely rewrote the anticheat system for pickups that using streamer plugin.

@rt-2
Copy link
Contributor Author

rt-2 commented Aug 22, 2017

Yes thank you I will do that next week after my Thursday restart.
I'll post the result here.
Thank you,
rt-2

@rt-2
Copy link
Contributor Author

rt-2 commented Aug 28, 2017

Haven't had time yet but if ever this is still an issue I will post here.
Thank you,
rt-2

@rt-2
Copy link
Contributor Author

rt-2 commented Sep 18, 2017

After some time letting the server run, there seem to not be any of those since 1.9.27,
There was not a lot of players so I cannot be sure, but to me it's gone,
If I see some again I will repost here...
Thank you,
rt-2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants