Page 1 of 3

CTD 11-11

Posted: Tue Nov 11, 2003 9:26 am
by vzmule
Same deal, latest zip, removed mqext, built as release using .net with no modifications. /who = CTD

WINDBG Spew:

Code: Select all

ntdll!DbgBreakPoint:
77f767cd cc               int     3
0:014> g
(68c.6e4): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
eax=0013dd14 ebx=00000000 ecx=00000000 edx=0078f838 esi=00132644 edi=00000000
eip=004d885c esp=0013b800 ebp=0013dd0c 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+0xd885c:
004d885c 8b01             mov     eax,[ecx]         ds:0023:00000000=????????
0:000> r
eax=0013dd14 ebx=00000000 ecx=00000000 edx=0078f838 esi=00132644 edi=00000000
eip=004d885c esp=0013b800 ebp=0013dd0c 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+0xd885c:
004d885c ??               ???
0:000> kv
ChildEBP RetAddr  Args to Child              
WARNING: Stack unwind information not available. Following frames may be wrong.
0013b7fc 00000000 00000000 00000000 00000000 eqgame+0xd885c

Posted: Tue Nov 11, 2003 10:46 am
by EqMule
hmm I found a bug in the custom section... when I just compile latest cvs, with NO modification to custom whatsoever, it runs just fine, and let me point out that I have the new 3d targeting turned off, BUT as soon as I put in a custom command, I will get crashes, my theory on this is that

Code: Select all

pCmdListNew[ID].LocalizedStringID=0x3000+ID;
uses the same bogus id as the

Code: Select all

pCmdListCustom[ID].LocalizedStringID=0x3000+ID;
and I havent tested yet but I think changing the bogus id, will make custom commands work and no crashing?

maybe try:

Code: Select all

pCmdListCustom[ID].LocalizedStringID=0x4000+ID;
?

Posted: Tue Nov 11, 2003 11:34 am
by Lax
I'll CVS this ID thing but 99% sure that wont change it. Did you make sure to change this line?

Code: Select all

#define NUM_CUSTOMCOMMANDS 0

Posted: Tue Nov 11, 2003 12:17 pm
by EqMule
yeah...

Posted: Tue Nov 11, 2003 4:07 pm
by Lax
99% sure source's crash is fixed in latest zip which I just released, right before posting this now.. custom commands fixed also.

Posted: Tue Nov 11, 2003 5:21 pm
by vzmule
Nope. Still borked. Just DL'd current zip, changed to release, removed mqext and built, started mq, started eq, logged in a character, /who CTD as usual.

Here is debug. It does look a bit different this time.

Code: Select all

ntdll!DbgBreakPoint:
77f767cd cc               int     3
0:014> g
[MacroQuest]CCommandHook::Detour(/who)
[MacroQuest]SuperWho - filtering 
[MacroQuest]MQToSTML( )
[MacroQuest]MQToSTML(List of players)
[MacroQuest]MQToSTML(--------------------------------)
[MacroQuest]MQToSTML(w-u[x40 Erudite Necromancer-u]x Morgionn g<LFG>x -u(x9487.05 NE-u)x)
[MacroQuest]SuperWhoFindPets - Spawn2813 has pet Kenekn00
[MacroQuest]MQToSTML(     w-u[x33 Skeleton New Warrior-u]x Kenekn <PET> -u(x9472.88 NE-u)x)
[MacroQuest]MQToSTML(w-u[x40 High Elf Paladin-u]x Xoyou Softiuch -u(x7393.12 NE-u)x)
[MacroQuest]MQToSTML(w-u[x43 Wood Elf Ranger-u]x Lygos Terrastrider <Unseen Mentors> -u(x4749.93 ENE-u)x)
[MacroQuest]MQToSTML(w-u[x44 Wolf Druid-u]x Mithis <Legion of Elites> -u(x8796.44 NE-u)x)
[MacroQuest]MQToSTML(w-u[x50 Barbarian Beastlord-u]x Goradana <Arbiters of the Apocalypse> g<LFG>x -u(x9742.10 ENE-u)x)
[MacroQuest]MQToSTML(w-u[x52 Halfling Cleric-u]x Mylk Mustachio <Unseen Mentors> -u(x4740.00 ENE-u)x)
[MacroQuest]MQToSTML(w-u[x54 Wolf Druid-u]x Lavandor Tharnstar <Unseen Mentors> -u(x4771.76 ENE-u)x)
[MacroQuest]MQToSTML(w-u[x55 Human Druid-u]x Freedman <Spirit of the Heart> g*Anon*x -u(x7160.41 NNE-u)x)
[MacroQuest]MQToSTML(w-u[x65 Wood Elf Warrior-u]x Me <Guild> -u(x0.00 S-u)x)
[MacroQuest]MQToSTML(w-u[x55 Halfling Ranger-u]x Sindroth Covenant <Odium> -u(x7423.39 ENE-u)x)
[MacroQuest]MQToSTML(w-u[x56 Halfling Rogue-u]x Blindsided Doodlehead <Legion of Little Folk> -u(x9149.42 NE-u)x)
[MacroQuest]MQToSTML(w-u[x57 High Elf Cleric-u]x Lyannie Pureheart <Universal Brotherhood> g*RP*x -u(x7408.70 ENE-u)x)
[MacroQuest]MQToSTML(w-u[x65 Barbarian Shaman-u]x Demisius <Blades of Law> -u(x4819.35 ENE-u)x)
[MacroQuest]MQToSTML(w-u[x65 Human Cleric-u]x Lynn <Forces Unknown> g*Anon*x -u(x78.90 W-u)x)
[MacroQuest]MQToSTML(There are g14x players in Great Divide.)
(360.bc): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
eax=0013dd14 ebx=00000000 ecx=00000000 edx=0078f838 esi=011e6398 edi=00000000
eip=004d885c esp=0013b800 ebp=0013dd0c 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+0xd885c:
004d885c 8b01             mov     eax,[ecx]         ds:0023:00000000=????????
0:000> r
eax=0013dd14 ebx=00000000 ecx=00000000 edx=0078f838 esi=011e6398 edi=00000000
eip=004d885c esp=0013b800 ebp=0013dd0c 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+0xd885c:
004d885c ??               ???
0:000> kv
ChildEBP RetAddr  Args to Child              
WARNING: Stack unwind information not available. Following frames may be wrong.
0013b7fc 00000000 00000000 00000000 00000000 eqgame+0xd885c

Posted: Tue Nov 11, 2003 5:32 pm
by wassup
I am not getting any crashes whatsoever with the latest zip.

/who works without any problems for me.

Posted: Tue Nov 11, 2003 5:43 pm
by vzmule
That's what we're trying to track down. For some of us the current version works okay, and for others any command crashes eq.

I've tried different servers, different characters, different computers, custom ui, default ui....same thing on all of them.

Again, I do have my own working version without the recent changes that works fine, I'm just trying to help figure out this odd problem that only affects some of us.

Posted: Tue Nov 11, 2003 5:53 pm
by Lax
Which compilation method are you using? VS .NET? 2003? VS6? makefile or IDE?

Now I'm going to write a hook for the function that's breaking for you so we can figure out the problem easier.

Posted: Tue Nov 11, 2003 6:26 pm
by vzmule
Step by step:
Download zip
unzip
open macroquest.vcproj with Microsoft Visual Studio .net Standard
Version 2002
open configuration manager
uncheck mqext
change everything to release
close configuration manager
build solution
close VS .net
start mq
start eq
select server
select character
type any command
CTD

Posted: Tue Nov 11, 2003 6:53 pm
by Lax
Unzip
open MacroQuest.sln with MS VS.NET 2002
Select release version
Hit build
start mq
start eq
select server
select character (bazaar mule)
type /trader
works fine
click begin trader
works fine

:(

Posted: Tue Nov 11, 2003 6:59 pm
by Lax
How about this.. any chance you can email me your eqlib.dll zipped? I'll check the differences between ours.

Posted: Tue Nov 11, 2003 7:46 pm
by vzmule
Lax wrote:Unzip
open MacroQuest.sln with MS VS.NET 2002
Select release version
Hit build
start mq
start eq
select server
select character (bazaar mule)
type /trader
works fine
click begin trader
works fine

:(
Did it your way, same result, here is the debug:

Code: Select all

(590.384): Break instruction exception - code 80000003 (first chance)
eax=7ffdf000 ebx=00000001 ecx=00000002 edx=00000003 esi=00000004 edi=00000005
eip=77f767cd esp=0215ffcc ebp=0215fff4 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
[MacroQuest]CCommandHook::Detour(/who)
[MacroQuest]SuperWho - filtering 
[MacroQuest]MQToSTML( )
[MacroQuest]MQToSTML(List of players)
[MacroQuest]MQToSTML(--------------------------------)
[MacroQuest]MQToSTML(w-u[x5 High Elf Wizard-u]x Buzin -u(x5375.82 NE-u)x)
[MacroQuest]MQToSTML(w-u[x40 Skeleton New Necromancer-u]x Morgionn -u(x420.36 N-u)x)
[MacroQuest]SuperWhoFindPets - Spawn2813 has pet Zonekn00
[MacroQuest]MQToSTML(     w-u[x33 Skeleton New Warrior-u]x Zonekn <PET> -u(x431.66 N-u)x)
[MacroQuest]MQToSTML(w-u[x43 Barbarian Shaman-u]x Horlace <Unknown Knights> g*RP*x -u(x444.89 N-u)x)
[MacroQuest]SuperWhoFindPets - Spawn2907 has pet Kabann00
[MacroQuest]MQToSTML(     w-u[x29 Wolf Elemental Warrior-u]x Kabann <PET> -u(x475.40 N-u)x)
[MacroQuest]MQToSTML(w-u[x51 Dark Elf Shadow Knight-u]x Morlith Vixx <Capulus> -u(x8424.43 NE-u)x)
[MacroQuest]SuperWhoFindPets - Spawn346 has pet Keber00
[MacroQuest]MQToSTML(     w-u[x25 Skeleton New Warrior-u]x Keber <PET> -u(x8431.17 NE-u)x)
[MacroQuest]MQToSTML(w-u[x52 Dwarf Cleric-u]x Ghak Hairyone <Clan of Dragonfire> g*RP*x -u(x7077.84 NNE-u)x)
[MacroQuest]MQToSTML(w-u[x54 Barbarian Beastlord-u]x Garrich <Capulus> -u(x8391.89 NE-u)x)
[MacroQuest]MQToSTML(w-u[x65 Wood Elf Warrior-u]x Me <Guild> -u(x0.00 S-u)x)
[MacroQuest]MQToSTML(w-u[x57 Wood Elf Druid-u]x Zovan Elessar -u(x3300.51 NE-u)x)
[MacroQuest]MQToSTML(w-u[x58 Wood Elf Druid-u]x Milora Kinslayer <Capulus> g*RP*x -u(x8373.26 NE-u)x)
[MacroQuest]MQToSTML(w-u[x58 Barbarian Warrior-u]x Yimish Tenma <Capulus> -u(x8387.66 NE-u)x)
[MacroQuest]MQToSTML(w-u[x62 Troll Shadow Knight-u]x Cerdiwan <Capulus> g<AFK>x -u(x8395.83 NE-u)x)
[MacroQuest]MQToSTML(w-u[x63 Dwarf Cleric-u]x Venran Toesmasher <Capulus> -u(x7007.80 NNE-u)x)
[MacroQuest]MQToSTML(w-u[x64 Half Elf Warrior-u]x Feskan Tenma <Capulus> -u(x8417.96 NE-u)x)
[MacroQuest]MQToSTML(w-u[x65 Wood Elf Druid-u]x Alyias Bundy <Nuage> g*RP*x -u(x4595.90 ENE-u)x)
[MacroQuest]MQToSTML(w-u[x65 Wood Elf Ranger-u]x Antroe Knightowl <Capulus> -u(x8422.03 NE-u)x)
[MacroQuest]MQToSTML(w-u[x65 Erudite Wizard-u]x Balut <Capulus> -u(x8425.91 NE-u)x)
[MacroQuest]MQToSTML(w-u[x65 Human Ranger-u]x Beryllin Ravensword <Capulus> g*RP*x -u(x8465.97 NE-u)x)
[MacroQuest]MQToSTML(w-u[x65 Erudite Shadow Knight-u]x Colwn <Capulus> -u(x8427.39 NE-u)x)
[MacroQuest]MQToSTML(w-u[x65 Wood Elf Shaman-u]x Faileas Ked`uls <Capulus> g*RP*x -u(x7039.68 NNE-u)x)
[MacroQuest]MQToSTML(w-u[x65 Vah Shir Beastlord-u]x Jakr <Capulus> g<LFG>x -u(x8374.42 NE-u)x)
[MacroQuest]MQToSTML(w-u[x65 Human Monk-u]x Mahrsan Darkfist <Capulus> -u(x8396.97 NE-u)x)
[MacroQuest]MQToSTML(w-u[x65 High Elf Cleric-u]x Marisya Faythymn <Nuage> g*RP*x -u(x4826.14 NE-u)x)
[MacroQuest]MQToSTML(w-u[x65 Wood Elf Bard-u]x Myschief Makerr <Capulus> -u(x8373.90 NE-u)x)
[MacroQuest]MQToSTML(w-u[x65 Scarecrow Enchanter-u]x Platinu Kismet <Nuage> g*RP*x -u(x4596.75 ENE-u)x)
[MacroQuest]SuperWhoFindPets - Spawn387 has pet an_elder_shardwurm03
[MacroQuest]MQToSTML(     w-u[x37 Scarecrow Warrior-u]x elder shardwurm, an <PET> -u(x4715.99 ENE-u)x)
[MacroQuest]MQToSTML(w-u[x65 Dark Elf Wizard-u]x Sulien Mera'din <Triton> -u(x8357.59 NE-u)x)
[MacroQuest]SuperWhoFindPets - Spawn499 has pet #Sulien`s_familiar00
[MacroQuest]MQToSTML(     w-u[x47 Drake Warrior-u]x #Sulien`s familiar <PET> -u(x8343.84 NE-u)x)
[MacroQuest]MQToSTML(w-u[x65 Erudite Magician-u]x Tempys Lioncourt <Capulus> g*RP*x -u(x8414.98 NE-u)x)
[MacroQuest]MQToSTML(w-u[x65 Vah Shir Beastlord-u]x Zelcon <Capulus> g<LFG>x -u(x8435.86 NE-u)x)
[MacroQuest]MQToSTML(There are g27x players in Great Divide.)
(590.530): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
eax=0013dd14 ebx=00000000 ecx=6f6f5220 edx=0078f838 esi=00a445c4 edi=00000000
eip=004d885c esp=0013b800 ebp=0013dd0c 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+0xd885c:
004d885c 8b01             mov     eax,[ecx]         ds:0023:6f6f5220=????????
0:000> r
eax=0013dd14 ebx=00000000 ecx=6f6f5220 edx=0078f838 esi=00a445c4 edi=00000000
eip=004d885c esp=0013b800 ebp=0013dd0c 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+0xd885c:
004d885c ??               ???
0:000> kv
ChildEBP RetAddr  Args to Child              
WARNING: Stack unwind information not available. Following frames may be wrong.
0013b7fc 00000000 00000000 00000000 00000000 eqgame+0xd885c
I zipped my dll for ya. Here ya go:
http://68.118.236.122/lib.zip

Posted: Tue Nov 11, 2003 8:26 pm
by Lax
Checking with your dll now. 25k difference in size..

Posted: Tue Nov 11, 2003 8:29 pm
by Lax
Indeed, crashes with your dll. looking into this.