Jump to content

[crash]Infinity loop


Auntie Mangos

Recommended Posts

  • 40 years later...

i found one crash, main thread stuck in this part of code

void WorldSession::SendDoFlight( uint32 mountDisplayId, uint32 path, uint32 pathNode )
{
   // remove fake death
   if (GetPlayer()->hasUnitState(UNIT_STAT_DIED))
       GetPlayer()->RemoveSpellsCausingAura(SPELL_AURA_FEIGN_DEATH);

   while(GetPlayer()->GetMotionMaster()->GetCurrentMovementGeneratorType() == FLIGHT_MOTION_TYPE) //STUCK HERE
       GetPlayer()->GetMotionMaster()->MovementExpired(false);

   if (mountDisplayId)
       GetPlayer()->Mount( mountDisplayId );

   GetPlayer()->GetMotionMaster()->MoveTaxiFlight(path,pathNode);
}

i added iteration counter in this loop and break it when it equal to 100, no core stuck any more

maybe someone have the same problem?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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