CTD while inspecting spells

A forum for reporting bugs NOT related to custom plugins.

Moderator: MacroQuest Developers

georgesilver
orc pawn
orc pawn
Posts: 16
Joined: Tue May 25, 2004 9:10 am

CTD while inspecting spells

Post by georgesilver » Tue Feb 28, 2006 9:58 pm

CTD while inspecting spells and new PoR gear.

well lets try this.

Code: Select all


[MQ2]Adding WndNotification target 'ItemDisplayWindow'
First-chance exception at 0x0303fefe (MQ2Main.dll) in eqgame.exe: 0xC0000005: Access violation reading location 0x00000228.
First-chance exception at 0x0303fefe (MQ2Main.dll) in eqgame.exe: 0xC0000005: Access violation reading location 0x00000228.
Unhandled exception at 0x0303fefe (MQ2Main.dll) in eqgame.exe: 0xC0000005: Access violation reading location 0x00000228.
First-chance exception at 0x0303fefe (MQ2Main.dll) in eqgame.exe: 0xC0000005: Access violation reading location 0x00000228.
Unhandled exception at 0x0303fefe (MQ2Main.dll) in eqgame.exe: 0xC0000005: Access violation reading location 0x00000228.
Stack call

Code: Select all

>	MQ2Main.dll!ShowSpellSlotInfo(EQData::_SPELL * pSpell=0x037fbbe0, char * szBuffer=0x0012d1ce)  Line 2116 + 0x25	C++
 	MQ2ItemDisplay.dll!ItemDisplayHook::SetSpell_Detour(int SpellID=58702816, bool HasSpellDescr=true, int unknown_int=0)  Line 622	C++
disassembly middle line was pointer

Code: Select all

0303FEF5  xor         eax,edx 
0303FEF7  sub         eax,edx 
0303FEF9  call        GetSpellByID (30336B0h) 
0303FEFE  mov         eax,dword ptr [eax+228h] 
0303FF04  mov         ecx,eax 
0303FF06  mov         dl,byte ptr [eax] 
0303FF08  inc         eax  
pointed code block from mq2utilities.cpp
line with "szBuff, GetSpellByID" is where the pointer was

Code: Select all

case 139: //limit spell this affects 
         strcat(szBuff, "Limit: Spell("); 
         // changed this case to work for any future changes by referencing 
         // the spell array for the name 
 >      strcat(szBuff, GetSpellByID(abs(pSpell->Base[i]))->Name); 
         if ( pSpell->Base[i] > 0 )  strcat(szBuff, " allowed"); 
         if ( pSpell->Base[i] < 0 )  strcat(szBuff, " excluded"); 
         strcat(szBuff, ")"); 
         break; 

If you need more Tell me where and how to get it for you.


GS

User avatar
fearless
Not a Psychic
Posts: 2684
Joined: Wed Mar 10, 2004 3:52 pm

Post by fearless » Tue Feb 28, 2006 10:06 pm

What zip are you running and have you made any modifications to the source? IE this.

Thanks
Reading . . . it's not just for me.

[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
[quote="Ccomp5950"]Fearless showed me the light, you too shall learn.[/quote]

georgesilver
orc pawn
orc pawn
Posts: 16
Joined: Tue May 25, 2004 9:10 am

Post by georgesilver » Tue Feb 28, 2006 10:44 pm

February 27 2006 20:46:01 (MQ2-20060227b)


and no changes. kinda been trying to narrow it down. i can inspect some stuff but others I cannot. seems items with spell haste on them. and the cleric spell haste buff. also some older items with focus on them

GS

User avatar
fearless
Not a Psychic
Posts: 2684
Joined: Wed Mar 10, 2004 3:52 pm

Post by fearless » Tue Feb 28, 2006 10:47 pm

Try that change by ieatacid and try to get it to crash again. If so, post another debug.
Reading . . . it's not just for me.

[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
[quote="Ccomp5950"]Fearless showed me the light, you too shall learn.[/quote]

georgesilver
orc pawn
orc pawn
Posts: 16
Joined: Tue May 25, 2004 9:10 am

Post by georgesilver » Tue Feb 28, 2006 11:10 pm

Same type of error. different place. Unless i edited something wrong.

Code: Select all

     if (pSpell->CastOnYou[0]) { 
02AB20D1  mov         eax,dword ptr [esp+10h] 
02AB20D5  mov         eax,dword ptr [eax+239h] 
02AB20DB  cmp         byte ptr [eax],0 
02AB20DE  je          $L87110+249h (2AB2128h) 
       sprintf(temp, "Cast on you: %s<br>", pSpell->CastOnYou); 
02AB20E0  push        eax  

Code: Select all

[MQ2]Adding WndNotification target 'ItemDisplayWindow'
First-chance exception at 0x02ab20db (MQ2ItemDisplay.dll) in eqgame.exe: 0xC0000005: Access violation reading location 0x68037fba.

Code: Select all

      bUseableClasses = true;
       }
    } 
	 if (bUseableClasses) strcat(out, "<br><br>" ); 

     if (pSpell->CastOnYou[0]) { 
       sprintf(temp, "Cast on you: %s<br>", pSpell->CastOnYou); 
       strcat(out,temp); 
     } 
think thats all

gs

JJ
a hill giant
a hill giant
Posts: 227
Joined: Thu Nov 11, 2004 5:50 am

Post by JJ » Wed Mar 01, 2006 8:55 am

New zip out.

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

Post by vzmule » Wed Mar 01, 2006 9:58 am

Holy shit. A bug report with debug spew? I just about fell out of my chair :)
[size=100][url]http://forever-hacking.com[/url][/size]

User avatar
fearless
Not a Psychic
Posts: 2684
Joined: Wed Mar 10, 2004 3:52 pm

Post by fearless » Wed Mar 01, 2006 10:35 am

I figured if I pasted the link on how to do it enough, somebody would finally step up.
Reading . . . it's not just for me.

[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
[quote="Ccomp5950"]Fearless showed me the light, you too shall learn.[/quote]

georgesilver
orc pawn
orc pawn
Posts: 16
Joined: Tue May 25, 2004 9:10 am

Post by georgesilver » Thu Mar 02, 2006 8:39 am

Working great after the new .zip. Hopefully I can help again in the future.


GS

xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

Re: CTD while inspecting spells

Post by xyilla » Mon Jul 07, 2025 12:26 am


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

Re: CTD while inspecting spells

Post by xyilla » Mon Jul 07, 2025 12:27 am


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

Re: CTD while inspecting spells

Post by xyilla » Mon Jul 07, 2025 12:28 am


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

Re: CTD while inspecting spells

Post by xyilla » Mon Jul 07, 2025 12:29 am


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

Re: CTD while inspecting spells

Post by xyilla » Mon Jul 07, 2025 12:30 am


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

Re: CTD while inspecting spells

Post by xyilla » Mon Jul 07, 2025 12:31 am