Crash Bug #2

A forum for reporting bugs NOT related to custom plugins.

Moderator: MacroQuest Developers

Amadeus
The Maestro
The Maestro
Posts: 2036
Joined: Sat Jun 29, 2002 3:51 pm

Crash Bug #2

Post by Amadeus » Sat May 08, 2004 9:43 pm

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.

Amadeus
The Maestro
The Maestro
Posts: 2036
Joined: Sat Jun 29, 2002 3:51 pm

Post by Amadeus » Sat May 08, 2004 9:46 pm

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.

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Sun May 09, 2004 12:42 am

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..
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

Amadeus
The Maestro
The Maestro
Posts: 2036
Joined: Sat Jun 29, 2002 3:51 pm

Post by Amadeus » Sun May 09, 2004 2:34 am

hey, dkaa ..how do I get a call stack on windbg?

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Sun May 09, 2004 4:29 am

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.

Amadeus
The Maestro
The Maestro
Posts: 2036
Joined: Sat Jun 29, 2002 3:51 pm

Post by Amadeus » Sun May 09, 2004 11:50 am

I also just found a nice 'compiled html' help file thing for the debugger in the windbg install directory.

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Sun May 09, 2004 12:25 pm

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).

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Sun May 09, 2004 12:48 pm

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.

Amadeus
The Maestro
The Maestro
Posts: 2036
Joined: Sat Jun 29, 2002 3:51 pm

Post by Amadeus » Sun May 09, 2004 4:43 pm

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]

n00bie
orc pawn
orc pawn
Posts: 26
Joined: Sun Feb 29, 2004 3:21 pm

Post by n00bie » Sun May 09, 2004 4:56 pm

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.

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Sun May 09, 2004 8:01 pm

I have a guess as to what the problem is, a potential fix will be in dev cvs momentarily.
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0