Skip to content

Fix stack overflow during screenshot capturing on Windows #900

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

Merged
merged 4 commits into from
May 14, 2025

Conversation

tustanivsky
Copy link
Collaborator

@tustanivsky tustanivsky commented May 7, 2025

This PR moves screenshot image buffer allocation to the heap to prevent stack overflow in the crash handler during the on_crash hook processing.

A similar fix was made earlier in #410.

Closes #895

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@tustanivsky tustanivsky marked this pull request as ready for review May 7, 2025 19:32
@tustanivsky tustanivsky marked this pull request as draft May 8, 2025 14:30

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@tustanivsky tustanivsky marked this pull request as ready for review May 14, 2025 07:43
@tustanivsky tustanivsky requested review from bitsandfoxes and removed request for bitsandfoxes May 14, 2025 07:43
@tustanivsky tustanivsky marked this pull request as draft May 14, 2025 08:13
@tustanivsky tustanivsky requested a review from bitsandfoxes May 14, 2025 08:18
@tustanivsky tustanivsky marked this pull request as ready for review May 14, 2025 08:19
Copy link
Contributor

@bitsandfoxes bitsandfoxes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@tustanivsky tustanivsky merged commit ea0c8b1 into main May 14, 2025
29 checks passed
@tustanivsky tustanivsky deleted the fix/screen-capture-crash branch May 14, 2025 08:32
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.

Memory allocation exception in Unreal editor during crash handling screenshot capture
2 participants