Skip to content
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

Release font resources to fix memory leak #9250

Merged
merged 4 commits into from
Aug 6, 2024

Conversation

hiteshwpfmsft
Copy link
Contributor

@hiteshwpfmsft hiteshwpfmsft commented Jun 14, 2024

Fixes #6296

Description

Printing a large size of document ends up consuming a lot of memory. The change in the PR targets to address this issue.
This change releases the font resources after every four pages. We see huge memory consumption difference as the number of pages grow.
Also, with the change we make sure that all resources gests released once printing is completed.

image

Regression

Don't know.

Testing

Made sure existing functionality remains same. Validated this by comparing the file sizes and the content of it.

Risk

Low.

@hiteshwpfmsft hiteshwpfmsft added * NO MERGE * metadata: The PR is not ready for merge yet (see discussion for detailed reasons) draft labels Jun 14, 2024
@hiteshwpfmsft hiteshwpfmsft requested a review from a team as a code owner June 14, 2024 16:27
@dotnet-policy-service dotnet-policy-service bot added PR metadata: Label to tag PRs, to facilitate with triage and removed draft labels Jun 14, 2024
@hiteshwpfmsft hiteshwpfmsft marked this pull request as draft June 14, 2024 16:48
@hiteshwpfmsft hiteshwpfmsft changed the title [Draft] Release font resources to fix memory leak Release font resources to fix memory leak Jul 19, 2024
@hiteshwpfmsft hiteshwpfmsft removed * NO MERGE * metadata: The PR is not ready for merge yet (see discussion for detailed reasons) draft labels Jul 19, 2024
@hiteshwpfmsft hiteshwpfmsft marked this pull request as ready for review July 19, 2024 08:39
@hiteshwpfmsft hiteshwpfmsft requested a review from a team as a code owner July 19, 2024 08:39
@dipeshmsft dipeshmsft self-assigned this Aug 5, 2024
@dipeshmsft dipeshmsft merged commit 70962a5 into main Aug 6, 2024
8 checks passed
@dipeshmsft dipeshmsft deleted the user/hik/MemoryLeakReleaseFontResource branch August 6, 2024 19:07
@github-actions github-actions bot locked and limited conversation to collaborators Sep 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
PR metadata: Label to tag PRs, to facilitate with triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

XPS huge memory issues
4 participants