kitty
kitty copied to clipboard
Kitty segfaults when clicking file hyperlinks
Describe the bug
Sometimes, when I click on a file link in kitty, the whole process crashes. On the most recent occurrence I found this in journalctl
:
Aug 11 13:15:24 carlos-linux kernel: kitty[62066]: segfault at 60 ip 00007f8efb4f795b sp 00007fffeb63e720 error 6 in iris_dri.so[7f8efa9dd000+1045000]
Aug 11 13:15:24 carlos-linux kernel: Code: 00 00 00 48 83 c4 08 5b 5d 41 5c 41 5d c3 90 49 8b 34 24 48 85 f6 74 0a f0 83 2e 01 0f 85 95 00 00 00 48 8b 7b f8 48 83 e7 fe <f0> 83 2f 01 75 d3 48 83 c4 08 5b 5d 41 5c 41 5d e9 a0 9c 4e ff 48
To Reproduce Steps to reproduce the behavior:
- produce a file link, e.g. with
ls --hyperlink=always
or thehyperlinked_grep
kitten. - click on the link
The crashes only happen sometime, and (I think) more commonly after the process has been running for a while.
Environment details
This is my open-actions.conf
# https://sw.kovidgoyal.net/kitty/kittens/hyperlinked_grep/
# Open any file with a fragment in vim, fragments are generated
# by the hyperlink_grep kitten and nothing else so far.
protocol file
fragment_matches [0-9]+
action launch --type=overlay nvim +${FRAGMENT} ${FILE_PATH}
# Open text files without fragments in the editor
protocol file
mime text/*
action launch --type=overlay nvim ${FILE_PATH}
# Open directories
protocol file
mime inode/directory
action launch --type=tab --cwd $FILE_PATH
I'm using version 0.7.2 of neovim.
from ctrl+shift+f6
:
kitty 0.25.2 created by Kovid Goyal
Linux carlos-linux 5.15.0-051500-generic #202110312130 SMP Sun Oct 31 21:33:20 UTC
2021 x86_64
Ubuntu 22.04.1 LTS carlos-linux /dev/tty
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS"
Running under: X11
Frozen: True
Paths:
kitty: /usr/bin/kitty
base dir: /usr/lib/kitty
extensions dir: /usr/lib/kitty-extensions
system shell: /usr/bin/zsh
Loaded config files:
/etc/xdg/kitty/kitty.conf
/home/ca/.config/kitty/kitty.conf
Config options different from defaults:
adjust_line_height 1.0
allow_remote_control y
bold_font JuliaMono Black
bold_italic_font JuliaMono BlackItalic
click_interval 0.18
dynamic_background_opacity True
enabled_layouts ['tall:bias=50;full_size=1;mirrored=false', 'fat', 'grid
', 'horizontal', 'vertical']
font_family JuliaMono Regular
font_size 12.0
input_delay 1
italic_font JuliaMono MediumItalic
listen_on unix:@kittyc1748
resize_in_steps True
scrollback_lines 100000
scrollback_pager ['nvim', '-c', 'map q :qa!<CR>', '-c', 'set clipboard+=u
nnamedplus', '-c', 'silent write! /tmp/kitty_scrollback_buffer | te echo -n "$(cat
/tmp/kitty_scrollback_buffer)" && sleep 1000 ']
tab_bar_edge 1
tab_bar_style powerline
tab_powerline_style slanted
update_check_interval 0.0
url_style 1
Added shortcuts:
ø → kitten hints --hints-text-color 'yellow' --type path --program -
f3 → launch --stdin-source=@screen_scrollback --stdin-add-formatting --type
=tab less +G -R
alt+, → combine : launch --stdin-source=@last_cmd_output --type=primary : p
aste_from_selection
ctrl+. → send_text all
ctrl+page_up → previous_tab
ctrl+page_down → next_tab
ctrl+f4 → close_window
ctrl+shift+d → detach_window new-tab
ctrl+shift+y → paste_from_selection
Changed shortcuts:
ctrl+shift+, → resize_window narrower
ctrl+shift+. → resize_window wider
ctrl+shift+0 → restore_font_size
ctrl+shift+t → new_tab_with_cwd !neighbor
ctrl+shift+enter → new_window_with_cwd
ctrl+shift+up → set_background_opacity -0.12
ctrl+shift+down → set_background_opacity +0.12
ctrl+shift+f2 → launch --type=tab kitty +edit-config
Colors:
background #0a0a0a
color0 #3e3e3e
color1 #c9205a
color10 #9fff3f
color11 #ffff52
color12 #788eff
color13 #ff4dff
color14 #26fffe
color15 #edecea
color2 #00ac07
color3 #c97c00
color4 #216bf9
color5 #9715e0
color6 #0fa8bd
color7 #ffffff
color8 #5f5a60
color9 #ff4c51
foreground #eeeeee
Important environment variables seen by the kitty process:
PATH /usr/local/sbin:/usr/local/bin:/usr/sbi
n:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/ca/bin/
:/usr/sbin:/sbin
LANG en_US.UTF-8
SHELL /usr/bin/zsh
DISPLAY :0
USER ca
LC_TIME en_GB.UTF-8
XDG_SESSION_TYPE x11
LC_MONETARY en_GB.UTF-8
XDG_SESSION_CLASS user
LC_ADDRESS en_GB.UTF-8
XDG_RUNTIME_DIR /run/user/1000
XDG_MENU_PREFIX gnome-
LC_TELEPHONE en_GB.UTF-8
XDG_CURRENT_DESKTOP ubuntu:GNOME
XDG_SESSION_DESKTOP ubuntu-xorg
LC_NAME en_GB.UTF-8
LC_MEASUREMENT en_GB.UTF-8
LC_IDENTIFICATION en_GB.UTF-8
XDG_DATA_DIRS /usr/share/ubuntu-xorg:/usr/share/gnome
:/home/ca/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/lo
cal/share/:/usr/share/:/var/lib/snapd/desktop
XDG_CONFIG_DIRS /etc/xdg/xdg-ubuntu-xorg:/etc/xdg
LC_NUMERIC en_GB.UTF-8
LC_PAPER en_GB.UTF-8
This debug output has been copied to the clipboard
Additional context
Try to reproduce the problem with kitty --config NONE
if you cannot then post a minimal kitty.conf that reproduces the problem. If the problem involves interaction with some other terminal program post a minimal config for that program to reproduce the problem as well.