Server Crash RANDOMLY [Exception At Address: 0x1000424A]
#1

Hello,
I was using command that shows a textdraw (I used it like 3 times in a row) and then server crashed without any reason.. Textdraws are proper, everything works, until it randomly crashes.
Quote:

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

SA-MP Server: 0.3c



Exception At Address: 0x1000424A



Registers:

EAX: 0x00000000 EBX: 0x03101DA4 ECX: 0x0012FCF0 EDX: 0x00000000

ESI: 0x006FCC10 EDI: 0x006FCC10 EBP: 0x0012FCDC ESP: 0x0012FCAC

EFLAGS: 0x00010202



Stack:

+0000: 0x006FCC10 0x0012FCEC 0x006FCC10 0x03101DA4

+0010: 0x0012FD2F 0x7FFFFFBF 0x0012FCF0 0x00000042

+0020: 0x01520DB8 0x00000005 0x031A2EA0 0x00000000

+0030: 0x0012FD80 0x1000770F 0x00000000 0x0012FCF0

+0040: 0x00000004 0x636E7546 0x6E6F6974 0x796D203A

+0050: 0x5F6C7173 0x72657571 0x61632079 0x64656C6C

+0060: 0x65687720 0x6F6E206E 0x6F632074 0x63656E6E

+0070: 0x20646574 0x61206F74 0x6420796E 0x62617461

+0080: 0x00657361 0x00000FC1 0x00484054 0x004F428E

+0090: 0x00000FFF 0x00000000 0x006FCC10 0x031CA0A4

+00A0: 0x0012FD64 0x006FCC10 0x031CA0A4 0x006FCC10

+00B0: 0x031CA0A4 0x00486661 0x031CA0BC 0x004F4250

+00C0: 0x00000000 0x3F20CB73 0x00000000 0x006FCC10

+00D0: 0x006FCC10 0x031059A4 0x00401096 0x006FCC10

+00E0: 0x031CA0A8 0x03149570 0x00402BB3 0x006FCC10

+00F0: 0x0000002C 0x0012FDB8 0x031CA0A8 0x02C81948

+0100: 0x00000001 0x00000001 0x006FCC10 0x00000001

+0110: 0x0007CF68 0x00080B38 0x00080F5C 0x0007CF60

+0120: 0x00080F4C 0x0007CF60 0x03101DA4 0x03149570

+0130: 0x00000000 0x03100020 0x000477CC 0x00490BAA
Reply
#2

No crashes are "random".
Show me the textdraw script please.
Reply
#3

Quote:
Originally Posted by Code_Red
View Post
No crashes are "random".
Show me the textdraw script please.
pawn Code:
dcmd_showevents(playerid,params[])
{
    new Time;
    if(GetPVarInt(playerid,"AdminLvl") < 2) return NotA(playerid);
    else if(sscanf(params, "i", Time)) UsageMsg(playerid,"Usage: /ShowEvents (to all players) <Time(sec)>");
    else
    {
        if(Time <= 0)
        {
            foreach(Player,i)
            {
                TextDrawHideForPlayer(i,EventTiteTD);
                TextDrawHideForPlayer(i,Events1TD);
                TextDrawHideForPlayer(i,Events2TD);
                TextDrawHideForPlayer(i,Events3TD);
                TextDrawHideForPlayer(i,EventCurrentTD);
                TextDrawHideForPlayer(i,EventTimeTD);
            }
        }
        else
        {
            new h,m;
            gettime(h,m);
            h = h + TIME_OFFSET;
            new timestr[30];
            format(timestr,30,"Current Time: ~g~ %i:%02i",h,m);
            TextDrawSetString(EventTimeTD,timestr);
            foreach(Player,i)
            {
                TextDrawShowForPlayer(i,EventTiteTD);
                TextDrawShowForPlayer(i,Events1TD);
                TextDrawShowForPlayer(i,Events2TD);
                TextDrawShowForPlayer(i,Events3TD);
                TextDrawShowForPlayer(i,EventCurrentTD);
                TextDrawShowForPlayer(i,EventTimeTD);
            }
            SetTimerEx("HideEventList",Time*1000,0,"d",-1);
        }

    }
    return 1;
}

forward HideEventList(pid);
public HideEventList(pid)
{
    if(pid == -1)
    {
        foreach(Player,i)
        {
            TextDrawHideForPlayer(i,EventTiteTD);
            TextDrawHideForPlayer(i,Events1TD);
            TextDrawHideForPlayer(i,Events2TD);
            TextDrawHideForPlayer(i,Events3TD);
            TextDrawHideForPlayer(i,EventCurrentTD);
            TextDrawHideForPlayer(i,EventTimeTD);
        }
    }
}
As I said this works.. It just crashed after ~5 times I used it..
Reply
#4

It's crashing in a plugin.
Reply
#5

is it possible that Sscanf2 plugin is crashing it?
That is the most recent plugin I started using, before that, I don't remember any crashes happening..
Reply
#6

Quote:
Originally Posted by *IsBack
View Post
is it possible that Sscanf2 plugin is crashing it?
That is the most recent plugin I started using, before that, I don't remember any crashes happening..
Could be. Try without it.
Reply
#7

Quote:
Originally Posted by Kaylux
View Post
Could be. Try without it.
EDIT: Found out that MySQL plugin was crashing it (due to "Lost connection to MySQL server during query" error)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)