我在哪里可以了解有关WebCoreSharedBufferData的更多信息? [英] Where can I learn more about WebCoreSharedBufferData?

查看:87
本文介绍了我在哪里可以了解有关WebCoreSharedBufferData的更多信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在iOS 6上完美运行的应用程序,但是在iOS 7上,如果用户采取了非常具体的操作(太复杂而无法进入,但它使用 UIWebView 且一致),应用程序因错误而崩溃:

I've got an app that was working perfectly on iOS 6, but on iOS 7, if there is a very specific action taken by the user (too complex to get into but it uses a UIWebView and it's consistent), the app crashes with the error:

*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[WebCoreSharedBufferData getBytes:range:]: range {0, 8} exceeds data length 0'

现在我非常乐意自己做一些研究和实验,但我找不到 WebCoreSharedBufferData 。 Google搜索显示有几个人(例如此处此处此处其他)有类似问题,但他们的问题要么没有得到回答,要么他们正在使用他们的应用程序(比如放大地图或使用第三方代码,我没有这样做。

Now I'm more than happy to do some research and experimentation myself, but I just can't find WebCoreSharedBufferData. Google searches reveal several people (like here and here and here and here) who are having similar problems, but their questions either haven't been answered or they're using their apps in ways (like zooming on a map or using 3rd party code) that I'm not doing.

Xcode文档从未听说过 WebCoreSharedBufferData ,搜索我的项目后发现没有引用它。谷歌搜索也让我没有受到启发,大多数只是问题和GitHub项目与我没有使用的第三方代码。我假设它在Apple的 UIWebView 功能中有一些深层次的东西,但是我无法了解它,我很难继续进行。

Xcode documentation has never heard of WebCoreSharedBufferData, and a search of my project reveals no references to it. Google searches have left me unenlightened as well, mostly just questions and GitHub projects with 3rd party code I'm not using. I'm assuming it's something deep in Apple's UIWebView functionality, but without being able to learn more about it I'm having a hard time proceeding.

所以我的问题是:有谁知道我在哪里可以找到 WebCoreSharedBufferData 的信息/教程/描述等?我觉得如果我理解得更好,我就能找到解决方案,在黑暗中调试很难......

So my question is: does anyone know where I can find information/tutorials/descriptions etc of WebCoreSharedBufferData? I feel like if I understood it a little better I'd be able to find the solution, it's just hard to debug in the dark...

或者,确实如此任何人只是直接知道iOS 7中的 WebCoreSharedBufferData 可能会产生这样的错误?

Or alternatively, does anyone just straight-up know what changed with WebCoreSharedBufferData in iOS 7 that might be creating an error like this?

编辑:kcbanner(他遇到过类似问题)提供的线索在下面的评论中:我们的两个问题都涉及带有画布的页面和 onclick 与那些画布的事件。 iOS 7中的画布点击处理可能会发生一些变化吗?

A clue provided by kcbanner (who has experienced a similar issue) in the comments below: both of our problems involve pages with canvases and onclick events with those canvases. Maybe something has changed with canvas click handling in iOS 7?

推荐答案

我刚刚遇到此错误。我的设置是phonegap 3.2和createjs 0.7.0我从来没有遇到过ios6的问题,但是ios7让我很适合。我的解决方案是使用一个canvas元素。我一直在使用png spritesheet位图数据加载两个canvas元素并来回切换,现在我只是通过清除旧数据并添加新数据来重用相同的canvas元素。似乎已经解决了这个问题。仍然不明白为什么我不能有两个画布元素。

I just encountered this error also. My set up was phonegap 3.2 and createjs 0.7.0 and I never had an issue with ios6 but ios7 was causing me fits. My solution was to use one canvas element. I had been loading two canvas elements with png spritesheet bitmap data and toggling back and forth, now i just reuse the same canvas element by clearing the old data and adding the new data. Seems to have solved the issue. still don't understand why i can't have two canvas elements.

只是更多......似乎这只发生在我用png数据快速重新加载两个canvas元素时。我不认为这是一个损坏的pngs的问题,因为它会发生在每次不同的位图上,现在我重用相同的canvas元素一切正常。

just a bit more... seems this only occurred when i quickly reloaded the two canvas elements with png data. I don't think it's an issue of corrupted pngs because it would happen on different bitmaps each time and now that i reuse the same canvas element everything works fine.

这篇关于我在哪里可以了解有关WebCoreSharedBufferData的更多信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