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'
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 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.
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...
Or alternatively, does anyone just straight-up know what changed with WebCoreSharedBufferData
in iOS 7 that might be creating an error like this?
EDIT: 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?