setDisplayFrame停止运行

我使用cocos2dx-2.2.2做小游戏,调用sprite的setDisplayFrame函数时停止运行,也没有什么log。检查了一下sprite和参数都没有什么问题,
真不知道怎么办了?
下面第三行是代码停止的地方,小伙伴们也遇到这样的问题吗?

void CCSprite::setDisplayFrame(CCSpriteFrame *pNewFrame)
{
    m_obUnflippedOffsetPositionFromCenter = pNewFrame->getOffset();//stop here

    CCTexture2D *pNewTexture = pNewFrame->getTexture();
    // update texture before updating texture rect
    if (pNewTexture != m_pobTexture)
    {
        setTexture(pNewTexture);
    }

    // update rect
    m_bRectRotated = pNewFrame->isRotated();
    setTextureRect(pNewFrame->getRect(), m_bRectRotated, pNewFrame->getOriginalSize());
}

我错了,我的frame参数设置有问题。