Error in CCSprite - "Logic error in CCSprite error. Parent must be a CCSprite"

I randomly keep getting this error in ccsprite.

It’s calling the assert
CCAssert(dynamic_cast<CCSprite*>(m_pParent), “Logic error in CCSprite. Parent must be a CCSprite”);
This happengs in the updateTransform function of CCSprite during a normal scene visit.

Now i’m pretty confident in the fact that all my child adding and removing is done properly. This error pops up about 20% of the time shortly after I add a bunch of stuff to the scene both in sprite batches and as normal children.

Has anyone ever seen an error involving this or have any idea why it might be happening?
Any help would be greatly appreciated, thank you.