Skip to content

FileNotFoundException /data/xxx/sentry/xxx/replay_x/.ongoing_segment: open failed: ENOENT (No such file or directory) #4498

@simonwh

Description

@simonwh

What React Native libraries do you use?

Expo (mobile only), Hermes

Are you using sentry.io or on-premise?

sentry.io (SaS)

@sentry/react-native SDK Version

6.5.0

How does your development environment look like?

"expo": "^51.0.0",
"react-native": "~0.75.0"
"react": "18.2.0",

hermesEnabled: true

Sentry.init()

"expo": "^51.0.0",
"react-native": "~0.75.0"
"react": "18.2.0",

Sentry.init({
  enabled: ENV.APP_VARIANT !== 'development',
  dsn: ENV.SENTRY_DSN,
  debug: false,
  attachStacktrace: true,
  enableAutoSessionTracking: true,
  attachViewHierarchy: true,
  environment: ENV.APP_VARIANT,
  tracesSampleRate: 1.0,
  enableNdkScopeSync: true,
  _experiments: {
    profilesSampleRate: 1.0,
    replaysSessionSampleRate: 1.0,
    replaysOnErrorSampleRate: 1.0,
  },
  enableAppHangTracking: true,
  appHangTimeoutInterval: 10,
  enableAutoPerformanceTracing: true,
  enableTracing: true,
  enableCaptureFailedRequests: true,
  enableWatchdogTerminationTracking: true,
  integrations: [
    Sentry.breadcrumbsIntegration(DEV_BREADCRUMBS_CONFIG),
    navigationIntegration,
    Sentry.mobileReplayIntegration({
      maskAllText: false,
      maskAllImages: false,
      maskAllVectors: false,
    }),
  ].filter((i) => i !== null) as Integration[],
});

Steps to Reproduce

Cannot reproduce locally, but I see the errors coming in continuously in Sentry.

Expected Result

No exceptions thrown

Actual Result

FileNotFoundException thrown and unhandled. Shows in our Sentry monitoring.

Seems to be happening only on Android.

Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions