Memory leak after closing windows in single instance mode #12820
Unanswered
Kacper-Kondracki
asked this question in
Issue Triage
Replies: 1 comment 2 replies
-
|
This was determined along time ago to be a GTK problem that needs fixed upstream since it happens from all internal GTK apis. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Issue Description
Ghostty seems to never free used memory after spinning up multiple windows. Closing them can even cause additional memory usage consumption. This is apparent when using single instance mode.
Investigation with heaptrack shows the memory is indeed leaking. This is concerning but I'm not sure what it means

(Replicated via running heaptrack ghostty and then spawning new windows via +new-window)
heaptrack.ghostty.7071.zip
Issue happens on
cachyos-extra-v3/ghostty 1.3.1-2.2
extra/ghostty 1.3.1-2
aur/ghostty-nightly-bin 20260526.r16233.ga746d0f-1
Ghostty-1.3.2-main-+a746d0f-x86_64.appimage
Sadly, I'm unable to try ghostty-git with debug information enabled, it won't compile on my system.
Additional information about my system:
Operating System: CachyOS Linux
KDE Plasma Version: 6.6.5
KDE Frameworks Version: 6.26.0
Qt Version: 6.11.1
Kernel Version: 7.0.10-1-cachyos (64-bit)
Graphics Platform: Wayland
Processors: 20 × 13th Gen Intel® Core™ i5-13600KF
Memory: 32 GiB of RAM (31.2 GiB usable)
Graphics Processor: NVIDIA GeForce RTX 4080, Driver Version: 595.71.05
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: Z690 GAMING X DDR4
Expected Behavior
The memory is not leaked when closing windows
Actual Behavior
The memory is leaked until the last window closes fully terminating the ghostty process
Reproduction Steps
Ghostty Logs
Ghostty Version
OS Version Information
CachyOS x86_64, Linux 7.0.10-1-cachyos
(Linux only) Display Server
Wayland
(Linux only) Desktop Environment/Window Manager
KDE Plasma 6.6.5
Minimal Ghostty Configuration
gtk-single-instance = trueAdditional Relevant Configuration
No response
I acknowledge that:
```) on separate lines.Beta Was this translation helpful? Give feedback.
All reactions