Skip to content

Crash when using icat with --image-id #6244

Description

@musjj

Describe the bug
Trying to replace an existing icated gif image with --image-id can make kitty crash.

To Reproduce
Steps to reproduce the behavior:

cd $(mktemp -d)
curl -o animated.gif 'https://upload.wikimedia.org/wikipedia/commons/2/2c/Rotating_earth_%28large%29.gif'
curl -o still.jpg 'https://upload.wikimedia.org/wikipedia/commons/8/8e/Blender_2.45_screenshot.jpg'
kitty +kitten icat --image-id 1 animated.gif
kitty +kitten icat --image-id 1 still.jpg
Environment details
kitty 0.28.1 (07bcc5ba61) created by Kovid Goyal
Linux username 6.2.13-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 26 Apr 2023 20:50:14 +
0000 x86_64
Arch Linux 6.2.13-arch1-1 (/dev/tty)

Running under: X11
Frozen: True
Paths:
  kitty: /home/username/.local/kitty.app/bin/kitty
  base dir: /home/username/.local/kitty.app/lib/kitty
  extensions dir: /home/username/.local/kitty.app/lib/kitty-extensions
  system shell: /bin/zsh
Loaded config files:
  /home/username/.config/kitty/kitty.conf

Config options different from defaults:
allow_remote_control      yes
copy_on_select            clipboard
cursor_blink_interval     0.0
enable_audio_bell         False
enabled_layouts           ['splits']
font_family               JetBrains Mono
font_size                 10.0
listen_on                 unix:/tmp/kitty
modify_font:
    underline_position 125%
    underline_thickness 150%
scrollback_pager          ['kitty-pager', 'INPUT_LINE_NUMBER', 'CURSOR_LINE', '
CURSOR_COLUMN']
show_hyperlink_targets    True
symbol_map:
        U+23fb - U+23fe → JetBrainsMono Nerd Font
        U+2665 - U+2665 → JetBrainsMono Nerd Font
        U+26a1 - U+26a1 → JetBrainsMono Nerd Font
        U+2b58 - U+2b58 → JetBrainsMono Nerd Font
        U+e000 - U+e00a → JetBrainsMono Nerd Font
        U+e0a0 - U+e0a3 → JetBrainsMono Nerd Font
        U+e0b0 - U+e0d4 → JetBrainsMono Nerd Font
        U+e200 - U+e2a9 → JetBrainsMono Nerd Font
        U+e300 - U+e3e3 → JetBrainsMono Nerd Font
        U+e5fa - U+e6aa → JetBrainsMono Nerd Font
        U+e700 - U+e7c5 → JetBrainsMono Nerd Font
        U+ea60 - U+ebeb → JetBrainsMono Nerd Font
        U+f000 - U+f2e0 → JetBrainsMono Nerd Font
        U+f300 - U+f32f → JetBrainsMono Nerd Font
        U+f400 - U+f4a9 → JetBrainsMono Nerd Font
        U+f500 - U+f8ff → JetBrainsMono Nerd Font
        U+f0001 - U+f1af0 → JetBrainsMono Nerd Font
text_composition_strategy 1.0 18
update_check_interval     0.0
url_style                 1
window_padding_width      FloatEdges(left=15.0, top=10.0, right=10.0, bottom=0)
Added shortcuts:
        ctrl+shift+space →  launch --stdin-add-formatting --type overlay --stdi
n-source=@screen_scrollback kitty-pager
Colors:
        active_border_color       #2b2d36   
        background                #0d0f18   
        bell_border_color         #ecd3a0   
        color0                    #4a4f71   
        color1                    #dd6777   
        color10                   #95d3af   
        color11                   #f1d8a5   
        color12                   #8baff1   
        color13                   #c79bf0   
        color14                   #98d3ee   
        color15                   #d0d3d8   
        color2                    #90ceaa   
        color3                    #ecd3a0   
        color4                    #86aaec   
        color5                    #c296eb   
        color6                    #93cee9   
        color7                    #cbced3   
        color8                    #4a4f71   
        color9                    #e26c7c   
        cursor                    #cbced3   
        cursor_text_color         #a5b6cf   
        foreground                #a5b6cf   
        inactive_border_color     #2b2d36   
        selection_background      #1c1e27   
        selection_foreground      #a5b6cf   
        url_color                 #93cee9   

Important environment variables seen by the kitty process:
        PATH                                /usr/local/sbin:/usr/local/bin:/usr
/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:

Additional context
Reproducible with kitty --config NONE

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions