gpt4 book ai didi

ios - UIWebView NSRangeException

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:40:05 26 4
gpt4 key购买 nike

我尝试将 360 全景图加载到 UIViewControllerUIWebView 中,该全景图采用 html 格式并内置于 krpano 中。当全景图打开时,一切正常。虽然过了一段时间后,我得到了很多这样的错误来安慰:

Feb 28 14:02:54 iPhone-tou-chreste-Phanes Epirus Treasures[4687] 
<Error>: ImageIO: JPEG Not a JPEG file: starts with 0x00 0x00

最后,应用程序因这个异常而崩溃。

***** Terminating app due to uncaught exception 'NSRangeException', 
reason: '*** -[WebCoreSharedBufferData getBytes:range:]: range {0, 4000}
exceeds data length 0'
*** First throw call stack:
(0x30474e83 0x3a7d16c7 0x30474dc5 0x30dafd05 0x303cd2ad 0x311ae397
0x311ae271 0x311ca417 0x311c97ef 0x311c9535 0x311c936d 0x311c92db
0x311cd249 0x311ccd27 0x311b5c8b 0x304fc46d 0x328a74e1 0x328a6991
0x3289280b 0x3289232d 0x3288f083 0x3288d7a1 0x3acbae7b 0x3acb7f93
0x3acbb745 0x3acbb9c5 0x3ade5dff 0x3ade5cc4)
libc++abi.dylib: terminating with uncaught exception of type NSException**

我在网上搜索过,但找不到解决方案。任何建议都会对我有所帮助。

最佳答案

我会尝试检查每一个。也许您不必转换整个图像,而是检查每个图像的前几个字节。实际上可能没有那么“痛苦”。

试着找一个坏的,用它来测试。

关于ios - UIWebView NSRangeException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22095100/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com