Repository navigation
fix(screenshots): Attach screenshots to the error envelope #2835
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
bitsandfoxes
wants to merge
18
commits into
main
Choose a base branch
from
fix/screenshots
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
3d2ce29
reworked screenshots
bitsandfoxes e30f504
merged main
bitsandfoxes 2f155cb
Merge branch 'main' into fix/screenshots
bitsandfoxes f78f4d4
perf(screenshots): Read back asynchronously and defer the encode
bitsandfoxes e8b974e
test(screenshots): Add an iOS device benchmark for screenshot capture
bitsandfoxes 20d6a72
ref(screenshots): Drop benchmark tooling and profiling instrumentation
bitsandfoxes b53a586
fix(screenshots): Take screenshots at the end of the error's frame
bitsandfoxes a83f1c1
skip screenshots of dropped events and warm up capture at startup
bitsandfoxes cc51434
stripped down
bitsandfoxes ccbb34a
Encode screenshots right after the readback so raw frames don't pile …
bitsandfoxes be644f3
Make the screenshot timeout a deadline and replace stale captures so …
bitsandfoxes 06e8f78
Skip the screenshot when none of the events sharing it got captured
bitsandfoxes b63efa8
Pass the first captured event to BeforeSendScreenshot and document it…
bitsandfoxes da0fd4e
Update screenshot docs and comments to match when captures happen
bitsandfoxes 74f9a18
Cancel replaced stale captures so a recovering main thread doesn't ta…
bitsandfoxes f99970e
Time screenshot captures with a monotonic clock so wall clock jumps d…
bitsandfoxes 974b177
Describe screenshots as shared while in flight rather than per frame
bitsandfoxes caac23e
Merge remote-tracking branch 'origin/main' into fix/screenshots
bitsandfoxes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Readback releases texture too early
Medium Severity
CaptureAsynccallsRenderTexture.ReleaseTemporaryas soon asAsyncGPUReadback.Requestreturns. Unity only queues that readback; the source must stay alive until the callback runs. A pooled screen-sized texture can be reused first, so the readback fails or returns overwritten pixels and the event gets a missing or corrupted screenshot.Reviewed by Cursor Bugbot for commit caac23e. Configure here.