【问题标题】:[WebCoreSharedBufferData getBytes:range:]: range {0, 8} exceeds data length 0'[WebCoreSharedBufferData getBytes:range:]: 范围 {0, 8} 超出数据长度 0'
【发布时间】:2013-11-21 04:59:04
【问题描述】:

我正在为 iOs 7 更新我的应用程序。我为 cordova(电话间隙)开发了这个应用程序。当我运行这个应用程序时,我得到了错误:

FirstDemo[175] <Error>: ImageIO: PNG Not a PNG file
FirstDemo[175] <Error>: ImageIO: PNG Not a PNG file
FirstDemo[175] <Error>: ImageIO: PNG Not a PNG file
FirstDemo[175] <Error>: ImageIO: PNG Not a PNG file
FirstDemo[175] <Error>: ImageIO: PNG Not a PNG file
FirstDemo[175] <Error>: ImageIO: PNG Not a PNG file

FirstDemo[175:500b] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[WebCoreSharedBufferData getBytes:range:]: range {0, 8} exceeds data length 0'
*** First throw call stack:
(0x30875f4b 0x3af476af 0x30875e8d 0x311b0a91 0x307ce9a5 0x315afe47 0x315afd21 0x316f49ab 0x315afc75 0x315af8f9 0x315b80f5 0x315b771f 0x308fd45d 0x32c976b5 0x32c96b5f 0x32c82a91 0x32c825d5 0x32c7f371 0x32c7da71 0x3b431273 0x3b43106b 0x3b431ce1 0x3b431f59 0x3b56cdbf 0x3b56cc84)
libc++abi.dylib: terminating with uncaught exception of type NSException

我无法从任何地方找到任何解决方案。 谁能帮帮我?

【问题讨论】:

  • 我们也看到了这个错误,你介意上传你的PNG文件进行分析吗?也许它是某种类型的 PNG 调色板?

标签: cordova ios7 cordova-3


【解决方案1】:

糟糕,在意识到 kcbanner 的评论后才更新此内容。

你看过/尝试过吗:Has iOS 7 changed PNG compatibility/handling?

【讨论】:

  • 错误发生在 UIWebView 内部,程序员无权访问数据。
  • 实际上我已经看到了,但是我们尝试了许多不同类型的 PNG,但找不到导致此错误的共同因素。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-12-16
  • 1970-01-01
  • 2022-12-18
  • 1970-01-01
相关资源
最近更新 更多