[bug?] samp 0.3d log system
#1

Hi, I've this simple log system:

Код:
stock WriteLog(filename[],text[])
{
	printf("%s => %s", filename, text);
	new File:file;
	new filepath[60], string[256], year,day,month, hour,minute,second;
	getdate(year,month,day); gettime(hour,minute,second);
	format(filepath,sizeof(filepath),"RPG/logs/%s.log",filename);
	file = fopen(filepath,io_append);
	format(string,sizeof(string),"[%02d/%02d/%d|%02d:%02d:%02d] %s\r\n",day,month,year,hour,minute,second,text);
	if(file)
	{
		fwrite(file,string);
		fclose(file);
	}
	return 1;
}
It works good 99% of time, I have a server with 70 players online right now

but somethimes it crashes, I've get the crashdetect plugin to see it, but it can't recognize the error, but everytime is when I try to log something (I usually do a lot of logs...)

exemples:

Quote:

[31/03/12 14:04:16] [join] Max_Jhones has joined the server (41:189.73.228.206)
[31/03/12 14:04:16] connections => Max_Jhones conectou no servidor. (id: 41 - IP: 189.73.228.206)
[31/03/12 14:04:16] //[debug] Server crashed due to an unknown error

Quote:

[30/03/12 15:59:39] [chat] [Matheus_Kappa]: eu vim :da
[30/03/12 15:59:40] Admins/Punicoes => {ff0000}[BSL]:{ffffff} Tiago_Lopes foi punido por Junior_HeaveN. Motivo: Anъncio Indevido
[30/03/12 15:59:41] //[debug] Server crashed due to an unknown error

Quote:

[30/03/12 16:47:48] [part] mike780 has left the server (92:2)
[30/03/12 16:47:48] Admins/AdminChat => (Admin Chat) Duff_StifleR (id: 77): kkkkkkkk
[30/03/12 16:47:48] ComandoErrado => Gustavo_fx digitou o comando errado: /fichas
[30/03/12 16:47:50] Admins/AdminChat => (Admin Chat) Anonymous_StifleR (id: 75): oooooooooo ******
[30/03/12 16:47:50] //[debug] Server crashed due to an unknown error

Quote:

[30/03/12 19:04:42] [death] Gustavo_hr died 255
[30/03/12 19:04:43] ComandoErrado => Joao_Escobar digitou o comando errado: /animlist
[30/03/12 19:04:44] //[debug] Server crashed while executing bowling.amx

some full crash logs:

Quote:

--------------------------

SA-MP Server: 0.3d-R2-800p



Exception At Address: 0x6E6E11B7



Registers:

EAX: 0x00000000 EBX: 0x00000000 ECX: 0x00000000 EDX: 0x00000000

ESI: 0x029DC35C EDI: 0x029DC358 EBP: 0x02BBFEBC ESP: 0x02BBFE28

EFLAGS: 0x00010293



Stack:

+0000: 0x029DC358 0x029DC35C 0x00000000 0x392F79D4

+0010: 0x000571E0 0xFFFFFFAC 0x00000000 0x00000000

+0020: 0x775CFD71 0x74EF31BB 0x00000000 0x74EF31E7

+0030: 0x3910A5A5 0x00001692 0x029DC358 0x029DC35C

+0040: 0x029DC35C 0x00000001 0x00000000 0x00000000

+0050: 0x00000000 0x00000000 0x00000000 0x00000000

+0060: 0x00000000 0xFFFB6C20 0xFFFFFFFF 0x00000000

+0070: 0x02BBFE58 0x00000000 0x02BDFF3C 0x74F16590

+0080: 0x4F5A24FD 0x0DB105F8 0x02BDFF3C 0x6E6E9219

+0090: 0x00000000 0x02BDFF48 0x6E6E57AF 0x00000000

+00A0: 0x02767E88 0x392F79B8 0x00000000 0x00000000

+00B0: 0x02789058 0x00000000 0x006D2B28 0xFFFFFFFF

+00C0: 0x00000000 0x00000000 0x00000000 0x00000000

+00D0: 0x00000000 0x006D2B00 0xFFFFFFFF 0x00000000

+00E0: 0x00000000 0x00000000 0x00000000 0x00000000

+00F0: 0x00000000 0x0000006F 0x00594EA0 0x00000000

+0100: 0x00000000 0x00000000 0x00003620 0x0000361F

