Random CTD

A forum for reporting bugs NOT related to custom plugins.

Moderator: MacroQuest Developers

cronic
a grimling bloodguard
a grimling bloodguard
Posts: 536
Joined: Wed Nov 26, 2003 11:01 pm

Random CTD

Post by cronic » Mon Nov 21, 2005 3:44 pm

This happens off and on when I'm zoning into the world. I'm thinking that this may have something to do with the fact that I compile with the 2005 beta? Here's the windbg output:

Code: Select all

[MQ2]EventBlechCallback(5,1AC9058,1AB89B8) msg='You have entered Oggok.'
(220.968): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
eax=11ae3ee8 ebx=0307a4d5 ecx=7ffffffe edx=0012d773 esi=00000000 edi=11ae3ee8
eip=03055488 esp=0012cc60 ebp=0012ccec iopl=0         nv up ei pl nz na pe nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00010202
MQ2Main!_output_l+0x7dd:
03055488 803800           cmp     byte ptr [eax],0x0      ds:0023:11ae3ee8=??
0:000> .sympath SRV*c:\winnt\symbols*http://msdl.microsoft.com/download/symbols
Symbol search path is: SRV*c:\winnt\symbols*http://msdl.microsoft.com/download/symbols
0:000> r
eax=11ae3ee8 ebx=0307a4d5 ecx=7ffffffe edx=0012d773 esi=00000000 edi=11ae3ee8
eip=03055488 esp=0012cc60 ebp=0012ccec iopl=0         nv up ei pl nz na pe nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00010202
MQ2Main!_output_l+0x7dd:
03055488 803800           cmp     byte ptr [eax],0x0      ds:0023:11ae3ee8=??
0:000> kv
ChildEBP RetAddr  Args to Child              
0012cee4 0304b36d 0012cf04 0307a4d0 00000000 MQ2Main!_output_l+0x7dd (FPO: [Non-Fpo]) (CONV: cdecl) [f:\beta2\vctools\crt_bld\self_x86\crt\src\output.c @ 1640]
0012cf24 0303357c 0012d778 0307a4d0 0095f654 MQ2Main!sprintf+0x58 (FPO: [Non-Fpo]) (CONV: cdecl) [f:\beta2\vctools\crt_bld\self_x86\crt\src\sprintf.c @ 130]
0012df74 0303398d 00000000 00000000 00000000 MQ2Main!Pulse+0x38c (FPO: [Non-Fpo]) (CONV: cdecl) [c:\mq1028\mq2main\mq2pulse.cpp @ 185]
0012df84 03033af5 004ad029 00000107 00000108 MQ2Main!Heartbeat+0x10d (FPO: [Non-Fpo]) (CONV: cdecl) [c:\mq1028\mq2main\mq2pulse.cpp @ 307]
*** WARNING: Unable to verify checksum for c:\program files\sony\everquest\eqgame.exe
*** ERROR: Module load completed but symbols could not be loaded for c:\program files\sony\everquest\eqgame.exe
0012df88 004ad029 00000107 00000108 00000106 MQ2Main!Detour_ProcessGameEvents+0x5 (FPO: [Non-Fpo]) (CONV: cdecl) [c:\mq1028\mq2main\mq2pulse.cpp @ 351]
WARNING: Stack unwind information not available. Following frames may be wrong.
00907ca0 00000000 00000000 00000001 1099fdd0 eqgame+0xad029
DKAA! Help :(

cronic

SwiftyMUSE
Developer
Developer
Posts: 1205
Joined: Tue Sep 23, 2003 10:52 pm

Post by SwiftyMUSE » Mon Nov 21, 2005 4:17 pm

Cronic,

Take a look at the code i posted in http://www.macroquest2.com/phpBB2/viewtopic.php?t=12383.

See if that helps, however I know its not a complete fix yet.

cronic
a grimling bloodguard
a grimling bloodguard
Posts: 536
Joined: Wed Nov 26, 2003 11:01 pm

Post by cronic » Mon Nov 21, 2005 4:25 pm

rswiders wrote:Cronic,

Take a look at the code i posted in http://www.macroquest2.com/phpBB2/viewtopic.php?t=12383.

See if that helps, however I know its not a complete fix yet.
I saw that after I posted. Here's what I did:

Code: Select all

if ([color=red]false/*[/color]gbDoAutoRun && pChar && pChar->pCharInfo[color=red]*/[/color]) {
        gbDoAutoRun = FALSE;
        CHAR szServerAndName[MAX_STRING] = {0};
        CHAR szAutoRun[MAX_STRING] = {0};
        PCHAR pAutoRun = szAutoRun;
        sprintf(szServerAndName,"%s.%s",EQADDR_SERVERNAME,pChar->pCharInfo->Name);
        GetPrivateProfileString("AutoRun",szServerAndName,"",szAutoRun,MAX_STRING,gszINIFilename);
        while (pAutoRun[0]==' ' || pAutoRun[0]=='\t') pAutoRun++;
        if (szAutoRun[0]!=0) DoCommand(pChar,pAutoRun);
    }
So far, so good! =P

cronic

SwiftyMUSE
Developer
Developer
Posts: 1205
Joined: Tue Sep 23, 2003 10:52 pm

Post by SwiftyMUSE » Mon Nov 21, 2005 4:40 pm

That will work but disables the autorun feature. If you don't use it, you should not notice any difference except the lack of crashes on switching toons.

dark2phoenix
a hill giant
a hill giant
Posts: 218
Joined: Wed Dec 22, 2004 9:42 am

Post by dark2phoenix » Mon Nov 21, 2005 5:39 pm

I've got that problem, couldn't figure out if it was MQ2 or EQ. So I can make a decision, what does the AutoRun feature do?
Perma-noob