Skip to content

Bug - iOS (Safari) runaway memory issue when panning while zoomed on single image #952

@plougsgaard

Description

@plougsgaard

I'm experiencing a major memory issue. It only happens when I'm zoomed in to a certain point though, and only on physical iOS devices.

I'd love to hear if anyone's having similar issues or have any ideas as to what might be wrong here. Also ideas to workarounds if it's not feasible to diagnose.

Steps

  1. Zoom in on the image (far enough, does not happen when only zoomed in.. eh.. some)
  2. Pan around
  3. Crash

Setup

  • Runs in within a Cordova app
  • iOS 9.3 (same on 3 different test devices)
    • Does not occur on Android
    • Also does not occur when running the same code through the various iOS simulators

Config

OpenSeadragon({
      id: 'seadragon-viewer',
      tileSources: {
        type: 'legacy-image-pyramid',
        levels: [{
          url: 'http://example.com/example.jpeg',
          height: 1938,
          width: 984
        }]
      },
      showNavigationControl: false,
      animationTime: 0.2,
      visibilityRatio: 1.0,
      gestureSettingsTouch: {
        pinchRotate: false,
        flickMomentum: 0,
        dblClickToZoom: false
      },
      maxZoomPixelRatio: 2.0,
      minZoomPixelRatio: 10.0,
      springStiffness: 4.5,
      viewportMargins: {
         left: deviceDimensions.clientWidth * 0.2,
         top: deviceDimensions.clientHeight * 0.1,
         right: deviceDimensions.clientWidth * 0.2,
         bottom: deviceDimensions.clientHeight * 0.1
      }
    })

Measurements

screen shot 2016-06-04 at 11 36 05

## Profiling

screen shot 2016-06-04 at 11 48 58

The QuartzCore behaves normally and allocates very little memory each time before suddenly jumping to 11.16MiB several times in the span of a few milliseconds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions