Zeex/samp-plugin-crashdetect

Urgent Help

KyleSmith10 opened this issue · 17 comments

Hi, my server crashes when I spawn on Volt-Host but does not crash when it is on my homehost.

I've tried the plugin and it gives no information which is helpful to fixing this. I need to know as my server will be down until fixed.

Thank you.

I'm on the irc under the nick 'KyleSmith'

The amx backtrace just returns the line where it's the end of the script.

I keep getting this issue:

[15:37:03] [debug] #0 ???????? in public OnPlayerTakeDamage () at C:\Users\Kyle\Desktop\Scripting\gamemodes\CNRV2.pwn:25499
[15:37:04] [debug] Run time error 6: "Invalid instruction"
[15:37:04] [debug] Unknown opcode 0x7800 at address 0xFFFFFFFF
[15:37:04] [debug] Backtrace:

Do you use YSI, if so, which version?

The latest one 3.01.0002 .

On Linux or Windows?

Windows.

I suspect y_hooks could be causing this.. I'm entirely clueless as to where the entry point is, though.

What's at line 25499 and does any code execute in OnPlayerTakeDamage before the error?

I don't even use: OnPlayerTakeDamage in my script.

25499 is the end of the script, is a return 1; just at the end of the script.

Try adding an empty OnPlayerTakeDamage callback that just returns 1.

Now I did that, it says same error but with OnRconCommand

Added OnRconCommand and now it says: OnUnoccupiedVehicleUpdate

Add the code below at the bottom of your script. Remove lines until you stop getting compile errors (fun, huh?).


public OnPlayerConnect(playerid) return 1;
public OnPlayerDisconnect(playerid, reason) return 1;
public OnPlayerSpawn(playerid) return 1;
public OnPlayerDeath(playerid, killerid, reason) return 1;
public OnVehicleSpawn(vehicleid) return 1;
public OnVehicleDeath(vehicleid, killerid) return 1;
public OnPlayerText(playerid, text[]) return 1;
public OnPlayerCommandText(playerid, cmdtext[]) return 1;
public OnPlayerRequestClass(playerid, classid) return 1;
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) return 1;
public OnPlayerExitVehicle(playerid, vehicleid) return 1;
public OnPlayerStateChange(playerid, newstate, oldstate) return 1;
public OnPlayerEnterCheckpoint(playerid) return 1;
public OnPlayerLeaveCheckpoint(playerid) return 1;
public OnPlayerEnterRaceCheckpoint(playerid) return 1;
public OnPlayerLeaveRaceCheckpoint(playerid) return 1;
public OnRconCommand(cmd[]) return 1;
public OnPlayerRequestSpawn(playerid) return 1;
public OnObjectMoved(objectid) return 1;
public OnPlayerObjectMoved(playerid, objectid) return 1;
public OnPlayerPickUpPickup(playerid, pickupid) return 1;
public OnVehicleMod(playerid, vehicleid, componentid) return 1;
public OnEnterExitModShop(playerid, enterexit, interiorid) return 1;
public OnVehiclePaintjob(playerid, vehicleid, paintjobid) return 1;
public OnVehicleRespray(playerid, vehicleid, color1, color2) return 1;
public OnVehicleDamageStatusUpdate(vehicleid, playerid) return 1;
public OnPlayerSelectedMenuRow(playerid, row) return 1;
public OnPlayerExitedMenu(playerid) return 1;
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) return 1;
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) return 1;
public OnRconLoginAttempt(ip[], password[], success) return 1;
public OnPlayerUpdate(playerid) return 1;
public OnPlayerStreamIn(playerid, forplayerid) return 1;
public OnPlayerStreamOut(playerid, forplayerid) return 1;
public OnVehicleStreamIn(vehicleid, forplayerid) return 1;
public OnVehicleStreamOut(vehicleid, forplayerid) return 1;
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) return 1;
public OnPlayerClickPlayer(playerid, clickedplayerid, source) return 1;
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid) return 1;
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid) return 1;
public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ) return 1;
public OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat) return 1;

But wont this stop other functions?

Those are all functions hooked by y_hooks.

It now says this but doesn't say a line number.

[10:47:15] [debug] Run time error 4: "Array index out of bounds"
[10:47:15] [debug] Accessing element at negative index -1
[10:47:15] [debug] Backtrace:
[10:47:15] [debug] #0 000bc0b4 in public S@@_OnPlayerStateChange () from CNR.amx
[10:47:15] [debug] #1 native CallLocalFunction () from samp-server.exe

Now this issue:

[11:27:11] [debug] Run time error 6: "Invalid instruction"
[11:27:11] [debug] Unknown opcode 0x68000000 at address 0x00000035
[11:27:11] [debug] Backtrace:
[11:27:11] [debug] #0 from CNR.amx

I'd say this is related to YSI. Create an issue at the YSI repo.