-
Notifications
You must be signed in to change notification settings - Fork 23
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
How to show message "Accessing element at index" #63
Comments
What compile flags do you use? Do you use |
By compile flags I mean pawncc arguments that you use to compile your gamemode. They can be changed in pawn.cfg or somewhre in your editor configuration. Also see this page: https://github.com/Zeex/samp-plugin-crashdetect/wiki/Compiling-scripts-with-debug-info |
I use -d3. I get detailed error log, but i dont get the message I have said about. I need to know what is the index of an array my script tries to access to |
I get |
What is on line 1895 in init.inc? |
If crashdetect doesn't find a BOUNDS opcode at CIP (currently executed instruction) it can't print the array size and other info. It seems to be the case for you. |
Test Code on the line: RuntimeError! Code is 4 - from my script, not pay attention |
Try creating a simple script with this code (without any includes and plugins, except crashdetect) and see if it produces the error. If it works, something is wrong with some includes or plugins. If it doesn't work, I need some more information from you: which OS did you use to compile the script and which OS you did you run it on (Linux/Windows, etc)? which compiler version and command-line options did you use? |
When the callback OnRuntimeError is being used, the message appeared. I decide to remove this callback from my gamemode and all works well! |
public OnRuntimeError(code, &bool:suppress) |
It was before: It has become after: |
It turns out crashdetect was printing incorrect error info (or not printing at all) if Thanks for reporting this 👍 |
I was wondering why CrashDetect 4.19 never worked.. Thanks! |
How to show message: Accessing element at index a past array upper bound b.
The message is not shown in my case.
The text was updated successfully, but these errors were encountered: