Server crashing constantly [Log included]
#1

Hey there, fellow members. I am ussualy not soo active in posting here, but at the moment I can't think of anything and I need some help.

The server crashes like nearly 1 time on around 24 hours or 2 days. Here is the crashlog, any ideas?:

Код:
[12:41:31] [debug] Server crashed due to an unknown error
[12:41:31] [debug] Native backtrace:
[12:41:31] [debug] #0 f7406e8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[12:41:31] [debug] #1 f73ffbcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[12:41:31] [debug] #2 f7400dbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[12:41:31] [debug] #3 f7401226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[12:41:31] [debug] #4 f7406adc in ?? () from plugins/crashdetect.so
[12:41:31] [debug] #5 f76e6410 in ?? ()
[12:41:31] [debug] #6 f76e6430 in ?? ()
[12:41:31] [debug] #7 f7455661 in gsignal () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
[12:41:31] [debug] #8 f7458a92 in abort () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
[12:41:31] [debug] #9 f7490dc5 in ?? () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
[12:41:31] [debug] #10 f749aeb1 in ?? () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
[12:41:31] [debug] #11 f749b30a in ?? () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
[12:41:31] [debug] #12 f749d425 in ?? () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
[12:41:31] [debug] #13 f749f92c in __libc_malloc () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
[12:41:31] [debug] #14 f76217b5 in _Znwj () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[12:41:31] [debug] #15 0807db7c in ?? () from ./samp03svr
[12:41:31] [debug] #16 080705bf in ?? () from ./samp03svr
[12:41:31] [debug] #17 08074928 in ?? () from ./samp03svr
[12:41:31] [debug] #18 080763fe in ?? () from ./samp03svr
[12:41:31] [debug] #19 f76c4c39 in ?? () from /lib/i386-linux-gnu/i686/cmov/libpthread.so.0
[12:41:31] [debug] #20 f7501c6e in clone () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
Reply
#2

Bump...

Really someone, I am in need of help. Would be glad if someone helps me.
Reply
#3

apt-get update
apt-get upgrade
Reply
#4

Try monitoring your RAM usage, could be that your server process is running out of it.
Reply
#5

Quote:
Originally Posted by Danzou
Посмотреть сообщение
apt-get update
apt-get upgrade
Well, I did this and it did update. Now gonna wait and see will it crash again.

Quote:
Originally Posted by maddinat0r
Посмотреть сообщение
Try monitoring your RAM usage, could be that your server process is running out of it.
Nah, it doesn't use much RAM, it won't be this.


Anyways if anyone has more ideas what could it be, tell me. If it doesn't crash in 48 hours, then the solution is the update wich I did.
Reply
#6

post ur server.cfg here, also did u update crashdetect plugin? if no, try it
Reply
#7

Quote:
Originally Posted by Yousha
Посмотреть сообщение
post ur server.cfg here, also did u update crashdetect plugin? if no, try it
Yeah, I have the latest crashdetect plugin. The server was crashing without crashdetect aswell.

Код:
echo Executing Server Config...
lanmode 0
rcon_password 
rcon 0
maxplayers 102
port 7777
hostname 
gamemode0 vrp
filterscripts sunglasses savemods
announce 1
query 1
weburl Comming Soon
maxnpc 2
ackslimit 5500
messageholelimit 5000
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 250.0
stream_rate 300
plugins crashdetect.so streamer.so sscanf.so irc.so
Quote:
Originally Posted by Ralfie
Посмотреть сообщение
Oh well, the server was crashing without the crashdetect plugin on it, I've putted it to check what is causing the error.
Reply
#8

what about using a sample GM like bar.amx, barron.amx, grandlarc.amx or... with CURRENT server.cfg and check the output?

Also: remove streamer.so sscanf.so irc.so plugins when using one of those GMs ?
Reply
#9

Quote:
Originally Posted by Yousha
Посмотреть сообщение
what about using a sample GM like bar.amx, barron.amx, grandlarc.amx or... with CURRENT server.cfg and check the output?

Also: remove streamer.so sscanf.so irc.so plugins when using one of those GMs ?
Yeah, I'll try this. I'll start a second server and wait around 48 hours.
But first I'll wait to see will it crash again, after the update i've done on the VPS.

Any other ideas?
Reply
#10

http://forum.sa-mp.com/showpost.php?...02&postcount=1
just trying to help
Reply
#11

I wanna show what I found today, after I woke up and after the last update i've done.
I think the server did not crash but, it still gives the crashlog.

I wanna show what I found today, after I woke up and after the last update i've done.I think the server did not crash but, it still gives the crashlog.

Main errors I found are:
[13:44:24] [debug] AMX backtrace:
[13:44:24] [debug] #0 000a6514 in public TempData () from vrp.amx
[13:47:36] [debug] Run time error 4: "Array index out of bounds"
[13:47:36] [debug] Accessing element at index 952 past array upper bound 951

[13:53:31] [debug] AMX backtrace:
[13:53:31] [debug] #0 0007f12c in public FIXES_OnPlayerDisconnect (3, 2) from vrp.amx
[13:53:31] [debug] #1 00000e58 in public OnPlayerDisconnect (3, 2) from vrp.amx
[13:53:31] [debug] #2 native Kick () from samp03svr
[13:53:31] [debug] #3 00004854 in ?? (3) from vrp.amx
[13:53:31] [debug] #4 00026328 in public ToKick (3) from vrp.amx
[13:54:00] [debug] Run time error 4: "Array index out of bounds"
[13:54:00] [debug] Accessing element at index 952 past array upper bound 951


Code:
[13:43:20] [debug] AMX backtrace:
[13:43:20] [debug] #0 000a6514 in public TempData () from vrp.amx
[13:44:24] [debug] Run time error 4: "Array index out of bounds"
[13:44:24] [debug]  Accessing element at index 952 past array upper bound 951
[13:44:24] [debug] AMX backtrace:
[13:44:24] [debug] #0 000a6514 in public TempData () from vrp.amx
[13:45:15] [connection] 5.44.168.102:59881 requests connection cookie.
[13:45:16] [connection] incoming connection: 5.44.168.102:59881 id: 2
[13:45:16] [join] Nikita_Proxorov has joined the server (2:5.44.168.102)
[13:45:28] [debug] Run time error 4: "Array index out of bounds"
[13:45:28] [debug]  Accessing element at index 952 past array upper bound 951
[13:45:28] [debug] AMX backtrace:
[13:45:28] [debug] #0 000a6514 in public TempData () from vrp.amx
[13:45:47] [part] Nikita_Proxorov has left the server (2:2)
[13:46:15] [connection] 5.44.168.102:59889 requests connection cookie.
[13:46:16] [connection] incoming connection: 5.44.168.102:59889 id: 2
[13:46:16] [join] Nikita_Proxorov has joined the server (2:5.44.168.102)
[13:46:20] [part] Nikita_Proxorov has left the server (2:2)
[13:46:32] [debug] Run time error 4: "Array index out of bounds"
[13:46:32] [debug]  Accessing element at index 952 past array upper bound 951
[13:46:32] [debug] AMX backtrace:
[13:46:32] [debug] #0 000a6514 in public TempData () from vrp.amx
[13:47:36] [debug] Run time error 4: "Array index out of bounds"
[13:47:36] [debug]  Accessing element at index 952 past array upper bound 951
[13:47:36] [debug] AMX backtrace:
[13:47:36] [debug] #0 000a6514 in public TempData () from vrp.amx
[13:48:40] [debug] Run time error 4: "Array index out of bounds"
[13:48:40] [debug]  Accessing element at index 952 past array upper bound 951
[13:48:40] [debug] AMX backtrace:
[13:48:40] [debug] #0 000a6514 in public TempData () from vrp.amx
[13:49:44] [debug] Run time error 4: "Array index out of bounds"
[13:49:44] [debug]  Accessing element at index 952 past array upper bound 951
[13:49:44] [debug] AMX backtrace:
[13:49:44] [debug] #0 000a6514 in public TempData () from vrp.amx
[13:50:48] [debug] Run time error 4: "Array index out of bounds"
[13:50:48] [debug]  Accessing element at index 952 past array upper bound 951
[13:50:48] [debug] AMX backtrace:
[13:50:48] [debug] #0 000a6514 in public TempData () from vrp.amx
[13:51:24] [connection] 42.112.228.136:38910 requests connection cookie.
[13:51:25] [connection] incoming connection: 42.112.228.136:38910 id: 2
[13:51:27] [join] Vu_Pham has joined the server (2:42.112.228.136)
[13:51:52] [debug] Run time error 4: "Array index out of bounds"
[13:51:52] [debug]  Accessing element at index 952 past array upper bound 951
[13:51:52] [debug] AMX backtrace:
[13:51:52] [debug] #0 000a6514 in public TempData () from vrp.amx
[13:52:13] Vu_Pham's account created.
[13:52:56] [debug] Run time error 4: "Array index out of bounds"
[13:52:56] [debug]  Accessing element at index 952 past array upper bound 951
[13:52:56] [debug] AMX backtrace:
[13:52:56] [debug] #0 000a6514 in public TempData () from vrp.amx
[13:53:29] [connection] 86.126.57.185:1126 requests connection cookie.
[13:53:30] [connection] incoming connection: 86.126.57.185:1126 id: 3
[13:53:31] [join] HappyMario has joined the server (3:86.126.57.185)
[13:53:31] [debug] Run time error 4: "Array index out of bounds"
[13:53:31] [debug]  Accessing element at index 255 past array upper bound 99
[13:53:31] [debug] AMX backtrace:
[13:53:31] [debug] #0 0007f12c in public FIXES_OnPlayerDisconnect (3, 2) from vrp.amx
[13:53:31] [debug] #1 00000e58 in public OnPlayerDisconnect (3, 2) from vrp.amx
[13:53:31] [debug] #2 native Kick () from samp03svr
[13:53:31] [debug] #3 00004854 in ?? (3) from vrp.amx
[13:53:31] [debug] #4 00026328 in public ToKick (3) from vrp.amx
[13:53:31] [part] HappyMario has left the server (3:2)
[13:54:00] [debug] Run time error 4: "Array index out of bounds"
[13:54:00] [debug]  Accessing element at index 952 past array upper bound 951
[13:54:00] [debug] AMX backtrace:
[13:54:00] [debug] #0 000a6514 in public TempData () from vrp.amx
[13:55:04] [debug] Run time error 4: "Array index out of bounds"
[13:55:04] [debug]  Accessing element at index 952 past array upper bound 951
[13:55:04] [debug] AMX backtrace:
[13:55:04] [debug] #0 000a6514 in public TempData () from vrp.amx
[13:55:39] [debug] Run time error 4: "Array index out of bounds"
[13:55:39] [debug]  Accessing element at index 255 past array upper bound 99
[13:55:39] [debug] AMX backtrace:
[13:55:39] [debug] #0 0007f12c in public FIXES_OnPlayerDisconnect (2, 1) from vrp.amx
[13:55:39] [debug] #1 00000e58 in public OnPlayerDisconnect (2, 1) from vrp.amx
Reply
#12

This is not a BUMP, I just found the problem code.

Код:
[23:19:06] [debug] #0 000d1f60 in public TempData () at C:\Users\Admin\Desktop\samp03\gamemodes\vrp.pwn:17382
[23:20:10] [debug] Run time error 4: "Array index out of bounds"
[23:20:10] [debug]  Accessing element at index 952 past array upper bound 951
Код:
if(Vehicles[i][carprice] >= 0 || Vehicles[i][cartype]==4 || Vehicles[i][cartype]==5 || Vehicles[i][cartype]==6 || Vehicles[i][cartype]==7 || Vehicles[i][cartype]==8)
This is the line 17382.
Reply
#13

Now its a programming mistake, not about incs/plugins...

That warning means Somewhere you are using index 952 of a array, while you just have 951 indexes in that array

