Skip to content

NSInternalInconsistencyException raised when launching cat on Mac M1 #7271

@agroudiev

Description

@agroudiev

Describe the bug
When launching a command such as cat /dev/random on my Mac with an M1 chip, kitty instantly crashed. When launching kitty from another kitty window, I get the following error in the parent:

2024-03-27 13:50:27.098 kitty[18353:336199] *** Assertion failure in -[GLFWWindow setTitle:], NSWindow.m:2782
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: aString != nil'

To Reproduce

  1. Open kitty on Mac M1
  2. Launch cat /dev/random
  3. See error

Environment details

kitty 0.33.1 (a5fea33757) created by Kovid Goyal
Darwin *** 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000 arm64
ProductName:		macOS ProductVersion:		14.4.1 BuildVersion:		23E224
Frozen: True
Paths:
  kitty: /Applications/kitty.app/Contents/MacOS/kitty
  base dir: /Applications/kitty.app/Contents/Resources/kitty
  extensions dir: /Applications/kitty.app/Contents/Resources/Python/lib/kitty-extensions
  system shell: /bin/zsh
Loaded config files:
  /Users/antoinegroudiev/.config/kitty/kitty.conf

Config options different from defaults:
bold_font             SF Mono Bold
bold_italic_font      SF Mono Bold Italic
font_family           SF Mono
font_size             15.0
initial_window_height (450, 'px')
initial_window_width  (800, 'px')
italic_font           SF Mono Italic
macos_titlebar_color  1
remember_window_size  False
window_margin_width   FloatEdges(left=10.0, top=10.0, right=10.0, bottom=10.0)
Removed shortcuts:
	cmd+, →  edit_config_file
	cmd+enter →  new_window
	cmd+h →  hide_macos_app
	cmd+k →  clear_terminal to_cursor active
	cmd+m →  minimize_macos_window
	cmd+n →  new_os_window
	cmd+q →  quit
	cmd+t →  new_tab
	cmd+w →  close_tab
	ctrl+cmd+, →  load_config_file
	ctrl+cmd+f →  toggle_fullscreen
	opt+cmd+h →  hide_macos_other_apps
	opt+cmd+r →  clear_terminal reset active
	opt+cmd+s →  toggle_macos_secure_keyboard_entry
	shift+cmd+/ →  open_url https://sw.kovidgoyal.net/kitty/
	shift+cmd+[ →  previous_tab
	shift+cmd+] →  next_tab
	shift+cmd+d →  close_window
	shift+cmd+w →  close_os_window
Colors:
	background            #292c33   
	foreground            #acb2be   

Important environment variables seen by the kitty process:
	PATH                                /Applications/kitty.app/Contents/MacOS:/usr/bin:/bin:/usr/sbin:/sbin
	LANG                                fr_FR.UTF-8
	SHELL                               /bin/zsh
	DISPLAY                             /private/tmp/com.apple.launchd.4qtzx8Pf4Q/org.xquartz:0
	USER                               ***

Additional context
kitty still crashes when launched with --config NONE.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions