Skip to content

Unexpected scroll glitches when using mobileReplayIntegration #5121

@csath

Description

@csath

What React Native libraries do you use?

React Navigation, Expo (mobile only), Hermes

Are you using sentry.io or on-premise?

on-premise (Self-Hosted)

@sentry/react-native SDK Version

6.19.0

How does your development environment look like?

System:
  OS: macOS 15.6.1
  CPU: (14) arm64 Apple M3 Max
  Memory: 390.69 MB / 36.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 22.17.1
    path: ~/.nvm/versions/node/v22.17.1/bin/node
  Yarn:
    version: 1.22.21
    path: /opt/homebrew/bin/yarn
  npm:
    version: 11.5.2
    path: ~/.nvm/versions/node/v22.17.1/bin/npm
  Watchman:
    version: 2025.03.10.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.16.2
    path: /usr/local/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.5
      - iOS 18.5
      - macOS 15.5
      - tvOS 18.5
      - visionOS 2.5
      - watchOS 11.5
  Android SDK:
    API Levels:
      - "31"
      - "32"
      - "33"
      - "34"
      - "35"
      - "35"
      - "36"
    Build Tools:
      - 30.0.3
      - 33.0.0
      - 33.0.1
      - 34.0.0
      - 35.0.0
      - 36.0.0
    System Images:
      - android-29 | Google Play ARM 64 v8a
      - android-34 | Google APIs ARM 64 v8a
      - android-36 | Google Play ARM 64 v8a
    Android NDK: Not Found
IDEs:
  Android Studio: 2025.1 AI-251.26094.121.2512.13991807
  Xcode:
    version: 16.4/16F6
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.10
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 18.0.0
    wanted: 18.0.0
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.77.2
    wanted: ~0.77.1
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

Sentry.init()

Sentry.init({
  dsn: SENTRY_DNS,
  environment: 'custom',
  release: "******",
  dist: '***',
  tracesSampleRate: 0.1,
  patchGlobalPromise: false,
  integrations: [
        Sentry.reactNavigationIntegration(),
        Sentry.reactNativeTracingIntegration(),
        Sentry.mobileReplayIntegration({
                maskAllImages: false,
                maskAllText: false,
                maskAllVectors: false,
       }),
  ],
  enableAppStartTracking: false,
  enableAutoPerformanceTracing: true,
  replaysOnErrorSampleRate: 0.001,
  replaysSessionQuality: 'low',
});
```

Steps to Reproduce

  1. Install the app on iOS device (Test device used > iPhone 12, 18.6.2 iOS version)
  2. Start monitoring iOS app "Animation hitches" using Xcode instruments
  3. In the app all the scroll views, even including react native web view component starts to show animation glitches when scrolling. Once the replaysOnErrorSampleRate is set to 0, these glitches are gone.

Expected Result

When session replay is enabled, it should not introduce animation glitches while scrolling.

Actual Result

Image

Metadata

Metadata

Assignees

No fields configured for issues without a type.

Projects

Status

Waiting for: Community

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions