Skip to content

fix(samples): Avoid an OOM at the end of a Nav3 sample app performance run - #6810

Merged
0xadam-brown merged 2 commits into
mainfrom
fix/nav3-perf-tab-oom
Nov 30, 2026
Merged

0xadam-brown merged 2 commits into
mainfrom
fix/nav3-perf-tab-oom

Conversation

@0xadam-brown

@0xadam-brown 0xadam-brown commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

📜 Description

The Nav3 sample app's route transitions are now skipped while a Performance run is active. Outside a run, routes still fade as before.

💡 Motivation and Context

A Performance run navigates every two frames, so the 350 ms route fade never finishes. NavDisplay keeps every outgoing entry composed until its transition settles, so they piled up (51 entries after a Light A/B run). When the run ended, all of them recomposed into the full Performance panel in the same frame, and the app ran out of memory on a 48 MB heap device.

With the transitions skipped, 2 entries stay composed during a run and the OOM is gone.

💚 How did you test it?

Ran Performance presets and A/B comparisons in the release sample on an API 28 emulator (48 MB heap), before and after the change. Before: OOM after the diagnostics were logged. After: no OOM, and 2 composed entries instead of 51.

📝 Checklist

  • I added GH Issue ID & Linear ID
  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.
  • Public API changes reviewed by another Mobile SDK team member or implemented according to the develop docs spec.

🔮 Next steps

None.

🤖 Generated with Claude Code

#skip-changelog

A run navigates every two frames, so the 350 ms route fade never finished and every
outgoing Performance entry stayed composed until the run ended (51 after a Light A/B
run). When the run ended, all of them recomposed into the full panel in the same
frame, which exceeded the heap on a 48 MB device. Skip the route transitions while a
run is active, which leaves 2 entries composed and no OOM.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

PR risk: medium

For commit 4cb426d.

The model rated this change low. It was raised to medium because:

  • R7: the model was not confident enough that the change is low

This label is a hint for reviewers, not an approval.

@sentry

sentry Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
SDK Size io.sentry.tests.size 8.66.0 (1) release

⚙️ sentry-android Build Distribution Settings

@0xadam-brown 0xadam-brown added the ship-it PR is ready to merge from a reviewer perspective label Nov 30, 2026
@0xadam-brown 0xadam-brown changed the title fix(samples): Avoid an OOM at the end of a Nav3 performance run fix(samples): Avoid an OOM at the end of a Nav3 sample app performance run Nov 30, 2026
@0xadam-brown
0xadam-brown marked this pull request as ready for review November 30, 2026 10:33
@0xadam-brown
0xadam-brown requested review from a team and adinauer as code owners November 30, 2026 10:33
@0xadam-brown
0xadam-brown requested review from markushi and runningcode and removed request for a team November 30, 2026 10:33
@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: medium PR risk score: medium labels Nov 30, 2026
@0xadam-brown
0xadam-brown enabled auto-merge (squash) November 30, 2026 11:20
@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: medium PR risk score: medium labels Nov 30, 2026
@0xadam-brown
0xadam-brown merged commit 1e750e4 into main Nov 30, 2026
38 checks passed
@0xadam-brown
0xadam-brown deleted the fix/nav3-perf-tab-oom branch November 30, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium ship-it PR is ready to merge from a reviewer perspective

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants