Repository navigation
Ghostty crashes on image preview with yazi inside tmux.
#4266
|
This is a fairly obscure bug because it's nested in # ~/.config/yazi/yazi.toml
[preview]
max_width = 1500 # Or some other higher number
max_height = 1500To reproduce, set the config up as above, find a big image (or pdf), open This happens whether or not you have You can tell as you increase the
Attached the log from the release build: Debug Logs |
Replies: 16 comments 28 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 |
|
The yazi documentation suggests two more options for the image preview, with them yazi does not crash for me. |
|
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... |
|
Just tested the latest version and the crash is still happening |
|
I have found this thread as I have the same exact issue. I would also add that in kitty+tmux+yazi same pdf files are previewed just fine. I have subscribed to the thread, hopefully the issue will be resolved soon. Thanks for this great project. |
|
In case it helps, I can reproduce this issue quite reliably when displaying album art in Ghostty 1.2.3-1.fc43 I thought it was worth sharing, in case it helps others repro the issue. I'm getting 100% crash rate when the terminal window is maximized. And it does not seem to be image-dependent. Otherwise works fine in kitty+tmux. |
|
It's been a real long time. It's obviously real or was real. Can this still happen with tip? Can anyone who can reliably reproduce let me know? And if you can either get me a reproduction or a symbolized stack trace that would be wonderful... |
|
I am getting this, EndeavourOS, open a directory with a few pdfs, move between them and bang, yazi crashes taking the ghostty window with it. (edit: just that window, other ghostty instances are fine). I created the pdfs with: If that helps. |
|
Have the exact same issue. Used to do this in Kitty with no problems. I have a tmux keybind to open yazi in a popup within a running Ghostty session, and it crashes the entire Ghostty instance (all windows). Have a similar keybind to open lazygit the same way and it works with no issues. Yazi works perfectly fine when running directly in Ghostty (outside tmux). tmux config: Right before crashing, yazi shows: Environment:
Yazi debug output shows: PS: just tested same config on a Mac m2 I use for work, and it crashes the same way. |
|
Same issue with Ghostty + tmux + yazi while previewing pdf files. Works well with kitty/tmux/yazi or in ghostty without tmux |
|
Same issue with Ghostty + tmux + yazi while previewing pdf files (Omarchy). |
|
I just ran some tests with ghostty 1.3.1, and Using chafa on any of the same images that worked with timg does crash without fail though, and I'm not sure what the difference would be. I did manage to find an image that crashed timg, and it was 18 megs (the ones that worked are less than a meg each). Maybe the size of the rendered image factors in? |
|
Going to close and lock this. Please start a new discussion (possibly referencing this one) if you're still having problems. |


Going to close and lock this. Please start a new discussion (possibly referencing this one) if you're still having problems.