[Plugin] CrashDetect
#21

Quote:
Originally Posted by Unknown123
View Post
yes what is that?

i get: [crashdetect]: gamemodes\GM.amx does not contain debug information
It's OK, just means that the script was compiled without debug info, you can ignore this
Reply
#22

Quote:
Originally Posted by 0x5A656578
View Post
It's OK, just means that the script was compiled without debug info, you can ignore this
k thx
Reply
#23

I dont really know what the error code in your example says about your script
Reply
#24

nice work Zeex!
It will help me out debugging some REALLY OLD scripts for sa-mp!
Also, does this plugin save it to the crashinfo file or the sa-mp server log?
Reply
#25

I have a problem.
Besides from the longer time to compile the script with debug information, the compiler shows an information that there would have stack overflow due to recursion, which doesn't appears without the -d3 flag(means that no problem without the flag).
Otherwise, it would be great for debugging random crashes in large scripts.

EDIT:

The stack overflow problem is fixed by commenting the scripts and find the source of it, but it's still weird that no stack overflow message are given without the debug information.

Anyway, thanks for releasing this great plugin and I'm using it

EDIT2:
Код:
[crashdetect]: Cannot identify file name
occurs when it loads the gamemode.
Reply
#26

In which folder is your gamemode located? is it in "gamemodes"?
Reply
#27

Код:
[crashdetect]:Cannot identify file name
What does this mean?

Edit:
All my GM's are in GM folder, FS's are in the FS folder
Also, all my FS/GM's are compiled, and none non-existing FS's in my server.cfg
Reply
#28

Quote:
Originally Posted by 0x5A656578
Посмотреть сообщение
In which folder is your gamemode located? is it in "gamemodes"?
Yes. I have all my scripts placed in the default folders("gamemodes" and "filterscripts")
One more thing to add, I'm using Windows XP.
Reply
#29

Quote:
Originally Posted by leong124
Посмотреть сообщение
Yes. I have all my scripts placed in the default folders("gamemodes" and "filterscripts")
One more thing to add, I'm using Windows XP.
Does it work with other gamemodes, e.g. LVDM or sample script from the first post?
Reply
#30

Quote:
Originally Posted by Wesley221
Посмотреть сообщение
Код:
[crashdetect]:Cannot identify file name
What does this mean?

Edit:
All my GM's are in GM folder, FS's are in the FS folder
Also, all my FS/GM's are compiled, and none non-existing FS's in my server.cfg
The problem could be if the path to the script is longer then 260 characters.
Reply
#31

Quote:
Originally Posted by Omega-300
Посмотреть сообщение
The problem could be if the path to the script is longer then 260 characters.
Mine:
Код:
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\scfri.amx
67 characters.

0x5A656578: Yes there's no errors when I try to use LVDM or your demo script.
One more thing to add, I'm using Big5 coding which is a type of 16-bit characters.
Reply
#32

Question:
Quote:
Originally Posted by Unknown123
Посмотреть сообщение
i get: [crashdetect]: gamemodes\GM.amx does not contain debug information
Reply:
Quote:
Originally Posted by 0x5A656578
Посмотреть сообщение
It's OK, just means that the script was compiled without debug info, you can ignore this
I think this is your answer thimotyinthehouse :P


Anyway: Nice plugin
Reply
#33

pawno.cfg not be created in the folder? How can I create? Thx for help
Reply
#34

OK forget that -d3 thingy for a while, does the plugin actually load? Does it print an error or something to the server log? I'm asking this because it doesn't seem to work for everyone
Reply
#35

I managed to bag Plugins now crashdetect server crash waiting to check my error log to see what the server stops. Thank you!
Reply
#36

Quote:
Originally Posted by alynutzj2p
View Post
I managed to bag Plugins now crashdetect server crash waiting to check my error log to see what the server stops. Thank you!
when I enable d3 i need to use a pragma dynamic that is @ negative values? LOL?
Reply
#37

I see only that "[21:14:01] Crash caused an address by fread at 0x1aa0 in gamemodes / test.amx
[21:14:01] For more details with debugging symbols compile this script enabled and start the server again "How do I appear and additional information as they appeared too 0x5A656578" [20:40:14] Crash caused an by gamemodes \ test.amx, see stack trace Below
[20:40:14] Stack trace (most recent call first):
[20:40:14] fread (native) on line 13 in test.pwn
[20:40:14] function2 on line 8 in test.pwn
[20:40:14] function1 on line 4 in test.pwn
[20:40:14] main (entry point) "Please help me
Reply
#38

Quote:
Originally Posted by gamer_Z
View Post
when I enable d3 i need to use a pragma dynamic that is @ negative values? LOL?
Yes weird things would occur. For me, it shows me that there's stack overflow but it doesn't show without the flag.
Also, d2 also works (with optimisation).

Quote:
Originally Posted by alynutzj2p
View Post
I see only that "[21:14:01] Crash caused an address by fread at 0x1aa0 in gamemodes / test.amx
[21:14:01] For more details with debugging symbols compile this script enabled and start the server again "How do I appear and additional information as they appeared too 0x5A656578" [20:40:14] Crash caused an by gamemodes \ test.amx, see stack trace Below
[20:40:14] Stack trace (most recent call first):
[20:40:14] fread (native) on line 13 in test.pwn
[20:40:14] function2 on line 8 in test.pwn
[20:40:14] function1 on line 4 in test.pwn
[20:40:14] main (entry point) "Please help me
You DO NOT need to add the script provided by 0x5A656578. It's just an example to show this plugin works. All you need to do is to compile your script with a -d3 (or -d2) flag and start your server with this plugin.
Reply
#39

Great plugin, i just fixed an crash
Reply
#40

How to compile GM with -d3 (or-d2) flag? Thx for help!
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)