Crashing.
#1

Hey,

I have a problem, my server does always crash after 1 hour, I don't have any warnings/errors, and crashdetect didn't help me much either, any ideas? :S
I've looked over the script enough times, still don't find the problem.
I'm using volt-host, and the auto restarts are off.
Reply
#2

Tried crashdetect plugin?
Reply
#3

Quote:
Originally Posted by NathNathii
View Post
Hey,

I have a problem, my server does always crash after 1 hour, I don't have any warnings/errors, and crashdetect didn't help me much either, any ideas? :S
I've looked over the script enough times, still don't find the problem.
I'm using volt-host, and the auto restarts are off.
Quote:
Originally Posted by linuxthefish
View Post
Tried crashdetect plugin?
Let me bold that for you.
Reply
#4

Sorry for the bump of this topic, but finally I get something from crashdetect.
But as I've never used it before I don't understand it.
Code:
[23:29:19] [debug] Run time error 4: "Array index out of bounds"
[23:29:19] [debug]  Accessing element at index 137 past array upper bound 136
[23:29:19] [debug] AMX backtrace:
[23:29:19] [debug] #0 00040e28 in ?? (0x00000000, 0x00000001, 0x0000000b) from Trucking.amx
[23:29:19] [debug] #1 000a0a1c in public OnDialogResponse (0x00000000, 0x00000016, 0x00000001, 0x0000000b, 0x002fa158) from Trucking.amx
Reply
#5

i dont use crashdetect so i have no idea whatever that means. can u post ur sever.log details?
the moments just before the crash?
i had this same issue for a while but mine was because i was using some commands which were suppsoed to log something in a log flile (abcxyz.log) and that file wasnt created at all.
it could also be because u or anyone for that matter, input some command which had some context that doesnt fit in, i.e it sends a message to the server that it cant handle, so it crashes altogether.
it could also be a DDOS though, you never know. what does the volthost personal log say?
does it mention, "server crashed"?
if u need more help on this and dont know what to do, PM me and ill help u cause i have a volthost acc too
cheers !
Reply
#6

Code:
[22:50:16] Number of vehicle models: 25
[22:50:49] Incoming connection: (IP REMOVED)
[22:50:50] [join] HUNter001 has joined the server (IP REMOVED)
[22:51:46]  used: /work 
[22:55:47]  used: /rescue 
[22:55:57]  used: /getcar 
[22:58:04]  used: /work 
[23:00:42]  used: /work 
[23:02:15]  used: /work 
[23:10:56]  used: /rescue 
[23:11:03]  used: /work 
[23:12:07]  used: /gohome 
[23:12:14]  used: /detach 
[23:13:32]  used: /getcar 
[23:17:18]  used: /work 
[23:17:23] [debug] Run time error 4: "Array index out of bounds"
[23:17:23] [debug]  Accessing element at index 138 past array upper bound 136
[23:17:23] [debug] AMX backtrace:
[23:17:23] [debug] #0 000410fc in ?? (0x00000000, 0x00000001, 0x00000000) from Trucking.amx
[23:17:23] [debug] #1 000a0a50 in public OnDialogResponse (0x00000000, 0x00000017, 0x00000001, 0x00000000, 0x002fa158) from Trucking.amx
[23:17:28]  used: /work 
[23:17:33] [debug] Run time error 4: "Array index out of bounds"
[23:17:33] [debug]  Accessing element at index 138 past array upper bound 136
[23:17:33] [debug] AMX backtrace:
[23:17:33] [debug] #0 000410fc in ?? (0x00000000, 0x00000001, 0x00000000) from Trucking.amx
[23:17:33] [debug] #1 000a0a50 in public OnDialogResponse (0x00000000, 0x00000017, 0x00000001, 0x00000000, 0x002fa158) from Trucking.amx
[23:17:40]  used: /work 
[23:17:45] [debug] Run time error 4: "Array index out of bounds"
[23:17:45] [debug]  Accessing element at index 138 past array upper bound 136
[23:17:45] [debug] AMX backtrace:
[23:17:45] [debug] #0 000410fc in ?? (0x00000000, 0x00000001, 0x00000000) from Trucking.amx
[23:17:45] [debug] #1 000a0a50 in public OnDialogResponse (0x00000000, 0x00000017, 0x00000001, 0x00000000, 0x002fa158) from Trucking.amx
[23:17:52]  used: /work 
[23:17:59]  used: /work 
[23:18:03] [debug] Run time error 4: "Array index out of bounds"
[23:18:03] [debug]  Accessing element at index 138 past array upper bound 136
[23:18:03] [debug] AMX backtrace:
[23:18:03] [debug] #0 000410fc in ?? (0x00000000, 0x00000001, 0x00000000) from Trucking.amx
[23:18:03] [debug] #1 000a0a50 in public OnDialogResponse (0x00000000, 0x00000017, 0x00000001, 0x00000000, 0x002fa158) from Trucking.amx
[23:18:21] [chat] [HUNter001]: hali
[23:18:24]  used: /work 
[23:18:29] [debug] Run time error 4: "Array index out of bounds"
[23:18:29] [debug]  Accessing element at index 138 past array upper bound 136
[23:18:29] [debug] AMX backtrace:
[23:18:29] [debug] #0 000410fc in ?? (0x00000000, 0x00000001, 0x00000000) from Trucking.amx
[23:18:29] [debug] #1 000a0a50 in public OnDialogResponse (0x00000000, 0x00000017, 0x00000001, 0x00000000, 0x002fa158) from Trucking.amx
[23:18:48] [part] HUNter001 has left the server (0:1)
[23:19:43] Incoming connection: 178.48.124.250:1126
[23:19:43] [join] HUNter001 has joined the server (IP REMOVED)
[23:20:34]  used: /work 
[23:20:41]  used: /work 
[23:20:48]  used: /work 
[23:20:53] [debug] Run time error 4: "Array index out of bounds"
[23:20:53] [debug]  Accessing element at index 138 past array upper bound 136
[23:20:53] [debug] AMX backtrace:
[23:20:53] [debug] #0 000410fc in ?? (0x00000000, 0x00000001, 0x00000000) from Trucking.amx
[23:20:53] [debug] #1 000a0a50 in public OnDialogResponse (0x00000000, 0x00000017, 0x00000001, 0x00000000, 0x002fa158) from Trucking.amx
[23:21:02]  used: /work 
[23:21:06] [debug] Run time error 4: "Array index out of bounds"
[23:21:06] [debug]  Accessing element at index 138 past array upper bound 136
[23:21:06] [debug] AMX backtrace:
[23:21:06] [debug] #0 000410fc in ?? (0x00000000, 0x00000001, 0x00000000) from Trucking.amx
[23:21:06] [debug] #1 000a0a50 in public OnDialogResponse (0x00000000, 0x00000017, 0x00000001, 0x00000000, 0x002fa158) from Trucking.amx
Reply
#7

Um are you using a host or something? If so use filezilla to upload your amx. If u arent using a host service reply to this topic
Reply
#8

Code:
#1 000a0a1c in public OnDialogResponse (0x00000000, 0x00000016, 0x000000
Doesn't that mean anything?
Accessing 137 when upper bound is 136, should tell you quite a lot about what array, where, etc..
Reply
#9

Quote:
Originally Posted by NathNathii
View Post
Code:
[22:50:16] Number of vehicle models: 25
[22:50:49] Incoming connection: (IP REMOVED)
[22:50:50] [join] HUNter001 has joined the server (IP REMOVED)
[22:51:46]  used: /work 
[22:55:47]  used: /rescue 
[22:55:57]  used: /getcar 
[22:58:04]  used: /work 
[23:00:42]  used: /work 
[23:02:15]  used: /work 
[23:10:56]  used: /rescue 
[23:11:03]  used: /work 
[23:12:07]  used: /gohome 
[23:12:14]  used: /detach 
[23:13:32]  used: /getcar 
[23:17:18]  used: /work 
[23:17:23] [debug] Run time error 4: "Array index out of bounds"
[23:17:23] [debug]  Accessing element at index 138 past array upper bound 136
[23:17:23] [debug] AMX backtrace:
[23:17:23] [debug] #0 000410fc in ?? (0x00000000, 0x00000001, 0x00000000) from Trucking.amx
[23:17:23] [debug] #1 000a0a50 in public OnDialogResponse (0x00000000, 0x00000017, 0x00000001, 0x00000000, 0x002fa158) from Trucking.amx
[23:17:28]  used: /work 
[23:17:33] [debug] Run time error 4: "Array index out of bounds"
[23:17:33] [debug]  Accessing element at index 138 past array upper bound 136
[23:17:33] [debug] AMX backtrace:
[23:17:33] [debug] #0 000410fc in ?? (0x00000000, 0x00000001, 0x00000000) from Trucking.amx
[23:17:33] [debug] #1 000a0a50 in public OnDialogResponse (0x00000000, 0x00000017, 0x00000001, 0x00000000, 0x002fa158) from Trucking.amx
[23:17:40]  used: /work 
[23:17:45] [debug] Run time error 4: "Array index out of bounds"
[23:17:45] [debug]  Accessing element at index 138 past array upper bound 136
[23:17:45] [debug] AMX backtrace:
[23:17:45] [debug] #0 000410fc in ?? (0x00000000, 0x00000001, 0x00000000) from Trucking.amx
[23:17:45] [debug] #1 000a0a50 in public OnDialogResponse (0x00000000, 0x00000017, 0x00000001, 0x00000000, 0x002fa158) from Trucking.amx
[23:17:52]  used: /work 
[23:17:59]  used: /work 
[23:18:03] [debug] Run time error 4: "Array index out of bounds"
[23:18:03] [debug]  Accessing element at index 138 past array upper bound 136
[23:18:03] [debug] AMX backtrace:
[23:18:03] [debug] #0 000410fc in ?? (0x00000000, 0x00000001, 0x00000000) from Trucking.amx
[23:18:03] [debug] #1 000a0a50 in public OnDialogResponse (0x00000000, 0x00000017, 0x00000001, 0x00000000, 0x002fa158) from Trucking.amx
[23:18:21] [chat] [HUNter001]: hali
[23:18:24]  used: /work 
[23:18:29] [debug] Run time error 4: "Array index out of bounds"
[23:18:29] [debug]  Accessing element at index 138 past array upper bound 136
[23:18:29] [debug] AMX backtrace:
[23:18:29] [debug] #0 000410fc in ?? (0x00000000, 0x00000001, 0x00000000) from Trucking.amx
[23:18:29] [debug] #1 000a0a50 in public OnDialogResponse (0x00000000, 0x00000017, 0x00000001, 0x00000000, 0x002fa158) from Trucking.amx
[23:18:48] [part] HUNter001 has left the server (0:1)
[23:19:43] Incoming connection: 178.48.124.250:1126
[23:19:43] [join] HUNter001 has joined the server (IP REMOVED)
[23:20:34]  used: /work 
[23:20:41]  used: /work 
[23:20:48]  used: /work 
[23:20:53] [debug] Run time error 4: "Array index out of bounds"
[23:20:53] [debug]  Accessing element at index 138 past array upper bound 136
[23:20:53] [debug] AMX backtrace:
[23:20:53] [debug] #0 000410fc in ?? (0x00000000, 0x00000001, 0x00000000) from Trucking.amx
[23:20:53] [debug] #1 000a0a50 in public OnDialogResponse (0x00000000, 0x00000017, 0x00000001, 0x00000000, 0x002fa158) from Trucking.amx
[23:21:02]  used: /work 
[23:21:06] [debug] Run time error 4: "Array index out of bounds"
[23:21:06] [debug]  Accessing element at index 138 past array upper bound 136
[23:21:06] [debug] AMX backtrace:
[23:21:06] [debug] #0 000410fc in ?? (0x00000000, 0x00000001, 0x00000000) from Trucking.amx
[23:21:06] [debug] #1 000a0a50 in public OnDialogResponse (0x00000000, 0x00000017, 0x00000001, 0x00000000, 0x002fa158) from Trucking.amx
you should check those commands, and it seems that "/work" is the problem. Try to post that command here if you want us to help.
Reply
#10

