libpng error: CgBI: unhandled critical chunk.

来源:互联网 发布:走淘宝的微商 编辑:程序博客网 时间:2024/05/16 06:18

Load sprites in XCode 7.3 Beta #15199

 Closed
zartako opened this issue on 7 Mar · 15 comments

8 participants

@zartako@slackmoehrle@rws08@secredut@wengxianxun@vellozo@FrankZX@xbw12138
@zartako
zartako commented on 7 Mar

If I try to load a sprite it fails with this error on the console:

libpng error: CgBI: unhandled critical chunk.

Everything works fine when I run it on simulator, only happens when running in device. If it might help, I am using Xcode 7.3 beta and iOS 9.3 beta. Downgrading to Xcode 7.2 solve the problem.

@slackmoehrle
slackmoehrle commented on 9 Mar

I don't have Xcode 7.3 yet, but I can snag it and try to reproduce this.

@slackmoehrle
slackmoehrle commented on 22 Mar

XCode 7.3 final comes out today. I will try with this version. Beta 5 seemed to work.

@rws08
rws08 commented on 22 Mar

I have this problem too. using Xcode 7.3(7D175) and iOS 9.3.

libpng error: CgBI: unhandled critical chunk
cocos2d: SpriteFrameCache: couldn't load texture file.

CCImage.cpp

bool Image::initWithPngData(const unsigned char * data, ssize_t dataLen){... png_read_info(png_ptr, info_ptr); // problem code...}
@secredut
secredut commented on 22 Mar

I also have same problem with Xcode 7.3 and iOS 9.3.

@slackmoehrle
slackmoehrle commented on 22 Mar

Thanks. I am downloading the latest XCode 7.3 build. Takes me quite some time.

@slackmoehrle
slackmoehrle commented on 23 Mar

set:
Remove Text Metadata From PNG Files = NO.

原创粉丝点击