Repository navigation
Labels
crashCauses a crash, very high priority to fixCauses a crash, very high priority to fixguiGUI or app issue regardless of platform (i.e. Swift, GTK)GUI or app issue regardless of platform (i.e. Swift, GTK)os/linux
Milestone
Description
Discussed in #10405
Originally posted by kaddkaka January 21, 2026
Issue Description
Opening the Terminal Inspector a second time crashes ghostty
Expected Behavior
Opening terminal inspector should not crash ghostty.
Actual Behavior
Ghostty window closes silently.
Reproduction Steps
- start ghostty
ctrl+shift+ialt+f4ctrl+shift+i- -> crash
Ghostty Logs
I got this issue on Ubuntu 25.11 with bash.
kat reproduced the same issue in a discord question thread and posted some logs over there: https://discord.com/channels/1005603569187160125/1463641647052095530
Ghostty Version
built today on tip with `zig build --release=fast`
~$ ghostty --version
Ghostty 1.3.0-main+5b38e0bd7
Version
- version: 1.3.0-main+5b38e0bd7
- channel: tip
Build Config
- Zig version : 0.15.2
- build mode : .ReleaseFast
- app runtime : .gtk
- font engine : .fontconfig_freetype
- renderer : renderer.generic.Renderer(renderer.OpenGL)
- libxev : io_uring
- kernel version: 6.17.0-8-generic
- desktop env : other
- GTK version :
build : 4.20.1
runtime : 4.20.1
- libadwaita : enabled
build : 1.8.0
runtime : 1.8.0
- libX11 : enabled
- libwayland : enabled
OS Version Information
Ubuntu 25.11
(Linux only) Display Server
None
(Linux only) Desktop Environment/Window Manager
Ubuntu wayland maybe?
Minimal Ghostty Configuration
<empty config>Additional Relevant Configuration
Similar closed issues I found:
- Crash when closing terminal inspector #1058
- Calling inspector:toggle from a keybind when it's already open crashes the terminal #732
I acknowledge that:
- I have reviewed the FAQ and confirm that my issue is NOT among them.
- I have searched the Ghostty repository (both open and closed Discussions and Issues) and confirm this is not a duplicate of an existing issue or discussion.
- I have checked the "Preview" tab on all text fields to ensure that everything looks right, and have wrapped all configuration and code in code blocks with a group of three backticks (
```) on separate lines.
Metadata
Metadata
Assignees
Labels
crashCauses a crash, very high priority to fixCauses a crash, very high priority to fixguiGUI or app issue regardless of platform (i.e. Swift, GTK)GUI or app issue regardless of platform (i.e. Swift, GTK)os/linux
Activity
jcollie commentedon Jan 21, 2026
Confirmed on a debug build.
jcollie commentedon Jan 21, 2026
Reproduction is start Ghostty ⇒
ctrl+shift+i⇒alt+f4⇒ctrl+shift+i⇒ crash.Opening a two instances of the inspector on separate surfaces works fine, it's only when opening a second inspector on the same surface that you get a crash.
jcollie commentedon Feb 2, 2026
This is still present as of f5b02f5.
jcollie commentedon Feb 2, 2026
The following patch appears to fix the crash:
mitchellh commentedon Feb 25, 2026
I'm still digging through stuff, but I think this might actually be an ImGui bug where Shutdown also closes the libgl library but it doesn't null the pointers, so Init tries to call invalid pointers for GL functions. We do need to shutdown to free resources from the defunct context though, so I'm looking into how we can work around this.
apprt/gtk: fix SIGSEGV on ImGui GLArea re-realize
apprt/gtk: fix SIGSEGV on ImGui GLArea re-realize (#11025)
Sync with upstream ghostty-org/ghostty (7 cmux patches on latest)