Fixed that thing in /work, forgot something in it.
But, it does still crash every hour.. never happend on my friends' vps, only at volt..
Reply
#11

Quote:
Originally Posted by NathNathii
View Post
Fixed that thing in /work, forgot something in it.
But, it does still crash every hour.. never happend on my friends' vps, only at volt..
then check the server log after it, and see what command did you use before the log shown, that will be the problem.
Reply
#12

Quote:
Originally Posted by NathNathii
View Post
Fixed that thing in /work, forgot something in it.
But, it does still crash every hour.. never happend on my friends' vps, only at volt..
If you don't use the latest version of the plugin which is 4.12, then you can get it from here: https://github.com/Zeex/samp-plugin-...ases/tag/v4.12

Compiling with -d3 may help too, for that refer to: https://github.com/Zeex/samp-plugin-...ith-debug-info

Whenever the server crashes again and crashdetect prints results, post them here so we can help you.
Reply
#13

// Will re-post soon!
Reply
#14

The format function crashed your server which was used inside somewhere (unknown ?? (probably something related to PPC_PlayerCommands)) which was used in /gtacmds command.

Post that command.
Reply
#15

Fixed that, wasn't enough string. (._.)
Will post more if it still crashes.
Reply
#16

Code:
[17:23:28] Number of vehicle models: 25
[17:23:32] Incoming connection: (IP REMOVED)
[17:23:33] [join] REMOVED NAME has joined the server (IP REMOVED)
[17:23:47] Incoming connection: (IP REMOVED)
[17:23:47] [join] REMOVED NAME has joined the server (IP REMOVED)
[17:23:51] Incoming connection: (IP REMOVED)
[17:23:51] [join] REMOVED NAME has joined the server (IP REMOVED))
[17:23:58] [chat] [REMOVED NAME]: oi
[17:24:01] REMOVED NAME used: /admins 
[17:24:01] Incoming connection: (IP REMOVED)
[17:24:02] [join] REMOVED NAME has joined the server (IP REMOVED)
[17:24:04] REMOVED NAME used: /work 
[17:24:06] REMOVED NAME used: /admins 
[17:24:10] REMOVED NAME used: /cmds 
[17:24:10] [debug] Server crashed while executing Trucking.amx
[17:24:10] [debug] AMX backtrace:
[17:24:10] [debug] #0 00000046 in ?? (... <17 arguments>) at C:\Users\Nath\Documents\TL Testing\pawno\include\float.inc:121
[17:24:10] [debug] #1 00000046 in public cmd_cmds () at C:\Users\Nath\Documents\TL Testing\pawno\include\float.inc:121
[17:24:10] [debug] #2 native CallLocalFunction () [080d2960] from samp03svr
[17:24:10] [debug] #3 00000674 in ?? (... <8 arguments>) at C:\Users\Nath\Documents\TL Testing\pawno\include\zcmd.inc:104
[17:24:10] [debug] #4 0000000a in public OnPlayerCommandText () at C:\Users\Nath\Documents\TL Testing\pawno\include\float.inc:120
Reply
#17

The command /cmds crashed the server, though it's not known where exactly (see #0 00000046 in ??). Can you post it?
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)