Skip to content

Fix intermittent crash when capturing screenshots due to invalid viewport#1331

Merged
tustanivsky merged 3 commits intomainfrom
fix/screenshot-viewport-crash
Apr 2, 2026
Merged

Fix intermittent crash when capturing screenshots due to invalid viewport#1331
tustanivsky merged 3 commits intomainfrom
fix/screenshot-viewport-crash

Conversation

@tustanivsky
Copy link
Copy Markdown
Collaborator

This PR adds a null check to the screenshot capturing utility to prevent intermittent crashes when the game viewport is not initialized.

Closes #1329

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 2, 2026

Semver Impact of This PR

None (no version bump detected)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


Bug Fixes 🐛

  • Prevent potential script injection in crash-reporter-build workflow by fix-it-felix-sentry in #1324

Internal Changes 🔧

  • (deps) Update CLI to v3.3.5 by github-actions in #1323
  • Update validate-pr workflow by stephanie-anderson in #1328

Other

  • Fix intermittent crash when capturing screenshots due to invalid viewport by tustanivsky in #1331
  • Suppress superfluous warnings when detecting for SteamOS by yangskyboxlabs in #1326
  • Add out-of-process screenshot capturing on Windows by tustanivsky in #1325

🤖 This preview updates automatically when you update the PR.

@tustanivsky tustanivsky merged commit 1378431 into main Apr 2, 2026
25 checks passed
@tustanivsky tustanivsky deleted the fix/screenshot-viewport-crash branch April 2, 2026 13:59
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.

Crash trying to capture screenshot when ensure() is triggered soon after starting PIE (Viewport is null)

4 participants