SA-MP Forums

Go Back   SA-MP Forums > SA-MP > Bug Reports

Reply
 
Thread Tools Display Modes
Old 17/06/2012, 05:12 PM   #1
DartakousLien
High-roller
 
DartakousLien's Avatar
 
Join Date: Jan 2010
Location: Portugal
Posts: 1,209
Reputation: 63
Default

I'm very surprised by something that happened to me. never happened to me this. Just to be sure I decided to delete the file and try again crashinfo.log and concludes that only appears one time. Well, the server crash when execute this code
pawn Code:
if(dialogid==DIALOG_SMS+4&&response)
    {
        SendClientMessage(playerid,COR_AZUL,"1");
        format(string64,8,"vdt%d",listitem);
        GetPVarString(playerid,string64,string128,128);
        SendClientMessage(playerid,COR_AZUL,string128);
        if(strfind(string128,"_",true)==0)
        {
            SendClientMessage(playerid,COR_AZUL,"2");
            format(string256,22,"AC/Telemovel/%d.cfg",PlayerInfo[playerid][pNrTelemovel]);
            file_Open(string256);
            SendClientMessage(playerid,COR_AZUL,"3");
            for(new i,z=file_GetVal("maxsms");i<z;++i)
            {
                SendClientMessage(playerid,COR_AZUL,"4");
                format(string64,8,"msgr%d",i);
                if(!file_IsKey(string64)) continue;
                format(string256,128,"%s",file_GetStr(string64));
                SendClientMessage(playerid,COR_AZUL,string128);
                SendClientMessage(playerid,COR_AZUL,string256);
                if(!strcmp(string128,string256,true))//crah when execute this line
                {
                    SendClientMessage(playerid,COR_AZUL,"6");
                    strdel(string256,0,1);
                    file_SetStr(string64,string256);
                    break;
                }
            }
            SendClientMessage(playerid,COR_AZUL,"7");
            format(string256,22,"AC/Telemovel/%d.cfg",PlayerInfo[playerid][pNrTelemovel]);
            file_Save(string256);
            file_Close();
            strdel(string128,0,1);
        }
        ShowPlayerDialog(playerid,DIALOG_SMS+5,DIALOG_STYLE_MSGBOX,"SMS Recebidos",string128,"Sair","Voltar");
    }
i use SendClientMessage as a guide
well, now in crashinfo

Code:
--------------------------

SA-MP Server: 0.3e



Exception At Address: 0x76C552D9 Module: (USER32.dll)



Registers:

EAX: 0xFFFFFFE9	EBX: 0x00000001	ECX: 0x00000001	EDX: 0xFFFFFFEA

ESI: 0xFFFFFFE9	EDI: 0x00000020	EBP: 0x0012F4A8	ESP: 0x0012F4A0

EFLAGS: 0x00010286



Stack:

+0000: 0x0000000C   0x00000001   0x00000000   0x004061E4

+0010: 0xFFFFFFE9   0x004064FE   0x00000001   0x04ACFD60

+0020: 0x00000027   0x045C986C   0x004065C5   0x047574B8

+0030: 0x047576B8   0x00000027   0x00000000   0x04574C50

+0040: 0x01C81620   0x01C81620   0x047574B8   0x00000027

+0050: 0x00000027   0x004010B6   0x01C81620   0x047576B8

+0060: 0x047565B0   0x00402B63   0x01C81620   0x00000030

+0070: 0x0012F528   0x04ACFD60   0x0012F81C   0x01C81620

+0080: 0x00000005   0x00000005   0x00000001   0x003797B4

+0090: 0x003797B0   0x00379D68   0x00375DA4   0x00379D48

+00A0: 0x00375DA4   0x04574C50   0x047565B0   0x00000000

+00B0: 0x04570020   0x001E1960   0x0046DE21   0x01C81620

+00C0: 0x0012F5A8   0x000000EF   0x01C81620   0x00000005

+00D0: 0x01C81620   0x000008EC   0x01C81620   0x00000001

+00E0: 0x01C81620   0x00000000   0x01C81620   0x0012F5C4

+00F0: 0x0012F5AC   0x0012F700   0x04ACC31C   0x00000000

+0100: 0x0012F801   0x01C81620   0x00000000   0x04ACC31C

+0110: 0x0048C326   0x000000EF   0x000008EC   0x00000001

+0120: 0x00000000   0x00375D6C   0x0012F828   0x01D1C318

+0130: 0x01000001   0x77C464AF   0x010DF72C   0x00000000



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



Loaded Modules:

samp-server.exe	A: 0x00400000 - 0x004EE000	(C:\Users\BERNARDO\Desktop\A Casa RolePlay\samp-server.exe)

ntdll.dll	A: 0x77BE0000 - 0x77D08000	(C:\Windows\system32\ntdll.dll)

kernel32.dll	A: 0x76760000 - 0x7683C000	(C:\Windows\system32\kernel32.dll)

snxhk.dll	A: 0x76130000 - 0x76167000	(C:\Program Files\Alwil Software\Avast5\snxhk.dll)

SHELL32.dll	A: 0x76F30000 - 0x77A41000	(C:\Windows\system32\SHELL32.dll)

msvcrt.dll	A: 0x76B90000 - 0x76C3A000	(C:\Windows\system32\msvcrt.dll)

GDI32.dll	A: 0x76CE0000 - 0x76D2B000	(C:\Windows\system32\GDI32.dll)

USER32.dll	A: 0x76C40000 - 0x76CDD000	(C:\Windows\system32\USER32.dll)

ADVAPI32.dll	A: 0x76610000 - 0x766D6000	(C:\Windows\system32\ADVAPI32.dll)

RPCRT4.dll	A: 0x769A0000 - 0x76A63000	(C:\Windows\system32\RPCRT4.dll)

SHLWAPI.dll	A: 0x77D50000 - 0x77DA9000	(C:\Windows\system32\SHLWAPI.dll)

WSOCK32.dll	A: 0x70C60000 - 0x70C67000	(C:\Windows\system32\WSOCK32.dll)

WS2_32.dll	A: 0x77D20000 - 0x77D4D000	(C:\Windows\system32\WS2_32.dll)

NSI.dll	A: 0x77D10000 - 0x77D16000	(C:\Windows\system32\NSI.dll)

WINMM.dll	A: 0x740D0000 - 0x74102000	(C:\Windows\system32\WINMM.dll)

OLEAUT32.dll	A: 0x77DB0000 - 0x77E3D000	(C:\Windows\system32\OLEAUT32.dll)

OLEACC.dll	A: 0x74090000 - 0x740CE000	(C:\Windows\system32\OLEACC.dll)

IMM32.DLL	A: 0x762A0000 - 0x762BE000	(C:\Windows\system32\IMM32.DLL)

MSCTF.dll	A: 0x76840000 - 0x76908000	(C:\Windows\system32\MSCTF.dll)

LPK.DLL	A: 0x76480000 - 0x76489000	(C:\Windows\system32\LPK.DLL)

USP10.dll	A: 0x766E0000 - 0x7675D000	(C:\Windows\system32\USP10.dll)

comctl32.dll	A: 0x75040000 - 0x751DE000	(C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6002.18305_none_5cb72f2a088b0ed3\comctl32.dll)

LVPrcInj.dll	A: 0x001F0000 - 0x00207000	(C:\Program Files\Common Files\Logishrd\LVMVFM\LVPrcInj.dll)

streamer.dll	A: 0x6C9B0000 - 0x6C9EB000	(C:\Users\BERNARDO\Desktop\A Casa RolePlay\plugins\streamer.dll)

MSVCP90.dll	A: 0x70C70000 - 0x70CFE000	(C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30304.0_none_d9c474bda3593bfa\MSVCP90.dll)

MSVCR90.dll	A: 0x70E60000 - 0x70F03000	(C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30304.0_none_d9c474bda3593bfa\MSVCR90.dll)

directory.dll	A: 0x6FE80000 - 0x6FE98000	(C:\Users\BERNARDO\Desktop\A Casa RolePlay\plugins\directory.dll)

mswsock.dll	A: 0x75860000 - 0x7589B000	(C:\Windows\system32\mswsock.dll)

wshtcpip.dll	A: 0x754D0000 - 0x754D5000	(C:\Windows\System32\wshtcpip.dll)

NLAapi.dll	A: 0x73B70000 - 0x73B7F000	(C:\Windows\system32\NLAapi.dll)

IPHLPAPI.DLL	A: 0x75AF0000 - 0x75B09000	(C:\Windows\system32\IPHLPAPI.DLL)

dhcpcsvc.DLL	A: 0x75AB0000 - 0x75AE5000	(C:\Windows\system32\dhcpcsvc.DLL)

DNSAPI.dll	A: 0x76040000 - 0x7606C000	(C:\Windows\system32\DNSAPI.dll)

Secur32.dll	A: 0x760F0000 - 0x76104000	(C:\Windows\system32\Secur32.dll)

WINNSI.DLL	A: 0x75AA0000 - 0x75AA7000	(C:\Windows\system32\WINNSI.DLL)

dhcpcsvc6.DLL	A: 0x75A70000 - 0x75A92000	(C:\Windows\system32\dhcpcsvc6.DLL)

napinsp.dll	A: 0x74EC0000 - 0x74ECF000	(C:\Windows\system32\napinsp.dll)

pnrpnsp.dll	A: 0x74AD0000 - 0x74AE2000	(C:\Windows\system32\pnrpnsp.dll)

winrnr.dll	A: 0x74EB0000 - 0x74EB8000	(C:\Windows\System32\winrnr.dll)

WLDAP32.dll	A: 0x765B0000 - 0x765F9000	(C:\Windows\system32\WLDAP32.dll)

PSAPI.DLL	A: 0x76290000 - 0x76297000	(C:\Windows\system32\PSAPI.DLL)

rasadhlp.dll	A: 0x6EB00000 - 0x6EB06000	(C:\Windows\system32\rasadhlp.dll)

uxtheme.dll	A: 0x74F60000 - 0x74F9F000	(C:\Windows\system32\uxtheme.dll)

rpchrome150browserrecordhelper.dll	A: 0x6E960000 - 0x6E969000	(C:\ProgramData\Real\RealPlayer\BrowserRecordPlugin\Chrome\Hook\rpchrome150browserrecordhelper.dll)

FRAPS32.DLL	A: 0x63570000 - 0x635AF000	(C:\Fraps\FRAPS32.DLL)

RocketDock.dll	A: 0x10000000 - 0x1000E000	(C:\Program Files\RocketDock\RocketDock.dll)

oehook.dll	A: 0x01AD0000 - 0x01AE9000	(C:\Program Files\IDM\Desktop SMS\oehook.dll)

PROPSYS.dll	A: 0x73C90000 - 0x73D4B000	(C:\Windows\system32\PROPSYS.dll)

apphelp.dll	A: 0x76010000 - 0x7603C000	(C:\Windows\system32\apphelp.dll)

CLBCatQ.DLL	A: 0x76910000 - 0x76994000	(C:\Windows\system32\CLBCatQ.DLL)

iertutil.dll	A: 0x762C0000 - 0x76478000	(C:\Windows\system32\iertutil.dll)

urlmon.dll	A: 0x76490000 - 0x765A1000	(C:\Windows\system32\urlmon.dll)

WININET.dll	A: 0x76A70000 - 0x76B8B000	(C:\Windows\system32\WININET.dll)

Normaliz.dll	A: 0x76600000 - 0x76603000	(C:\Windows\system32\Normaliz.dll)

SETUPAPI.dll	A: 0x77A50000 - 0x77BDA000	(C:\Windows\system32\SETUPAPI.dll)
what is this? i use this code in other parts and no crash and i try with strfind but never. crash again!
do you help me?

the problem is in "string128"
i can't use with this form. need introduce a format and work

type
pawn Code:
GetPVarString(playerid,string64,string128,128);
format(string128,128,"%s",string128);
__________________

Last edited by dugi; 22/06/2012 at 02:02 PM.
DartakousLien is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Server Crash myandyou Scripting Help 4 28/12/2011 02:27 PM
Fatal Game crash, Not client or server crash SourceCode Scripting Help 3 11/10/2011 05:13 PM
The problem server crash (server down), Help Please. alynutzj2p Server Support 4 23/06/2011 06:13 PM
Server Owner: I got server crash. FelipekxD Server Support 3 05/07/2010 04:02 PM


All times are GMT. The time now is 12:33 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.