Skip to content

fix(telemetry): drop App-Hang reports from memory-starved machines#197

Merged
caezium merged 1 commit into
mainfrom
fix/anr-memory-pressure-filter
Jun 25, 2026
Merged

fix(telemetry): drop App-Hang reports from memory-starved machines#197
caezium merged 1 commit into
mainfrom
fix/anr-memory-pressure-filter

Conversation

@caezium

@caezium caezium commented Jun 24, 2026

Copy link
Copy Markdown
Owner

The current Sentry App-Hang (ANR) feed is dominated by environmental stalls, not Burrow defects:

  • The newest cluster (BURROW-5x → GH [Sentry] BURROW-5D: App Hanging: App hanging for at least 2000 ms. #172–196) is single-occurrence each, on macOS 27 betas with 85–173 MB free RAM.
  • The big regressed group BURROW-N (687 events / 102 users) is a generic CA::Transaction::flush display-commit stall; its latest event is macOS 27 beta, 85 MB free.
  • The specific main-thread culprits (BackupStatus.lastBackupDaysAgo, Doctor probes, AppIcon.image, PostHog) are already off-main as of 0.8.1 — verified in current code.

So a >2 s freeze on a machine with tens of MB free is the OS thrashing render under memory pressure. This adds a beforeSend filter dropping App-Hang events when the device reports < 150 MB free; genuine hangs on healthy machines still report. Conservative — if free memory can't be read, the event is kept.

Verified: Debug build succeeds (the Sentry Event API usage type-checks).

The recent ANR reports — including the regressed BURROW-N (687 events / 102
users) and the whole newest BURROW-5x cluster — are CoreAnimation display-commit
stalls on macOS 27 betas with only tens of MB of free RAM: the OS thrashing the
render path under memory pressure, not a Burrow defect. The specific main-thread
blockers were already moved off-main in 0.8.1.

Add a beforeSend filter that drops App-Hang events when the device reports
< 150 MB free memory; real hangs on healthy machines still report. Conservative:
if free memory can't be read, the event is kept.
@caezium
caezium merged commit 7f762c9 into main Jun 25, 2026
1 check passed
@caezium
caezium deleted the fix/anr-memory-pressure-filter branch June 25, 2026 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant