/who is crashing MQ

A forum for feature requests/discussions and user submitted patches that improve MQ2

Moderator: MacroQuest Developers

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

/who is crashing MQ

Post by Amadeus » Wed May 07, 2003 3:25 am

Just to let you guys know that /who is suddenly crashing MQ for me on a VERY random basis. Things will work great for hours then suddenly, I'll do a /who and it will crash HARD and FAST.

Just a FYI....probalby something a little off on the structure I'd imagine.

Valerian
a grimling bloodguard
a grimling bloodguard
Posts: 709
Joined: Sun Jul 28, 2002 3:29 am

Post by Valerian » Wed May 07, 2003 8:21 am

I've noticed this too, and it seems very random. haven't found a hard dup for it yet, may be hard to track down :?

DF19
orc pawn
orc pawn
Posts: 17
Joined: Mon Apr 07, 2003 11:48 pm

Post by DF19 » Wed May 07, 2003 5:44 pm

yeah, /who works most of the time, but sometimes it completely crashes (no error/warning, the game just disappears and goes to the desktop).
I just dont use the /who command unless absolutely neccessary, but if I want to know who someone specifically is (in the same zone as me), target them and do a /whotarget. that always seems to work.

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 » Wed May 07, 2003 5:55 pm

How to debug crash:

1. Get windbg from Microsoft (http://www.microsoft.com/whdc/ddk/debug ... fault.mspx) and install it.
2. Make sure that eqlib.pdb is in the same directory as eqlib.dll and macroquest.exe
3. Start the game and proceed till you are actually playing. Use windowed mode. (Alt-Enter).
4. Start windbg -Q.
5. Press F6 to attach to a process. Choose eqgame.exe
6. When it attaches, immediately press F5 (go). If you don't, the game is stopped and no packets are going out. This will cause you to be disconnected.
7. Go back to playing. Eventually, the game will hang (instead of crash to the desktop).
8. Go to windbg and press Alt-6. This should open the callstack. On the stack, there should be a eqlib entry with the filename (eqlib.cpp) and the line number.
9. Copy this stack information here and i'll have a look at it.

Clawed
a ghoul
a ghoul
Posts: 105
Joined: Mon Jan 20, 2003 6:17 am

Post by Clawed » Wed May 07, 2003 7:07 pm

Confirming that /who is indeed crashing unexpectedly. Will work on more debug info later.
Clawed

renagade8
orc pawn
orc pawn
Posts: 28
Joined: Sat Oct 19, 2002 9:17 pm

Debug

Post by renagade8 » Thu May 08, 2003 9:52 pm

0012a798 00d12e36 EQlib!SuperWhoDisplay+0x4f4 [g:\macroquest\eqlib\eqlib.cpp @ 10096]
0012c020 00ce77f7 EQlib!SuperWho+0x4b6 [g:\macroquest\eqlib\eqlib.cpp @ 10252]
0012d88c 0041513a EQlib!CCommandhook::Detour+0x367 [g:\macroquest\eqlib\eqlib.cpp @ 930]
WARNING: Stack unwind information not available. Following frames may be wrong.
0012de10 005406a3 eqgame+0x1513a
0000001c 00000000 eqgame+0x1406a3

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 » Thu May 08, 2003 10:20 pm

vs6 or vs7?

when was the last time you got the source from cvs?

Maybe you could post your line 10096 from eqlib.cpp...

User avatar
vzmule
Contributing Member
Contributing Member
Posts: 378
Joined: Thu Mar 13, 2003 11:56 pm

Post by vzmule » Fri May 09, 2003 12:43 am

I run it for hours everyday and have not crashed once. I'm using .net to compile.

renagade8
orc pawn
orc pawn
Posts: 28
Joined: Sat Oct 19, 2002 9:17 pm

Post by renagade8 » Fri May 09, 2003 2:02 am

im using VS6

line 10096 is:
if (pSpawn->Linkdead) strcat(szMsg," <LD>");

it is really strange that this happens beacuse /who works great for awhile then suddenly crashes.

Valerian
a grimling bloodguard
a grimling bloodguard
Posts: 709
Joined: Sun Jul 28, 2002 3:29 am

Post by Valerian » Fri May 09, 2003 8:41 am

I use VS7 now, and have seen this crash, very rarely. (once since compiling in VS7)

I also had a CTD on /gu once, no clue how that came about *shrug*