+0110: 0x0000361E 0x0000361C 0x00003628 0x00003629

+0120: 0x0000362A 0x0000362B 0x0000362C 0x0000362D

+0130: 0x0000362E 0x00003627 0x0000362F 0x00003630



--------------------------

SA-MP Server: 0.3d-R2-800p



Exception At Address: 0x74EEB9BC



Registers:

EAX: 0x0018FD50 EBX: 0x72982360 ECX: 0x00000003 EDX: 0x00000000

ESI: 0x0000003E EDI: 0x00000DC0 EBP: 0x0018FDA0 ESP: 0x0018FD50

EFLAGS: 0x00000216



Stack:

+0000: 0xE06D7363 0x00000001 0x00000000 0x74EEB9BC

+0010: 0x00000003 0x19930520 0x0018FDE8 0x72C0CACC

+0020: 0x0018FD84 0x0018FE1C 0x0018FE20 0x72982360

+0030: 0x0018FD94 0x00000002 0x00000000 0x00000028

+0040: 0x729BDB5E 0x0018FDB4 0x72C90269 0x02830000

+0050: 0x0018FDD8 0x72CA7819 0xE06D7363 0x00000001

+0060: 0x00000003 0x0018FDCC 0xE06D7363 0x00000001

+0070: 0x00000000 0x00000000 0x00000003 0x19930520

+0080: 0x0018FDE8 0x72C0CACC 0x0018FDF4 0x72BE0D94

+0090: 0x0018FDE8 0x72C0CACC 0x72BD1790 0x028393E8

+00A0: 0x00000001 0x0018FE24 0x710B2000 0x710B44B0

+00B0: 0x01E30FD8 0x00000000 0x01E31548 0x0000003F

+00C0: 0x0000003E 0x00000000 0x0000000D 0x00000000

+00D0: 0x00000000 0x74DE10FF 0x00469006 0x74DE1136

+00E0: 0x74DE16C5 0x00482E7E 0x00000000 0x00001DB1

+00F0: 0x0018FF88 0x7EFDE000 0x0001E000 0x00010101

+0100: 0x00000060 0x00001E61 0x000000A8 0x00000D88

+0110: 0x003F8FE8 0x656D6167 0x65646F6D 0x00003531

+0120: 0x004B6014 0x004B6010 0x7EFDE000 0x004A0190

+0130: 0x0018FE70 0x0018FF78 0x0018FF78 0x004920A8



--------------------------

SA-MP Server: 0.3d-R2-800p



Exception At Address: 0x74EEB9BC



Registers:

EAX: 0x0018FD50 EBX: 0x72BE2360 ECX: 0x00000003 EDX: 0x00000000

ESI: 0x00000053 EDI: 0x000000A8 EBP: 0x0018FDA0 ESP: 0x0018FD50

EFLAGS: 0x00000216



Stack:

+0000: 0xE06D7363 0x00000001 0x00000000 0x74EEB9BC

+0010: 0x00000003 0x19930520 0x0018FDE8 0x72CBCACC

+0020: 0x0018FD84 0x0018FE1C 0x0018FE20 0x72BE2360

+0030: 0x0018FD94 0x00000002 0x00000000 0x00000028

+0040: 0x72C1DB5E 0x0018FDB4 0x72930269 0x00390000

+0050: 0x0018FDD8 0x72947819 0xE06D7363 0x00000001

+0060: 0x00000003 0x0018FDCC 0xE06D7363 0x00000001

+0070: 0x00000000 0x00000000 0x00000003 0x19930520

+0080: 0x0018FDE8 0x72CBCACC 0x0018FDF4 0x72C90D94

+0090: 0x0018FDE8 0x72CBCACC 0x72C81790 0x003994B0

+00A0: 0x00000001 0x0018FE24 0x71AF2000 0x71AF44B0

+00B0: 0x00500FD8 0x00000000 0x00501548 0x00000054

+00C0: 0x00000053 0xD0000000 0x0000000D 0x00000000

+00D0: 0x00000000 0x74DE10FF 0x00469006 0x74DE1136

+00E0: 0x74DE16C5 0x00482E7E 0x00000000 0x00001DB1

+00F0: 0x0018FF88 0x7EFDE000 0x0001E000 0x00010101

+0100: 0x00000060 0x00001E61 0x000000A8 0x00000BF8

+0110: 0x02118FE8 0x656D6167 0x65646F6D 0x00003531

+0120: 0x004B6014 0x004B6010 0x7EFDE000 0x004A0190

+0130: 0x0018FE70 0x0018FF78 0x0018FF78 0x004920A8



--------------------------

SA-MP Server: 0.3d-R2-800p



Exception At Address: 0x6E9411B7



Registers:

EAX: 0x00000000 EBX: 0x00000000 ECX: 0x00000000 EDX: 0x00000000

ESI: 0x02C3CB7C EDI: 0x02C3CB78 EBP: 0x02D1FEBC ESP: 0x02D1FE28

EFLAGS: 0x00010293



Stack:

+0000: 0x02C3CB78 0x02C3CB7C 0x00000000 0x05B59E9F

+0010: 0x001184D0 0xFFFFFFAC 0x00000000 0x00000000

+0020: 0x775CFD71 0x74EF31BB 0x00000000 0x74EF31E7

+0030: 0xFA403002 0x0000D302 0x02C3CB78 0x02C3CB7C

+0040: 0x02C3CB7C 0x00000001 0x00000000 0x00000000

+0050: 0x00000000 0x00000000 0x00000000 0x00000000

+0060: 0x00000000 0xFFFB6C20 0xFFFFFFFF 0x00000000

+0070: 0x02D1FE58 0x00000000 0x02D3FF3C 0x74F16590

+0080: 0x8C60B15A 0x279A0738 0x02D3FF3C 0x6E949219

+0090: 0x00000000 0x02D3FF48 0x6E9457AF 0x00000000

+00A0: 0x02A435D0 0x05B59EF3 0x00000000 0x00000000

+00B0: 0x02809B68 0x00000000 0x00682D30 0xFFFFFFFF

+00C0: 0x00000000 0x00000000 0x00000000 0x00000000

+00D0: 0x00000000 0x00682D08 0xFFFFFFFF 0x00000000

+00E0: 0x00000000 0x00000000 0x00000000 0x00000000

+00F0: 0x00000000 0x00000088 0x00594EA0 0x00000000

+0100: 0x00000000 0x00000000 0x000063E0 0x00006431

+0110: 0x00006432 0x0000703B 0x0000703C 0x0000703A

+0120: 0x00007033 0x00006F58 0x00006F57 0x00006F56

+0130: 0x00006F55 0x00006F54 0x00006F53 0x00006F5A



--------------------------

SA-MP Server: 0.3d-R2-800p



Exception At Address: 0x6E4111B7



Registers:

EAX: 0x00000000 EBX: 0x00000000 ECX: 0x00000000 EDX: 0x00000000

ESI: 0x0295CB7C EDI: 0x0295CB78 EBP: 0x02B3FEBC ESP: 0x02B3FE28

EFLAGS: 0x00010293



Stack:

+0000: 0x0295CB78 0x0295CB7C 0x00000000 0x6CB06805

+0010: 0x000A02A8 0xFFFFFFAC 0x00000000 0x00000000

+0020: 0x775CFD71 0x74EF31BB 0x00000000 0x74EF31E7

+0030: 0x6C8B0353 0x0000F1F4 0x0295CB78 0x0295CB7C

+0040: 0x0295CB7C 0x00000001 0x00000000 0x00000000

+0050: 0x00000000 0x00000000 0x00000000 0x00000000

+0060: 0x00000000 0xFFFB6C20 0xFFFFFFFF 0x00000000

+0070: 0x02B3FE58 0x00000000 0x02B5FF3C 0x74F16590

+0080: 0x1AC9820B 0x15560368 0x02B5FF3C 0x6E419219

+0090: 0x00000000 0x02B5FF48 0x6E4157AF 0x00000000

+00A0: 0x026AC0D8 0x6CB06869 0x00000000 0x00000000

+00B0: 0x02699B68 0x00000000 0x006E2D30 0xFFFFFFFF

+00C0: 0x00000000 0x00000000 0x00000000 0x00000000

+00D0: 0x00000000 0x006E2D08 0xFFFFFFFF 0x00000000

+00E0: 0x00000000 0x00000000 0x00000000 0x00000000

+00F0: 0x00000000 0x0000009D 0x020BB440 0x00000000

+0100: 0x00000000 0x00000000 0x00001559 0x0000155A

+0110: 0x0000155B 0x0000155C 0x0000155D 0x00001556

+0120: 0x0000155E 0x0000157D 0x0000157E 0x0000157C

+0130: 0x00001572 0x0000157B 0x0000157A 0x00001579



--------------------------

SA-MP Server: 0.3d-R2-800p



Exception At Address: 0x6E9411B7



Registers:

EAX: 0x00000000 EBX: 0x00000000 ECX: 0x00000000 EDX: 0x00000000

ESI: 0x0295CF6C EDI: 0x0295CF68 EBP: 0x02B3FEBC ESP: 0x02B3FE28

EFLAGS: 0x00010293



Stack:

+0000: 0x0295CF68 0x0295CF6C 0x00000000 0x4950AB68

+0010: 0x000571E0 0xFFFFFFAC 0x00000000 0x00000000

+0020: 0x775CFD71 0x74EF31BB 0x00000000 0x74EF31E7

+0030: 0x494C54D6 0x00003451 0x0295CF68 0x0295CF6C

+0040: 0x0295CF6C 0x00000001 0x00000000 0x00000000

+0050: 0x00000000 0x00000000 0x00000000 0x00000000

+0060: 0x00000000 0xFFFB6C20 0xFFFFFFFF 0x00000000

+0070: 0x02B3FE58 0x00000000 0x02B5FF3C 0x74F16590

+0080: 0x3F0ED58E 0x0CD006B8 0x02B5FF3C 0x6E949219

+0090: 0x00000000 0x02B5FF48 0x6E9457AF 0x00000000

+00A0: 0x0266ACF8 0x4950AB04 0x00000000 0x00000000

+00B0: 0x0268BEC8 0x00000000 0x006D2D38 0xFFFFFFFF

+00C0: 0x00000000 0x00000000 0x00000000 0x00000000

+00D0: 0x00000000 0x006D2D10 0xFFFFFFFF 0x00000000

+00E0: 0x00000000 0x00000000 0x00000000 0x00000000

+00F0: 0x00000000 0x00000086 0x020B4EA0 0x00000000

+0100: 0x00000000 0x00000000 0x00000426 0x0000041D

+0110: 0x00000428 0x00000429 0x0000042A 0x0000042B

+0120: 0x00000427 0x00000413 0x000004C7 0x0000043D

+0130: 0x0000045E 0x0000045D 0x000004BB 0x000004BD
is that really a samp bug? or am I doing something wrong?
Reply
#2

Maybe you can try it to save it somewhere else maybe that works?
Reply
#3

Quote:
Originally Posted by Randyy
Посмотреть сообщение
Maybe you can try it to save it somewhere else maybe that works?
how could it help?


I've seen that error too, making the server crash:
Quote:

[30/03/12 16:55:11]
[30/03/12 16:55:09] connections => Killer_Matador conectou no servidor. (id: 17 - IP: 188.81.149.222)
[30/03/12 16:55:09] Admins/AdminChat => (Admin Chat) Mutante_HP (id: 65):
//[debug] Server crashed while executing BSL2.amx
[30/03/12 16:55:11] //[debug] Backtrace (most recent call first):
[30/03/12 16:55:11] //[debug] #0 00118eec in public OnPlayerCommandText (playerid=9, cmdtext[]=@0x00489274 "") at C:\BSL\BSL 2.1\gamemodes\BSL2.pwn:19711

on line 19711: dcmd(vid, 3, cmdtext);


this dcmd:
Код:
    dcmd_vid(playerid, params[])
	{
	    #pragma unused params
		new str[128];
		format(str, 128,"ID: %d : Modelo: %d", GetPlayerVehicleID(playerid), GetVehicleModel(GetPlayerVehicleID(playerid)));
		SendClientMessage(playerid, COLOR_WHITE, str);
		return 1;
	}
I've never seen some crash caused by dcmd, by the way...
But we have a log there too...
lol, it's really weird...
Reply
#4

Hmmpf weird , maybe it is just error of sa-mp?
Reply
#5

Quote:
Originally Posted by Randyy
Посмотреть сообщение
Hmmpf weird , maybe it is just error of sa-mp?
I tought about that
but why should it happens? :W
Reply
#6

Overflood? u got a busy server ? idk
Reply
#7

CPU 50%
RAM 80%

running minecraft + samp + teamspeak
on a
4gb ram
3ghz
windows 2008
1gbps link @fr

I dont think it's a busy serve =\
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)