A forum for the general posts relating to MacroQuest. *DEPRECATED: This forum is no longer in public use, but remains here for your reading pleasure. Enjoy
Moderator: MacroQuest Developers
-
vzmule
- Contributing Member

- Posts: 378
- Joined: Thu Mar 13, 2003 11:56 pm
Post
by vzmule » Mon Nov 10, 2003 5:57 pm
K Lax, it's approx 6pm EST on Monday night. I just grabbed the current source after your new cvs'd changes, uncommented the stack debug in eqlib.h and built it as a release build with no errors.
Started mq, started eq, got in game, typed /who and CTD. Checked the logs folder, nada, no stack spew.
I then loaded WinDBG and broke into eqgame.exe, loaded up a character and got the following just doing a /target.
Code: Select all
(160.604): Break instruction exception - code 80000003 (first chance)
eax=7ffdf000 ebx=00000001 ecx=00000002 edx=00000003 esi=00000004 edi=00000005
eip=77f767cd esp=0214ffcc ebp=0214fff4 iopl=0 nv up ei pl zr na po nc
cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000 efl=00000246
*** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\WINDOWS\System32\ntdll.dll -
ntdll!DbgBreakPoint:
77f767cd cc int 3
0:014> g
(160.6cc): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
eax=00000000 ebx=00000000 ecx=00136700 edx=0013dd0c esi=00133e68 edi=00000000
eip=004d8866 esp=0013b7f4 ebp=0013dd04 iopl=0 nv up ei pl nz na pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00010202
*** WARNING: Unable to verify checksum for C:\Program Files\Sony\EverQuest Trilogy\eqgame.exe
*** ERROR: Module load completed but symbols could not be loaded for C:\Program Files\Sony\EverQuest Trilogy\eqgame.exe
eqgame+0xd8866:
004d8866 ff90f8000000 call dword ptr [eax+0xf8] ds:0023:000000f8=????????
0:000> r
eax=00000000 ebx=00000000 ecx=00136700 edx=0013dd0c esi=00133e68 edi=00000000
eip=004d8866 esp=0013b7f4 ebp=0013dd04 iopl=0 nv up ei pl nz na pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00010202
eqgame+0xd8866:
004d8866 ?? ???
0:000> kv
ChildEBP RetAddr Args to Child
WARNING: Stack unwind information not available. Following frames may be wrong.
0013b7f0 00000000 00000000 00000000 00000000 eqgame+0xd8866
Looks like I have to use my version for now.

-
dont_know_at_all
- Developer

- Posts: 5450
- Joined: Sun Dec 01, 2002 4:15 am
- Location: Florida, USA
-
Contact:
Post
by dont_know_at_all » Mon Nov 10, 2003 6:00 pm
if you still have it up in the debugger, do
u eip-50 eip+1
and post the output.
-
vzmule
- Contributing Member

- Posts: 378
- Joined: Thu Mar 13, 2003 11:56 pm
Post
by vzmule » Mon Nov 10, 2003 6:06 pm
Code: Select all
0:000> u eip-50 eip+1
eqgame+0xd8816:
004d8816 ?? ???
^ Memory access error in 'u eip-50 eip+1'
-
Lax
- We're not worthy!

- Posts: 3524
- Joined: Thu Oct 17, 2002 1:01 pm
- Location: ISBoxer
-
Contact:
Post
by Lax » Mon Nov 10, 2003 6:53 pm
Did you get any stack corruption lines in the debug spew? That's what I'm looking for. Your crash did advance to calling the main chat input window's text instead of getting its vftable though

-
vzmule
- Contributing Member

- Posts: 378
- Joined: Thu Mar 13, 2003 11:56 pm
Post
by vzmule » Mon Nov 10, 2003 7:24 pm
There was no spew in the Logs folder at all if that's what you mean. I uncommented the stack debug in eqlib.h and enabled the spew to file in macroquest.ini.
-
Vaft
- a lesser mummy

- Posts: 69
- Joined: Fri Mar 07, 2003 6:39 am
Post
by Vaft » Mon Nov 10, 2003 7:39 pm
source, have you added anything of your own in eqlib_custom.cpp ?
-
vzmule
- Contributing Member

- Posts: 378
- Joined: Thu Mar 13, 2003 11:56 pm
Post
by vzmule » Mon Nov 10, 2003 8:01 pm
Nope. This version that is CTDing is the current zip with no changes except mqext removed from the solution, then built with .net as a release build.
I have my own version of mq pre-mqchat window that works fine, I'm just trying to help track down whats up with the current version.
-
dont_know_at_all
- Developer

- Posts: 5450
- Joined: Sun Dec 01, 2002 4:15 am
- Location: Florida, USA
-
Contact:
Post
by dont_know_at_all » Mon Nov 10, 2003 8:12 pm
public: __thiscall CXStr::CXStr(char const *) is failing
We can see the string you dump it
dc edx
-
Lax
- We're not worthy!

- Posts: 3524
- Joined: Thu Oct 17, 2002 1:01 pm
- Location: ISBoxer
-
Contact:
Post
by Lax » Mon Nov 10, 2003 8:53 pm
dkaa, don't need to see the string, its crashing at 4d885c or 4d8866 which is after you execute a command, and the problem is in the main chat window's input window. The function it's executing is grabbing main chat window's InputWnd pointer, and calling SetWindowText on it. It's crashing because the inputwnd pointer is invalid at that point, probably from stack corruption.
If there's no debug spew output, fix the problem

Dont forget to uncomment the DBG_SPEW #define in EQLib_Utilities.cpp
-
vzmule
- Contributing Member

- Posts: 378
- Joined: Thu Mar 13, 2003 11:56 pm
Post
by vzmule » Mon Nov 10, 2003 9:30 pm
Oops, /bonk self. I did forget to uncomment the line in utilities.
However, I just did that and it's not showing any stack related spew.
Here is with DBG_STACK uncommented. Let me know if you need me to uncomment DBG_CRASHES again.
Here is the spew from the /who CTD:
Code: Select all
HookMemChecker - Patching
HookChat - Patching
HookGameEvents - Patching
HookZoning - Patching
HookLabels - Patching
Initial in-game state
Mouse and Keyboard have same GetDeviceData
Mouse and Keyboard have same GetDeviceState
Mouse and Keyboard have same Acquire
HookDInput - Patching
HookCommands - Patching
HookMapfile - Patching
HookDisplay - Patching
HookItemDisplay - Patching
HookCustomItems - Patching
TakeControlOfCommandList - Adding our commands
MQToSTML(MacroQuest is active.)
MacroQuest is active.
CChatHook::Detour(Welcome to EverQuest!)
CChatHook::Detour(You have entered The Great Divide.)
CChatHook::Detour(MESSAGE OF THE DAY: Greetings Norrath! In order to assist us with providing you better customer service, please ensure your email address is current. To update your information, go to www.station.sony.com and sign in by clicking the "My Account" link.)
CChatHook::Detour(GUILD MOTD: Bob - Send Sara Tells today if you need raid supplies.)
SuperWho - filtering
MQToSTML( )
MQToSTML(List of players)
MQToSTML(--------------------------------)
MQToSTML(w-u[x39 Wolf Druid-u]x Ohia Strongwood g*RP*x -u(x8133.75 NE-u)x)
MQToSTML(w-u[x44 Iksar Shadow Knight-u]x Chasir -u(x7079.03 NE-u)x)
MQToSTML(w-u[x48 Iksar Necromancer-u]x Ithcarr Sinistarr <Harvestor of Souls> -u(x6774.48 ENE-u)x)
SuperWhoFindPets - Spawn472 has pet Xaber00
MQToSTML( w-u[x37 Skeleton New Warrior-u]x Xaber <PET> -u(x6726.53 ENE-u)x)
MQToSTML(w-u[x54 Wood Elf Druid-u]x Tenea g*RP*x -u(x7100.89 NE-u)x)
MQToSTML(w-u[x65 Wood Elf Warrior-u]x Me <Guild> -u(x0.00 S-u)x)
MQToSTML(w-u[x60 High Elf Paladin-u]x Dalena Dreamheart <Raven Army> -u(x284.68 ENE-u)x)
MQToSTML(w-u[x63 High Elf Cleric-u]x Gavilan Elessedil g*RP*x -u(x7090.67 NE-u)x)
MQToSTML(There are g7x players in Great Divide.)
-
vzmule
- Contributing Member

- Posts: 378
- Joined: Thu Mar 13, 2003 11:56 pm
Post
by vzmule » Mon Nov 10, 2003 9:39 pm
Enabled dbg crash spew for the hell of it. Again, nothing that looks like it will help debug.
Code: Select all
-- CLabel::Draw_Detour() Entry
-- CLabel::Draw_Detour() Exit
-- Detour_ProcessGameEvents() Entry
-- Detour_ProcessGameEvents() Exit
-- CCommandHook::Detour() Entry
-- DetermineWhoFirst() Entry
-- DetermineWhoFirst() Exit
SuperWho - filtering
-- WriteChatColor() Entry
-- Chat() Entry
-- MQToSTML() Entry
MQToSTML( )
-- MQToSTML() Exit
-- CChatWindow__AddOutputText() Entry
-- CChatWindow__AddOutputText() Exit
-- Chat() Exit
-- WriteChatColor() Exit
-- WriteChatColor() Entry
-- Chat() Entry
-- MQToSTML() Entry
MQToSTML(List of players)
-- MQToSTML() Exit
-- CChatWindow__AddOutputText() Entry
-- CChatWindow__AddOutputText() Exit
-- Chat() Exit
-- WriteChatColor() Exit
-- WriteChatColor() Entry
-- Chat() Entry
-- MQToSTML() Entry
MQToSTML(--------------------------------)
-- MQToSTML() Exit
-- CChatWindow__AddOutputText() Entry
-- CChatWindow__AddOutputText() Exit
-- Chat() Exit
-- WriteChatColor() Exit
-- WriteChatColor() Entry
-- Chat() Entry
-- MQToSTML() Entry
MQToSTML(w-u[x21 Ogre Shaman-u]x Curlee Howard g*RP*x -u(x8469.90 NE-u)x)
-- MQToSTML() Exit
-- CChatWindow__AddOutputText() Entry
-- CChatWindow__AddOutputText() Exit
-- Chat() Exit
-- WriteChatColor() Exit
-- WriteChatColor() Entry
-- Chat() Entry
-- MQToSTML() Entry
MQToSTML(w-u[x44 Iksar Shadow Knight-u]x Chasir -u(x7124.31 NE-u)x)
-- MQToSTML() Exit
-- CChatWindow__AddOutputText() Entry
-- CChatWindow__AddOutputText() Exit
-- Chat() Exit
-- WriteChatColor() Exit
-- WriteChatColor() Entry
-- Chat() Entry
-- MQToSTML() Entry
MQToSTML(w-u[x48 Iksar Necromancer-u]x Ithcarr Sinistarr <Harvestor of Souls> -u(x6630.44 ENE-u)x)
-- MQToSTML() Exit
-- CChatWindow__AddOutputText() Entry
-- CChatWindow__AddOutputText() Exit
-- Chat() Exit
-- WriteChatColor() Exit
SuperWhoFindPets - Spawn472 has pet Xaber00
-- WriteChatColor() Entry
-- Chat() Entry
-- MQToSTML() Entry
MQToSTML( w-u[x37 Skeleton New Warrior-u]x Xaber <PET> -u(x6624.86 ENE-u)x)
-- MQToSTML() Exit
-- CChatWindow__AddOutputText() Entry
-- CChatWindow__AddOutputText() Exit
-- Chat() Exit
-- WriteChatColor() Exit
-- WriteChatColor() Entry
-- Chat() Entry
-- MQToSTML() Entry
MQToSTML(w-u[x51 Wood Elf Druid-u]x Spyn Puddlejumper <Capulus> g*RP*x -u(x4674.01 NNE-u)x)
-- MQToSTML() Exit
-- CChatWindow__AddOutputText() Entry
-- CChatWindow__AddOutputText() Exit
-- Chat() Exit
-- WriteChatColor() Exit
-- WriteChatColor() Entry
-- Chat() Entry
-- MQToSTML() Entry
MQToSTML(w-u[x54 Barbarian Beastlord-u]x Garrich <Capulus> -u(x4671.92 NNE-u)x)
-- MQToSTML() Exit
-- CChatWindow__AddOutputText() Entry
-- CChatWindow__AddOutputText() Exit
-- Chat() Exit
-- WriteChatColor() Exit
SuperWhoFindPets - Spawn525 has pet #Garrich`s_warder00
-- WriteChatColor() Entry
-- Chat() Entry
-- MQToSTML() Entry
MQToSTML( w-u[x41 Wolf Warrior-u]x #Garrich`s warder <PET> -u(x4689.27 NNE-u)x)
-- MQToSTML() Exit
-- CChatWindow__AddOutputText() Entry
-- CChatWindow__AddOutputText() Exit
-- Chat() Exit
-- WriteChatColor() Exit
-- WriteChatColor() Entry
-- Chat() Entry
-- MQToSTML() Entry
MQToSTML(w-u[x54 Wood Elf Druid-u]x Tenea g*RP*x -u(x7100.89 NE-u)x)
-- MQToSTML() Exit
-- CChatWindow__AddOutputText() Entry
-- CChatWindow__AddOutputText() Exit
-- Chat() Exit
-- WriteChatColor() Exit
-- WriteChatColor() Entry
-- Chat() Entry
-- MQToSTML() Entry
MQToSTML(w-u[x65 Wood Elf Warrior-u]x Me <Guild> -u(x0.00 S-u)x)
-- MQToSTML() Exit
-- CChatWindow__AddOutputText() Entry
-- CChatWindow__AddOutputText() Exit
-- Chat() Exit
-- WriteChatColor() Exit
-- WriteChatColor() Entry
-- Chat() Entry
-- MQToSTML() Entry
MQToSTML(w-u[x56 High Elf Magician-u]x Blaxstone Prestone <Honor and Justice> -u(x8957.22 NE-u)x)
-- MQToSTML() Exit
-- CChatWindow__AddOutputText() Entry
-- CChatWindow__AddOutputText() Exit
-- Chat() Exit
-- WriteChatColor() Exit
SuperWhoFindPets - Spawn547 has pet Vibtik00
-- WriteChatColor() Entry
-- Chat() Entry
-- MQToSTML() Entry
MQToSTML( w-u[x41 Fire Elemental Warrior-u]x Vibtik <PET> -u(x9005.89 NE-u)x)
-- MQToSTML() Exit
-- CChatWindow__AddOutputText() Entry
-- CChatWindow__AddOutputText() Exit
-- Chat() Exit
-- WriteChatColor() Exit
-- WriteChatColor() Entry
-- Chat() Entry
-- MQToSTML() Entry
MQToSTML(w-u[x61 Dark Elf Cleric-u]x Eolh Baenre'Tenma <Capulus> -u(x7561.88 NE-u)x)
-- MQToSTML() Exit
-- CChatWindow__AddOutputText() Entry
-- CChatWindow__AddOutputText() Exit
-- Chat() Exit
-- WriteChatColor() Exit
-- WriteChatColor() Entry
-- Chat() Entry
-- MQToSTML() Entry
MQToSTML(w-u[x63 High Elf Cleric-u]x Gavilan Elessedil g*RP*x -u(x7090.67 NE-u)x)
-- MQToSTML() Exit
-- CChatWindow__AddOutputText() Entry
-- CChatWindow__AddOutputText() Exit
-- Chat() Exit
-- WriteChatColor() Exit
-- WriteChatColor() Entry
-- Chat() Entry
-- MQToSTML() Entry
MQToSTML(w-u[x65 Barbarian Beastlord-u]x Lentor <Capulus> -u(x6902.33 NE-u)x)
-- MQToSTML() Exit
-- CChatWindow__AddOutputText() Entry
-- CChatWindow__AddOutputText() Exit
-- Chat() Exit
-- WriteChatColor() Exit
SuperWhoFindPets - Spawn534 has pet #Lentor`s_warder00
-- WriteChatColor() Entry
-- Chat() Entry
-- MQToSTML() Entry
MQToSTML( w-u[x60 Wolf Warrior-u]x #Lentor`s warder <PET> -u(x6894.74 NE-u)x)
-- MQToSTML() Exit
-- CChatWindow__AddOutputText() Entry
-- CChatWindow__AddOutputText() Exit
-- Chat() Exit
-- WriteChatColor() Exit
-- WriteChatColor() Entry
-- Chat() Entry
-- MQToSTML() Entry
MQToSTML(w-u[x65 Barbarian Warrior-u]x Lobus Rudedog <Firestormers> -u(x8535.67 NE-u)x)
-- MQToSTML() Exit
-- CChatWindow__AddOutputText() Entry
-- CChatWindow__AddOutputText() Exit
-- Chat() Exit
-- WriteChatColor() Exit
-- WriteChatColor() Entry
-- Chat() Entry
-- MQToSTML() Entry
MQToSTML(There are g12x players in Great Divide.)
-- MQToSTML() Exit
-- CChatWindow__AddOutputText() Entry
-- CChatWindow__AddOutputText() Exit
-- Chat() Exit
-- WriteChatColor() Exit
-- CCommandHook::Detour() Exit
-
Lax
- We're not worthy!

- Posts: 3524
- Joined: Thu Oct 17, 2002 1:01 pm
- Location: ISBoxer
-
Contact:
Post
by Lax » Mon Nov 10, 2003 9:53 pm
Huh.. well its not the stack.
-
Lax
- We're not worthy!

- Posts: 3524
- Joined: Thu Oct 17, 2002 1:01 pm
- Location: ISBoxer
-
Contact:
Post
by Lax » Tue Nov 11, 2003 3:58 am
Zip updated, try again with latest and see if we get lucky. If it still crashes, provide as much debug detail as possible (feel free to skip the pages of ProcessGameEvents() entry/exit

)