Title: Session Replay drives interval/window math from the wall clock · Issue #5578 · getsentry/sentry-java · GitHub
Open Graph Title: Session Replay drives interval/window math from the wall clock · Issue #5578 · getsentry/sentry-java
X Title: Session Replay drives interval/window math from the wall clock · Issue #5578 · getsentry/sentry-java
Description: Audit finding B3 — actual bug, MEDIUM (manifests when the clock steps mid-recording). Epoch is required for RRWeb payload timestamps (that part is correct), but the same wall values also drive windows/durations: Segment durations and the...
Open Graph Description: Audit finding B3 — actual bug, MEDIUM (manifests when the clock steps mid-recording). Epoch is required for RRWeb payload timestamps (that part is correct), but the same wall values also drive wind...
X Description: Audit finding B3 — actual bug, MEDIUM (manifests when the clock steps mid-recording). Epoch is required for RRWeb payload timestamps (that part is correct), but the same wall values also drive wind...
Opengraph URL: https://github.com/getsentry/sentry-java/issues/5578
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Session Replay drives interval/window math from the wall clock","articleBody":"Audit finding **B3 — actual bug, MEDIUM** (manifests when the clock steps mid-recording).\n\nEpoch is required for RRWeb payload timestamps (that part is correct), but the same wall values also drive windows/durations:\n\n* Segment durations and the 1h max-session deadline are `now - startEpoch` diffs — `sentry-android-replay/src/main/java/io/sentry/android/replay/capture/SessionCaptureStrategy.kt:107` (segment) and `:127` (session duration).\n* `BufferCaptureStrategy` trim-to-last-30s and `ReplayCache.createVideoOf` iterate epoch-millis windows; frame files are named by epoch millis.\n* `ReplayGestureConverter.kt`: `timeOffset = now - touchMoveBaseline`.\n\nA backward step mid-recording → frames \"newer than now\": trim can wipe valid frames, segment windows miss/duplicate frames, gesture offsets go negative. A forward step → premature 1h cutoff. NTP/carrier/user steps on phones are realistic.\n\nSource: [JAVA-557](\u003chttps://linear.app/getsentry/issue/JAVA-557/clock-usage-audit-wall-vs-monotonic-time-issues-across-the-sdk>) §B3.","author":{"url":"https://github.com/runningcode","@type":"Person","name":"runningcode"},"datePublished":"2026-06-22T09:04:48Z","url":"https://github.com/getsentry/sentry-java/issues/5578"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8df71000-6726-0e61-f973-d18c7ef1f84b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 914C:3AACE0:145684:1C5EB7:6B046562 |
| html-safe-nonce | 4a86fe38320c95790894b2c59cbf007a4c43b76c003a60c61d994374a29deda8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTRDOjNBQUNFMDoxNDU2ODQ6MUM1RUI3OjZCMDQ2NTYyIiwidmlzaXRvcl9pZCI6Ijc4NTA2NDQzNzcxMDA5MDM3NzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6395a1211fd030203095af510717d4d628fc6ff20c5ad768d8f316badded6c3a |
| hovercard-subject-tag | issue:4715078133 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-java/5578/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b00452f67c1750f49a335f92b75279c0bf6425252cf64451a62d0c350355973e/getsentry/sentry-java/issues/5578 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b00452f67c1750f49a335f92b75279c0bf6425252cf64451a62d0c350355973e/getsentry/sentry-java/issues/5578 |
| og:image:alt | Audit finding B3 — actual bug, MEDIUM (manifests when the clock steps mid-recording). Epoch is required for RRWeb payload timestamps (that part is correct), but the same wall values also drive wind... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | runningcode |
| hostname | github.com |
| expected-hostname | github.com |
| None | 83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-java git https://github.com/getsentry/sentry-java.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3368190 |
| octolytics-dimension-repository_nwo | getsentry/sentry-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3368190 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ca4d07a7cef4e4b75f821dc25e7300d80c1450a9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width