Page 1 of 1

/who is crashing MQ

Posted: Wed May 07, 2003 3:25 am
by Amadeus
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.

Posted: Wed May 07, 2003 8:21 am
by Valerian
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 :?

Posted: Wed May 07, 2003 5:44 pm
by DF19
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.

Posted: Wed May 07, 2003 5:55 pm
by dont_know_at_all
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.

Posted: Wed May 07, 2003 7:07 pm
by Clawed
Confirming that /who is indeed crashing unexpectedly. Will work on more debug info later.

Debug

Posted: Thu May 08, 2003 9:52 pm
by renagade8
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

Posted: Thu May 08, 2003 10:20 pm
by dont_know_at_all
vs6 or vs7?

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

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

Posted: Fri May 09, 2003 12:43 am
by vzmule
I run it for hours everyday and have not crashed once. I'm using .net to compile.

Posted: Fri May 09, 2003 2:02 am
by renagade8
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.

Posted: Fri May 09, 2003 8:41 am
by Valerian
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*