Beiträge von etolstoy

    I've already spent dozens of hours trying to solve this problem - maybe the krpano community will be able to help me.
    I'm developing iOS panorama app using krpano viewer. It embeds the cube pano in the UIWebView. In the iOS 6 I used the tiles of very high quality (2048x2048, 4-5mb). Everything was fine. I had to stop developing the app and recently returned back to it. The problem is, that now, with iOS 7.1, it crashes.
    At first time the UIWebView loads fine, everything works fast and cool. But when I close the view and open it once more, the application crashes with the following error:

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

    I've tried a lot of things - to call [webView reload] on -viewWillDisappear, tried to load an empty page, fired a javascript which set document.body.innerHTML to an empty value, implemented -didReceiveMemoryWarning - dozens of things, but nothing has helped. It seems to be the problem with WebKit itself.
    The only possible solution, which fixed the crashes was to use tiles of very low quality with the size 3-10kb. But the use of such panoramas in production is meaningless. I was testing the app on iPhone 5 and iPhone 4. On the simulator everything works fine.
    Here is my current code for embedding the pano in the UIWebView:

    This is krpano.html:

    krpano.xml:

    Code
    <krpano version="1.17" onstart = "startup();">
    	<action name="startup">
    	<!-- startup action (called from the onstart event) - slide-in the example-button-containers -->
    loadpano('tour.xml');" />
    	</action>
    </krpano>

    tour.xml:

    I would be very glad for any help, this problem makes me mad *sad*