ccocos2d-x 新手一枚,在用一些基本东西时总出现小概率崩溃问题,感觉是用的姿势不太对,求指点。
在使用
Sprite *sprite = Sprite::create(“path/image.png”);
或
ui::Scale9Sprite *sprite = ui::Scale9Sprite::create(“path/image.png”);
时,有时会出现崩溃问题,错误栈中找到崩溃的位置在
CCTextureCache.cpp (line 326) std::string fullpath = FileUtils::getInstance()->fullPathForFilename(path);
开发环境 Mac Xcode,cocos2d-x 版本 3.10,运行环境 IOS 9.3