I try to load into UIWebView
of a UIViewController
a 360 panorama which is in html format and built in krpano. When the panorama opens all work properly. Although after some time, I get much of these errors to console :
Feb 28 14:02:54 iPhone-tou-chreste-Phanes Epirus Treasures[4687]
<Error>: ImageIO: JPEG Not a JPEG file: starts with 0x00 0x00
And then finally the app crashes with this exception.
***** 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**
I searched the web but i cant find a solution to this. Any advice would help me.