Jump to content

[9134] ASSERT in Object.h


Recommended Posts

Posted

Hi, I know my revision is old, but is the last for 3.2.2a....

I have crashes with this line

Map * GetMap() const { ASSERT(m_currMap); return m_currMap; }

I know this because I was able to see the console for just a few seconds and I had no time to copy the backtrace, but this is my main crash.

What would happen if I just remove the assert? xD

The console was saying something like "C:/..../Object.h:500 assertion fail"

Any idea on how to fix this? a way to ensure that assertion doesn't fail....

Thank you very much

Posted

Somehow the m_currMap doesn't contain a map (I think it's either empty or a null pointer), should be some way to backtrace where this originated, need to figure out why the m_currMap doesn't contain anything.

Posted
Somehow the m_currMap doesn't contain a map (I think it's either empty or a null pointer), should be some way to backtrace where this originated, need to figure out why the m_currMap doesn't contain anything.

Try .cast 53360

  • 3 weeks later...
Posted

PACK Selector git

Same problem here but 10 o 12 times a day :(

Setting player home position: mapid is: 0, zoneid is 1519, X is -8868.889648, Y is 677.174011, Z is 97.903702

mangos-worldd: ../../../src/game/Object.h:474: Map* WorldObject::GetMap() const: Assertion `"m_currMap" && 0' failed.

../../../src/game/Object.h:474: Error: Assertion in GetMap failed: m_currMap

Stack Trace:

/opt/mangos/bin/mangos-worldd(_ZN6Player10LoadFromDBEjP14SqlQueryHolder+0x9c0) [0x839f6c0]

/opt/mangos/bin/mangos-worldd(_ZN12WorldSession17HandlePlayerLoginEP16LoginQueryHolder+0xa1) [0x8532c51]

/opt/mangos/bin/mangos-worldd(_ZN6MaNGOS15_IQueryCallbackINS_9_CallbackI16CharacterHandlerP11QueryResultP14SqlQueryHoldervvEEE7ExecuteEv+0x3d) [0x853b5dd]

/opt/mangos/bin/mangos-worldd(_ZN14SqlResultQueue6UpdateEv+0x1e) [0x855f3ee]

/opt/mangos/bin/mangos-worldd(_ZN5World6UpdateEj+0x1c6) [0x84973e6]

/opt/mangos/bin/mangos-worldd(_ZN13WorldRunnable3runEv+0xba) [0x814354a]

/opt/mangos/bin/mangos-worldd(_ZN9ACE_Based6Thread10ThreadTaskEPv+0x1d) [0x85667cd]

/lib/libACE-5.7.8.so(_ZN21ACE_OS_Thread_Adapter6invokeEv+0x67) [0x1fd427]

/lib/libACE-5.7.8.so(ace_thread_adapter+0x11) [0x1a8d71]

/lib/libpthread.so.0 [0xd79832]

/lib/libc.so.6(clone+0x5e) [0xccee0e]

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use