Ghostty crashes on image preview with yazi
inside tmux
.
#4266
Replies: 5 comments 16 replies
-
I think the key issue here is tmux. If it works just fine outside of tmux I think its unlikely a ghostty bug. Tmux does not offically support kitty image protocol but |
Beta Was this translation helpful? Give feedback.
-
The yazi documentation suggests two more options for the image preview, with them yazi does not crash for me.
|
Beta Was this translation helpful? Give feedback.
-
Edited: Testing timg yesterday, ghostty + tmux didn't crash when rendering smaller images, and did crash when rendering larger ones. Today I attempted to test again and somehow every image was output correctly: small, large, grids (which also crashed ghostty yesterday). I quit ghostty and started it back up with a fresh instance of tmux and now the crashes are occurring again... |
Beta Was this translation helpful? Give feedback.
-
Just tested the latest version and the crash is still happening |
Beta Was this translation helpful? Give feedback.
-
This is a fairly obscure bug because it's nested in
tmux
andyazi
: Ghostty crashes without any error messages when previewing large images/pdf's insideyazi
. The only config different from defaults is you need a higher than defaultmax_width
andmax_height
inyazi.toml
.To reproduce, set the config up as above, find a big image (or pdf), open
tmux
, openyazi
, and hover over the image. Within half a second all instances of ghostty shut down.This happens whether or not you have
set -g allow-passthrough on
in~/.tmux.conf
. It doesn't crash in the debug build, only slows down to a crawl.You can tell as you increase the
max_width
/max_height
that the delay through tmux is getting bigger, (up to a second or so), but beyond a certain point it just shuts down all instances of Ghostty in the release build. I think this is all to do with how the Kitty Graphics Protocol passes through, but I don't understand the internals well enough.Attached the log from the release build:
Debug Logs
Beta Was this translation helpful? Give feedback.
All reactions