Page 1 of 1

Crash Bug #2

Posted: Sat May 08, 2004 9:43 pm
by Amadeus
This has happened to me a lot since the past few days. I just randomly freeze or crash.....and I finally got it on the debugger:

Code: Select all

[MQ2]CChatHook::Detour(Your Black Chain Bridle begins to glow.)
(4e4.718): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
eax=18b079d8 ebx=2be5f758 ecx=00000000 edx=1015c8d8 esi=03d08cb0 edi=196890c0
eip=10033be4 esp=0012dd8c ebp=00f178c8 iopl=0         nv up ei pl nz na po nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00010206
*** WARNING: Unable to verify checksum for C:\games\EverQuest\EQGraphicsDX9.DLL
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for C:\games\EverQuest\EQGraphicsDX9.DLL - 
EQGraphicsDX9!ReleaseGraphicsEngine+0x292e4:
10033be4 8b01             mov     eax,[ecx]         ds:0023:00000000=????????


0:000> ln
(1000a900)   EQGraphicsDX9!ReleaseGraphicsEngine+0x292e4   |  (1000a900)   EQGraphicsDX9!ReleaseGraphicsEngine



0:000> u
EQGraphicsDX9!ReleaseGraphicsEngine+0x292e4:
10033be4 8b01             mov     eax,[ecx]
10033be6 d95c2448         fstp    dword ptr [esp+0x48]
10033bea ff10             call    dword ptr [eax]
10033bec 80780548         cmp     byte ptr [eax+0x5],0x48
10033bf0 7531      jnz EQGraphicsDX9!ReleaseGraphicsEngine+0x29323 (10033c23)
10033bf2 80384f           cmp     byte ptr [eax],0x4f
10033bf5 7518      jnz EQGraphicsDX9!ReleaseGraphicsEngine+0x2930f (10033c0f)
10033bf7 80780147         cmp     byte ptr [eax+0x1],0x47

Note, this DEFINATELY only occurs when running MQ2 ...I am not running any custom code or plugins.

Posted: Sat May 08, 2004 9:46 pm
by Amadeus
you know, now that I think about it ....I might have been either on a horse or in an illusion form for all of these crashes ...if that helps.

Posted: Sun May 09, 2004 12:42 am
by Lax
no call stack! :(

But.. there's only one place I see the function being called (and it's actually on shutdown of everquest) so I'll try to find the root of the problem..

Posted: Sun May 09, 2004 2:34 am
by Amadeus
hey, dkaa ..how do I get a call stack on windbg?

Posted: Sun May 09, 2004 4:29 am
by dont_know_at_all
kv

1. Build MQ2 with /Zi option (this is the default).
2. Make sure that the PDB files created have the same date as DLLs
3. Download windbg (http://www.microsoft.com/whdc/ddk/debug ... fault.mspx) and install it
4. Make sure that the PDB files are in the same directory as where you start MQ.
5. Start MQ, EQ, and windbg. (eqw will work too)
6. On windbg, press F6 and choose eqgame.exe. Once it has broken in, press F5 to continue. On a slow machine this may make you go LD so it is best to do it at the login prompt or char select.
7. In EQ, take the steps that normally crash.
8. When the debugger breaks in, goto to the command window of windbg
9. Enter the command 'r' for registers.
10. Enter the command 'kv' for stack backtrace.

Posted: Sun May 09, 2004 11:50 am
by Amadeus
I also just found a nice 'compiled html' help file thing for the debugger in the windbg install directory.

Posted: Sun May 09, 2004 12:25 pm
by Mckorr
Instant crash on Summon Horse. Definately an MQ crash, no problems without MQ.

Might be tied into a change in movement rate, since I get a similar effect with my custom plugin and no horse (just takes a bit longer).

Posted: Sun May 09, 2004 12:48 pm
by Mckorr
Can also confirm that it is only in the current CVS. Compiled the latest zip and no problem.

Can't get a call stack for some reason, sorry about that.

Posted: Sun May 09, 2004 4:43 pm
by Amadeus
same as Mckorr ...crash on horse summon.

This is the info I get with 'kv', dkaa. Not sure why it's giving me a warning....

Code: Select all

eax=18cfe5d8 ebx=2b5d89d0 ecx=00000000 edx=1015c8d8 esi=0ca48d88 edi=2b74ab20
eip=10033be4 esp=0012dd8c ebp=00f178e8 iopl=0         nv up ei pl nz na po nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00010206
*** WARNING: Unable to verify checksum for C:\games\EverQuest\EQGraphicsDX9.DLL
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for C:\games\EverQuest\EQGraphicsDX9.DLL - 
EQGraphicsDX9!ReleaseGraphicsEngine+0x292e4:
10033be4 8b01             mov     eax,[ecx]         ds:0023:00000000=????????
[b]0:000> kv
ChildEBP RetAddr  Args to Child              
WARNING: Stack unwind information not available. Following frames may be wrong.
00f178e8 00eb9660 00fe0160 2be3fbf8 2bd622b0 EQGraphicsDX9!ReleaseGraphicsEngine+0x292e4
00f17968 00fee2c0 00f178e8 00000000 00030011 0xeb9660
1015ae00 10008f70 3f99999a 3dcccccd 43700000 0xfee2c0
10007800 00000018 082444f6 56097401 13babee8 EQGraphicsDX9+0x8f70[/b]

Posted: Sun May 09, 2004 4:56 pm
by n00bie
It's not a movement rate thing, since I've been with SoW or those type spells, but I just crashed while someone else was summoning a horse. I tried removing the caption for mounts, but that didn't help it.

Posted: Sun May 09, 2004 8:01 pm
by Lax
I have a guess as to what the problem is, a potential fix will be in dev cvs momentarily.