-1 look which define/variable is 951 (by default)
-2 find where you used that define/variable
-3 use printf("%i", YOUR-VARIABLE); around of that place, to see where the index increases to 952.
and commenting part of codes(in those functions) may helps

Also, check the database... maybe 1 additional row was inserted into the table. (952/951 max rows)
Reply
#14

Quote:
Originally Posted by Yousha
View Post
Now its a programming mistake, not about incs/plugins...

That warning means Somewhere you are using index 952 of a array, while you just have 951 indexes in that array

-1 look which define/variable is 951 (by default)
-2 find where you used that define/variable
-3 use printf("%i", YOUR-VARIABLE); around of that place, to see where the index increases to 952.
and commenting part of codes(in those functions) may helps

Also, check the database... maybe 1 additional row was inserted into the table. (952/951 max rows)
I did not find anything, or maybe I am doing something wrong. I've decided to make the function more easier. Like this:

Code:
for(new i=0;i<MAX_VEHICLES;i++)
	{
		if(Vehicles[i][respawncar]==1 && !IsVehicleOccupied(i))
        {
		SetVehicleToRespawn(i);
		}
	}
It still shows that the problem is in:

Code:
if(Vehicles[i][respawncar]==1 && !IsVehicleOccupied(i))
Reply
#15

1- What is value of MAX_VEHICLES ?

2- Show me your IsVehicleOccupied function

3- What type of database you are using? MySQL/SQLite/Flatfile... and is there a recorde with ID 0 ? in that database

NOTE: Always put GetVehicleModel(i) in if(Vehicles[i][respawncar]==1 && !IsVehicleOccupied(i)), to make sure that vehicle is a valid vehicle.
Reply
#16

Quote:
Originally Posted by Yousha
View Post
1- What is value of MAX_VEHICLES ?

2- Show me your IsVehicleOccupied function

3- What type of database you are using? MySQL/SQLite/Flatfile... and is there a recorde with ID 0 ? in that database

NOTE: Always put GetVehicleModel(i) in if(Vehicles[i][respawncar]==1 && !IsVehicleOccupied(i)), to make sure that vehicle is a valid vehicle.
1-
Code:
#undef MAX_VEHICLES
#define MAX_VEHICLES 1000
2- The problem is not in IsVehicleOccupied function, becuase it's being used on much other situations and it doesn't give a error.

3- Dini, dudb
Reply
#17

Quote:

2- The problem is not in IsVehicleOccupied function, becuase it's being used on much other situations and it doesn't give a erro

man, just post it... and dont trust that crashinfo/nativechecker plugins. sometimes they cant trace the correct location of error/warning

also u didnt answer me, is there a recorde with ID 0? in that database

also replace
for(new i=1

instead of
for(new i=0

then recompile and try it
Reply
#18

Quote:
Originally Posted by Yousha
View Post
man, just post it... and dont trust that crashinfo/nativechecker plugins. sometimes they cant trace the correct location of error/warning

also u didnt answer me, is there a recorde with ID 0? in that database

also replace
for(new i=1

instead of
for(new i=0

then recompile and try it
No need of this. I've reduced the problem to the current function.

Code:
for(new i=1;i<MAX_VEHICLES;i++)
	{
        if(IsVehicleOccupied(i)) continue;
        if(Vehicles[i][respawncar]!=1) continue;
		SetVehicleToRespawn(i);
	}
Now I see wich exactly gives the error, this:

Code:
if(Vehicles[i][respawncar]!=1)
If I remove this code, it doesn't give error anymore. But I need the function checking wich vehicle should it respawn on every 1 minute.
Reply
#19

Fixed, lel... I just needed to use my brain a bit more.

I've changed the for for(new and added to check is vehicle connected.

Code:
	for(new i = 1; i < sizeof(Vehicles); i++)
	{
    	if(!IsVehicleConnected(i)) continue;
        if(IsVehicleOccupied(i)) continue;
        if(Vehicles[i][respawncar]!=1) continue;
		SetVehicleToRespawn(i);
	}
Rep +1 go to Yousha, because he kept trying to help me and not ignored me. Thanks to everyone who posted here to help.
Reply
#20

what did you write in wich file
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)