DesktopWindowXamlSource memory usage - possible leak #15698

Open
opened 2026-01-31 04:45:55 +00:00 by claunia · 0 comments
Owner

Originally created by @elsaco on GitHub (Oct 26, 2021).

Windows Terminal version (or Windows build number)

Windows Terminal Preview ver. 1.12.2931.0

Other Software

Windows 10

Steps to reproduce

  1. launch WT with one tab only
  2. observer memory usage in task manager
  3. using ctrl+- decrease font size to minimum allowed
  4. check memory usage, focus on DesktopWindowXamlSource reading

Expected Behavior

  1. no large memory increase

Actual Behavior

  1. memory usage for DesktopWindowXamlSource doubles
  2. for each additional tab the memory usage increases when using smallest fonts
  3. memory usage does not increase when using ctrl+= to enlarge fonts

Memory use at WT launch, single tab:
wt_mem_usage

Sample usage with one tab opened:
wt_mem_usage_small

Sample memory usage with two tabs opened:
wt_mem_usage_small_two_tabs

Originally created by @elsaco on GitHub (Oct 26, 2021). ### Windows Terminal version (or Windows build number) Windows Terminal Preview ver. 1.12.2931.0 ### Other Software Windows 10 ### Steps to reproduce 1. launch WT with one tab only 2. observer memory usage in task manager 3. using `ctrl+-` decrease font size to minimum allowed 4. check memory usage, focus on `DesktopWindowXamlSource` reading ### Expected Behavior 1. no large memory increase ### Actual Behavior 1. memory usage for `DesktopWindowXamlSource` doubles 2. for each additional tab the memory usage increases when using smallest fonts 3. memory usage does not increase when using `ctrl+=` to enlarge fonts Memory use at WT launch, single tab: ![wt_mem_usage](https://user-images.githubusercontent.com/3933920/138933471-8b6b2900-5e2c-4a3c-a48a-a4919229c161.PNG) Sample usage with one tab opened: ![wt_mem_usage_small](https://user-images.githubusercontent.com/3933920/138933296-f9425134-d043-4f7b-a36f-6d0c1543addb.PNG) Sample memory usage with two tabs opened: ![wt_mem_usage_small_two_tabs](https://user-images.githubusercontent.com/3933920/138933369-ad5a91cf-ed67-4a35-86d6-432b44dfdf4c.png)
claunia added the Issue-QuestionNeeds-TriageNeeds-Tag-FixResolution-Answered labels 2026-01-31 04:45:55 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15698