Repository navigation
fix(samples): Avoid an OOM at the end of a Nav3 sample app performance run - #6810
Merged
Merged
Conversation
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]>
Merged
3 of 9 tasks
Contributor
PR risk: mediumFor commit The model rated this change low. It was raised to medium because:
This label is a hint for reviewers, not an approval. |
📲 Install BuildsAndroid
|
0xadam-brown
marked this pull request as ready for review
November 30, 2026 10:33
0xadam-brown
requested review from
markushi and
runningcode
and removed request for
a team
November 30, 2026 10:33
runningcode
approved these changes
Nov 30, 2026
0xadam-brown
enabled auto-merge (squash)
November 30, 2026 11:20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📜 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.
NavDisplaykeeps 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
sendDefaultPIIis enabled.🔮 Next steps
None.
🤖 Generated with Claude Code
#skip-changelog