TrinityCore icon indicating copy to clipboard operation
TrinityCore copied to clipboard

[crash]

Open pipposo opened this issue 14 years ago • 24 comments

http://pastebin.com/FSJB7bPK

I sometimes crashes, you can see how best to string?

pipposo avatar Apr 20 '11 11:04 pipposo

i can't even image what can be wrong with these checks... but you can try to replace

if (m_spellInfo->SpellFamilyName == SPELLFAMILY_WARLOCK && m_spellInfo->Category == 1179)

by

if (this && target && m_spellInfo && m_spellInfo->SpellFamilyName == SPELLFAMILY_WARLOCK && m_spellInfo->Category == 1179)

let me know if it helps or no Maybe check for "this" isn't needed here

tobmaps avatar Apr 20 '11 12:04 tobmaps

ok, I try and let you know, in the meantime thanks

pipposo avatar Apr 20 '11 13:04 pipposo

this - всегда существует, это из самой логики. А краш от какого-нибудь скрипта какого-нибудь школьника, у меня такого краша не было никогда. If it won't helps, try to find from where Spell::CheckTargetCreatureType called or get spell id

maxxx avatar Apr 20 '11 14:04 maxxx

your patch seems to work, I hold you up to date.

excuse for closing, I'm wrong button ^ ^

pipposo avatar Apr 20 '11 23:04 pipposo

crash http://pastebin.com/Rgr3P3Un

pipposo avatar Apr 21 '11 17:04 pipposo

hm strange whet is this? spellCreatureTargetMask = error reading variable spellCreatureTargetMask (Unhandled dwarf expression opcode 0x0)

2010phenix avatar Apr 22 '11 13:04 2010phenix

tobmaps another type crash, please you can see http://pastebin.com/E3LfK7fv

pipposo avatar May 05 '11 07:05 pipposo

try to replace your check by

// not to dead and not for dead
if (!pVictim->isAlive() || !getOwner() || !getOwner()->isAlive())
    return;

tobmaps avatar May 05 '11 09:05 tobmaps

ok...try

pipposo avatar May 05 '11 10:05 pipposo

another....ufff http://pastebin.com/8wzqTmZ2

ThreatManager.cpp:556 = iThreatContainer.remove(hostilReference); ThreatManager.h:157 = void remove(HostileReference* pRef) { iThreatList.remove(pRef); } ThreatManager.cpp:141 = getSource()->processThreatEvent(&pThreatRefStatusChangeEvent); ThreatManager.cpp:214 = fireStatusChanged(event); HostileRefManager.cpp:96 = ref->setOnlineOfflineState(bIsOnline);

pipposo avatar May 05 '11 16:05 pipposo

Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffccfff700 (LWP 23191)] 0x00000000007c83b4 in ThreatManager::addThreat (this=0x7fff6329eb20, pVictim=0x7fff9ea97000, fThreat=0, schoolMask=SPELL_SCHOOL_MASK_NORMAL, pThreatSpell=0x0) at /home/staff_fenice/install/fenicenew/fenicenew/src/server/game/Combat/ThreatManager.cpp:425 425 if (!pVictim->isAlive() || !getOwner() || !getOwner()->isAlive())

pipposo avatar May 05 '11 17:05 pipposo

try this

if (!pVictim->IsInWorld() || !pVictim->isAlive()  || !getOwner() || !getOwner()->IsInWorld() || !getOwner()->isAlive())

tobmaps avatar May 05 '11 17:05 tobmaps

try...

pipposo avatar May 05 '11 17:05 pipposo

/home/trinitycore/install/trinitycore/trinitycore/src/server/game/Combat/ThreatManager.cpp: In member function 'void ThreatManager::addThreat(Unit_, float, SpellSchoolMask, const SpellEntry_)': /home/trinitycore/install/trinitycore/trinitycore/src/server/game/Combat/ThreatManager.cpp:425: error: 'IsInWorld' was not declared in this scope [ 14%] Built target pch_Generate_scripts make[2]: *** [src/server/game/CMakeFiles/game.dir/Combat/ThreatManager.cpp.o] Error 1

pipposo avatar May 05 '11 17:05 pipposo

edited prev post, try new one

tobmaps avatar May 05 '11 18:05 tobmaps

error

pipposo avatar May 05 '11 18:05 pipposo

i think problem not here i use some fixes for hunter\pet and see similar crash with lost treat and etc... but from another spell for now not time to look closer

2010phenix avatar May 05 '11 20:05 2010phenix

try if (this && target && m_spellInfo && m_spellInfo->SpellFamilyName == SPELLFAMILY_WARLOCK && m_spellInfo->Category == 1179) and crash help me tobmaps

pipposo avatar May 11 '11 20:05 pipposo

if you has fresh crash dump then post it, because line numbers is changed...

tobmaps avatar May 11 '11 20:05 tobmaps

http://pastebin.com/tkcpTraB

thx tobmaps ^^

pipposo avatar May 11 '11 20:05 pipposo

target=0x0 -_- i don't know how it can crash with your current checks :/

tobmaps avatar May 11 '11 21:05 tobmaps

ok :-(

pipposo avatar May 11 '11 21:05 pipposo

another crash, can you help? http://pastebin.com/Yz9YQJqZ

pipposo avatar May 11 '11 23:05 pipposo

somwhere over code(patch) lost check HostileReference::updateOnlineStatus creature = 0x0

revert it half by half and you find than write in issue

2010phenix avatar May 12 '11 09:05 2010phenix