libpng error: CgBI: unhandled critical chunk.

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值