Repository: alacritty/alacritty (language: rust)

Issue:
macOS specific keyboard input crashes alacritty 0.14.0
edit: changed the topic title to better reflect the issue given what others have commented regarding their own experience with crashing.

I use a piece of software on macOS called [BetterTouchTool](https://folivora.ai/) and one of its features is being able to turn caps lock into a hyper key. Hyper key for the uninitiated is actually a simultaneous key press event for the actual modifier keys `Command|Shift|Control|Option`.  I use the hyper key in combination with keyboard bindings within alacritty such that my hyper key essentially handles the standard bash / readline Ctrl-* key sequences--that is to say,  Hyper-C acts as Ctrl-c  and terminates a process. 

```
[[keyboard.bindings]]
chars = "\u0003"
key = "C"
mods = "Command|Shift|Control|Option"
```

Previously, (i.e. the past two years) this was working just fine.

Expected behavior: The character sequence defined in the key binding is sent, the desired effect occurs, and the terminal continues to operate without issue.

Actual behavior: Repeated (although sometimes on the first try) use of the hyper key crashes the terminal causing it to suddenly close.

### System

OS:
```
> sw_vers
ProductName:		macOS
ProductVersion:		15.0.1
BuildVersion:  		24A348
``` 
Version:
```
> alacritty --version
alacritty 0.14.0 (22a4475)
```

### Logs

```
[2.758060875s] [INFO ] [alacritty_winit_event] Event { window_id: Some(WindowId(5198973488)), payload: Frame }
[2.758098667s] [INFO ] [alacritty_winit_event] About to wait
[2.758120958s] [INFO ] [alacritty_winit_event] About to wait
[2.765228375s] [INFO ] [alacritty_winit_event] About to wait
[2.771734167s] [INFO ] [alacritty_winit_event] ModifiersChanged(Modifiers { state: ModifiersState(0x0), pressed_mods: ModifiersKeys(0x0) })
[2.771803708s] [INFO ] [alacritty_winit_event] KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(ControlLeft), logical_key: Named(Control), text: None, location: Left, state: Released, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Control) } }, is_synthetic: false }
[2.771818125s] [INFO ] [alacritty_winit_event] ModifiersChanged(Modifiers { state: ModifiersState(SHIFT | ALT | SUPER), pressed_mods: ModifiersKeys(0x0) })
[2.771874583s] [INFO ] [alacritty_winit_event] KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(ShiftLeft), logical_key: Named(Shift), text: None, location: Left, state: Released, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Shift) } }, is_synthetic: false }
[2.771896125s] [INFO ] [alacritty_winit_event] ModifiersChanged(Modifiers { state: ModifiersState(ALT | SUPER), pressed_mods: ModifiersKeys(0x0) })
[2.771950375s] [INFO ] [alacritty_winit_event] KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(AltLeft), logical_key: Named(Alt), text: None, location: Left, state: Released, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Alt) } }, is_synthetic: false }
[2.771962542s] [INFO ] [alacritty_winit_event] ModifiersChanged(Modifiers { state: ModifiersState(SUPER), pressed_mods: ModifiersKeys(0x0) })
[2.772015583s] [INFO ] [alacritty_winit_event] KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(SuperLeft), logical_key: Named(Super), text: None, location: Left, state: Released, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Super) } }, is_synthetic: false }
[2.772026875s] [INFO ] [alacritty_winit_event] ModifiersChanged(Modifiers { state: ModifiersState(0x0), pressed_mods: ModifiersKeys(0x0) })
[2.772066917s] [INFO ] [alacritty_winit_event] About to wait
[2.772157250s] [INFO ] [alacritty_winit_event] About to wait
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid message sent to event "NSEvent: type=FlagsChanged loc=(0,744) time=3879.1 flags=0x100 win=0x135e20a30 winNum=1167 ctxt=0x0 keyCode=15"'
*** First throw call stack:
(
	0   CoreFoundation                      0x00000001955b0ec0 __exceptionPreprocess + 176
	1   libobjc.A.dylib                     0x0000000195096cd8 objc_exception_throw + 88
	2   Foundation                          0x00000001967ad588 -[NSCalendarDate initWithCoder:] + 0
	3   AppKit                              0x0000000199225cec -[NSEvent charactersIgnoringModifiers] + 604
	4   alacritty                           0x0000000104969154 _ZN5winit13platform_impl5macos5event16create_key_event17h5ffd7f45014bc6b9E + 2508
	5   alacritty                           0x00000001049594a8 _ZN5winit13platform_impl5macos4view9WinitView13flags_changed17h58c32ee31fdc0f1bE + 344
	6   AppKit                              0x00000001991a80a8 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 484
	7   AppKit                              0x00000001991a7cf4 -[NSWindow(NSEventRouting) sendEvent:] + 284
	8   AppKit                              0x00000001999a53e0 -[NSApplication(NSEventRouting) sendEvent:] + 1212
	9   alacritty                           0x0000000104961a3c _ZN5winit13platform_impl5macos3app16WinitApplication10send_event17h9d7b11ed09e187deE + 1040
	10  AppKit                              0x00000001995b8984 -[NSApplication _handleEvent:] + 60
	11  AppKit                              0x0000000199073ba4 -[NSApplication run] + 520
	12  alacritty                           0x000000010469e090 _ZN5winit13platform_impl5macos13event_handler12EventHandler3set17ha6185e593ba31ad4E + 280
	13  alacritty                           0x000000010474d378 _ZN9alacritty4main17h290211ac615fedbeE + 7624
	14  alacritty                           0x00000001046c2060 _ZN3std3sys9backtrace28__rust_begin_short_backtrace17h86645a6c57eec1ecE + 12
	15  alacritty                           0x000000010468392c _ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17h7b27810acbbe86f2E + 16
	16  alacritty                           0x00000001048f1598 _ZN3std2rt19lang_start_internal17h9e88109c8deb8787E + 808
	17  alacritty                           0x000000010474de4c main + 52
	18  dyld                                0x00000001950d4274 start + 2840
)
libc++abi: terminating due to uncaught exception of type NSException
[1]    14442 abort      alacritty -vv --print-events
```
I cannot confirm if this hyper key issue applies to any other piece of software that adds this functionality (such as karabiner elements) or if this is an issue specific to how bettertouchtool implements hyperkey. For meanwhile, I've downgraded back to [alacritty 0.13.2](https://github.com/Homebrew/homebrew-cask/blob/ee57cb02e89536c4eb0624e7175705c947693ac7/Casks/a/alacritty.rb) which has resolved the issue.

```
curl 'https://raw.githubusercontent.com/Homebrew/homebrew-cask/ee57cb02e89536c4eb0624e7175705c947693ac7/Casks/a/alacritty.rb' -o alacritty.rb
brew install -s alacritty.rb
```

Not sure if there's something I'm overlooking with the latest update. Appreciate any help.


Discussion / hints:
> Hyper key for the uninitiated is actually a simultaneous key press event for the actual modifier keys Command|Shift|Control|Option

That is **not** what a hyper key is.

> For meanwhile, I've downgrade back to alacritty 0.13.2.

So can you confirm that the downgrade fixed the issue?

> > For meanwhile, I've downgrade back to alacritty 0.13.2.
> 
> So can you confirm that the downgrade fixed the issue?

Yes, I can confirm downgrading fixed the issue. Furthermore, I have also discovered a way to reliably trigger a crash and have logs for both 0.13.2 and 0.14.0 that shows version 0.13.2 continues to operate just fine after the trigger while 0.14.0 crashes.

To replicate perform the following input sequence: 
- hyper-e
- release hyper while still holding e

A crash should follow. For debug purposes I disabled my config and performed this on a default initialization of alacritty, so no keyboard bindings for a `Command|Shift|Control|Option` sequence are present. There are other crashing triggers involving the hyper key, this sequence was just chosen for replication purposes.

```
# alacritty 0.13.2 (NO CRASH)

[5.037860708s] [INFO ] [alacritty] winit event: AboutToWait
[12.184192292s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 8947, tv_nsec: 3589083 }, requested_resume: None })
[12.184428750s] [INFO ] [alacritty] winit event: AboutToWait
[12.188891500s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 8954, tv_nsec: 150102708 }, requested_resume: None })
[12.189848583s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(5779823808)), event: KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(ControlLeft), logical_key: Named(Control), text: None, location: Left, state: Pressed, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Control) } }, is_synthetic: false } }
[12.189894208s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(5779823808)), event: ModifiersChanged(Modifiers { state: ModifiersState(SHIFT | CONTROL | ALT | SUPER), pressed_mods: ModifiersKeys(0x0) }) }
[12.189917042s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(5779823808)), event: KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(ShiftLeft), logical_key: Named(Shift), text: None, location: Left, state: Pressed, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Shift) } }, is_synthetic: false } }
[12.189938542s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(5779823808)), event: KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(AltLeft), logical_key: Named(Alt), text: None, location: Left, state: Pressed, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Alt) } }, is_synthetic: false } }
[12.189959542s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(5779823808)), event: KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(SuperLeft), logical_key: Named(Super), text: None, location: Left, state: Pressed, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Super) } }, is_synthetic: false } }
[12.189979667s] [INFO ] [alacritty] winit event: AboutToWait
[12.244646667s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 8954, tv_nsec: 155653958 }, requested_resume: None })
[12.244814875s] [INFO ] [alacritty] winit event: AboutToWait
[12.257316000s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 8954, tv_nsec: 210481666 }, requested_resume: None })
[12.257733125s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(5779823808)), event: ModifiersChanged(Modifiers { state: ModifiersState(0x0), pressed_mods: ModifiersKeys(0x0) }) }
[12.257769667s] [INFO ] [alacritty] winit event: AboutToWait
[12.257843208s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 8954, tv_nsec: 223431416 }, requested_resume: None })
[12.258066500s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(5779823808)), event: KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(ControlLeft), logical_key: Named(Control), text: None, location: Left, state: Released, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Control) } }, is_synthetic: false } }
[12.258108958s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(5779823808)), event: ModifiersChanged(Modifiers { state: ModifiersState(SHIFT | ALT | SUPER), pressed_mods: ModifiersKeys(0x0) }) }
[12.258133375s] [INFO ] [alacritty] winit event: AboutToWait
[12.264652458s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 8954, tv_nsec: 223794333 }, requested_resume: None })
[12.265316583s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(5779823808)), event: KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(ShiftLeft), logical_key: Named(Shift), text: None, location: Left, state: Released, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Shift) } }, is_synthetic: false } }
[12.265345750s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(5779823808)), event: ModifiersChanged(Modifiers { state: ModifiersState(ALT | SUPER), pressed_mods: ModifiersKeys(0x0) }) }
[12.265363417s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(5779823808)), event: KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(AltLeft), logical_key: Named(Alt), text: None, location: Left, state: Released, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Alt) } }, is_synthetic: false } }
[12.265383083s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(5779823808)), event: ModifiersChanged(Modifiers { state: ModifiersState(SUPER), pressed_mods: ModifiersKeys(0x0) }) }
[12.265399042s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(5779823808)), event: KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(SuperLeft), logical_key: Named(Super), text: None, location: Left, state: Released, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Super) } }, is_synthetic: false } }
[12.265415292s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(5779823808)), event: ModifiersChanged(Modifiers { state: ModifiersState(0x0), pressed_mods: ModifiersKeys(0x0) }) }
[12.265429833s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(5779823808)), event: KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(ControlLeft), logical_key: Named(Control), text: None, location: Left, state: Pressed, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Control) } }, is_synthetic: false } }
[12.265446417s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(5779823808)), event: ModifiersChanged(Modifiers { state: ModifiersState(SHIFT | CONTROL | ALT | SUPER), pressed_mods: ModifiersKeys(0x0) }) }
[12.265460208s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(5779823808)), event: KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(ShiftLeft), logical_key: Named(Shift), text: None, location: Left, state: Pressed, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Shift) } }, is_synthetic: false } }
[12.265530292s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(5779823808)), event: KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(AltLeft), logical_key: Named(Alt), text: None, location: Left, state: Pressed, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Alt) } }, is_synthetic: false } }
[12.265551958s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(5779823808)), event: KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(SuperLeft), logical_key: Named(Super), text: None, location: Left, state: Pressed, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Super) } }, is_synthetic: false } }
[12.265568333s] [INFO ] [alacritty] winit event: AboutToWait
[12.268472792s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 8954, tv_nsec: 231233041 }, requested_resume: None })
[12.269625625s] [INFO ] [alacritty] winit event: AboutToWait
[12.275055917s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 8954, tv_nsec: 235289083 }, requested_resume: None })
[12.275414125s] [INFO ] [alacritty] winit event: AboutToWait
[12.275576375s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 8954, tv_nsec: 241111125 }, requested_resume: None })
[12.275697375s] [INFO ] [alacritty] winit event: AboutToWait
[12.277330792s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 8954, tv_nsec: 241359625 }, requested_resume: None })
[12.278101292s] [INFO ] [alacritty] winit event: AboutToWait
[12.278149917s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 8954, tv_nsec: 243784000 }, requested_resume: None })
[12.278227583s] [INFO ] [alacritty] winit event: AboutToWait
[12.279384708s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 8954, tv_nsec: 243886166 }, requested_resume: None })
[12.284205833s] [INFO ] [alacritty] winit event: AboutToWait
[12.284268875s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 8954, tv_nsec: 249893208 }, requested_resume: None })
[12.284330667s] [INFO ] [alacritty] winit event: AboutToWait
[12.284353625s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 8954, tv_nsec: 249988583 }, requested_resume: None })
[12.284372875s] [INFO ] [alacritty] winit event: AboutToWait
[12.284390583s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 8954, tv_nsec: 250026541 }, requested_resume: None })
[12.284430000s] [INFO ] [alacritty] winit event: AboutToWait
[12.285378583s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 8954, tv_nsec: 250085458 }, requested_resume: None })
[12.285440542s] [INFO ] [alacritty] winit event: AboutToWait
[12.286107708s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 8954, tv_nsec: 251099875 }, requested_resume: None })
[12.286160208s] [INFO ] [alacritty] winit event: AboutToWait
[12.286274792s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 8954, tv_nsec: 251817541 }, requested_resume: None })
[12.286343000s] [INFO ] [alacritty] winit event: AboutToWait
[12.287345875s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 8954, tv_nsec: 252003000 }, requested_resume: None })
[12.287398167s] [INFO ] [alacritty] winit event: AboutToWait
[12.297783500s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 8954, tv_nsec: 253056291 }, requested_resume: None })
[12.297895208s] [INFO ] [alacritty] winit event: AboutToWait
[12.467419542s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 8954, tv_nsec: 263566750 }, requested_resume: None })
[12.468031542s] [INFO ] [alacritty] winit event: AboutToWait
[12.468116250s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 8954, tv_nsec: 433744416 }, requested_resume: None })
[12.476060500s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(5779823808)), event: KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(KeyE), logical_key: Character("E"), text: Some("E"), location: Standard, state: Pressed, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: Some("\u{5}"), key_without_modifiers: Character("e") } }, is_synthetic: false } }
[12.476109042s] [INFO ] [alacritty] winit event: AboutToWait
[12.721700583s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 8954, tv_nsec: 441781791 }, requested_resume: None })
[12.721903917s] [INFO ] [alacritty] winit event: AboutToWait
[12.731665583s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 8954, tv_nsec: 687570458 }, requested_resume: None })
[12.732430208s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(5779823808)), event: ModifiersChanged(Modifiers { state: ModifiersState(0x0), pressed_mods: ModifiersKeys(0x0) }) }
[12.732490000s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(5779823808)), event: KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(ControlLeft), logical_key: Named(Control), text: None, location: Left, state: Released, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Control) } }, is_synthetic: false } }
[12.732524417s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(5779823808)), event: ModifiersChanged(Modifiers { state: ModifiersState(SHIFT | ALT | SUPER), pressed_mods: ModifiersKeys(0x0) }) }
[12.732541625s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(5779823808)), event: KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(ShiftLeft), logical_key: Named(Shift), text: None, location: Left, state: Released, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Shift) } }, is_synthetic: false } }
[12.732558667s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(5779823808)), event: ModifiersChanged(Modifiers { state: ModifiersState(ALT | SUPER), pressed_mods: ModifiersKeys(0x0) }) }
[12.732573083s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(5779823808)), event: KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(AltLeft), logical_key: Named(Alt), text: None, location: Left, state: Released, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Alt) } }, is_synthetic: false } }
[12.732625333s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(5779823808)), event: ModifiersChanged(Modifiers { state: ModifiersState(SUPER), pressed_mods: ModifiersKeys(0x0) }) }
[12.732644333s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(5779823808)), event: KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(SuperLeft), logical_key: Named(Super), text: None, location: Left, state: Released, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Super) } }, is_synthetic: false } }
[12.732659208s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(5779823808)), event: ModifiersChanged(Modifiers { state: ModifiersState(0x0), pressed_mods: ModifiersKeys(0x0) }) }
[12.732672042s] [INFO ] [alacritty] winit event: AboutToWait
[12.742946250s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 8954, tv_nsec: 698329500 }, requested_resume: None })
[12.743788583s] [INFO ] [alacritty] winit event: AboutToWait
[12.747534875s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 8954, tv_nsec: 709458500 }, requested_resume: None })
[12.747713833s] [INFO ] [alacritty] winit event: AboutToWait
[12.748779667s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 8954, tv_nsec: 713376250 }, requested_resume: None })
[12.749553667s] [INFO ] [alacritty] winit event: AboutToWait
[12.749616375s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 8954, tv_nsec: 715249041 }, requested_resume: None })
[12.749704833s] [INFO ] [alacritty] winit event: AboutToWait
[12.750729125s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 8954, tv_nsec: 715368958 }, requested_resume: None })
[12.750803750s] [INFO ] [alacritty] winit event: AboutToWait
[12.750832250s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 8954, tv_nsec: 716466916 }, requested_resume: None })
[12.750906000s] [INFO ] [alacritty] winit event: AboutToWait
[12.853127625s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 8954, tv_nsec: 716565416 }, requested_resume: None })
[12.859804167s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(5779823808)), event: KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(KeyE), logical_key: Character("e"), text: None, location: Standard, state: Released, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: Some("e"), key_without_modifiers: Character("e") } }, is_synthetic: false } }
[12.859899458s] [INFO ] [alacritty] winit event: AboutToWait
[12.970171958s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 8954, tv_nsec: 825565541 }, requested_resume: None })
[12.970381375s] [INFO ] [alacritty] winit event: AboutToWait
[13.349646792s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 8954, tv_nsec: 936064750 }, requested_resume: None })
[13.349896208s] [INFO ] [alacritty] winit event: AboutToWait
[17.280910500s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 8955, tv_nsec: 315603708 }, requested_resume: None })
[17.281248417s] [INFO ] [alacritty] winit event: AboutToWait
```  

```
# alacritty 0.14.0 (CRASH)

[5.060403334s] [INFO ] [alacritty_winit_event] About to wait
[10.116034625s] [INFO ] [alacritty_winit_event] About to wait
[10.432507209s] [INFO ] [alacritty_winit_event] About to wait
[10.438134875s] [INFO ] [alacritty_winit_event] KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(ControlLeft), logical_key: Named(Control), text: None, location: Left, state: Pressed, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Control) } }, is_synthetic: false }
[10.438207417s] [INFO ] [alacritty_winit_event] ModifiersChanged(Modifiers { state: ModifiersState(SHIFT | CONTROL | ALT | SUPER), pressed_mods: ModifiersKeys(0x0) })
[10.438360334s] [INFO ] [alacritty_winit_event] KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(ShiftLeft), logical_key: Named(Shift), text: None, location: Left, state: Pressed, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Shift) } }, is_synthetic: false }
[10.438483334s] [INFO ] [alacritty_winit_event] KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(AltLeft), logical_key: Named(Alt), text: None, location: Left, state: Pressed, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Alt) } }, is_synthetic: false }
[10.438592792s] [INFO ] [alacritty_winit_event] KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(SuperLeft), logical_key: Named(Super), text: None, location: Left, state: Pressed, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Super) } }, is_synthetic: false }
[10.438682167s] [INFO ] [alacritty_winit_event] About to wait
[10.494778209s] [INFO ] [alacritty_winit_event] About to wait
[10.507170750s] [INFO ] [alacritty_winit_event] ModifiersChanged(Modifiers { state: ModifiersState(0x0), pressed_mods: ModifiersKeys(0x0) })
[10.507571875s] [INFO ] [alacritty_winit_event] KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(ControlLeft), logical_key: Named(Control), text: None, location: Left, state: Released, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Control) } }, is_synthetic: false }
[10.507646875s] [INFO ] [alacritty_winit_event] ModifiersChanged(Modifiers { state: ModifiersState(SHIFT | ALT | SUPER), pressed_mods: ModifiersKeys(0x0) })
[10.507795375s] [INFO ] [alacritty_winit_event] About to wait
[10.514347750s] [INFO ] [alacritty_winit_event] KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(ShiftLeft), logical_key: Named(Shift), text: None, location: Left, state: Released, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Shift) } }, is_synthetic: false }
[10.514443667s] [INFO ] [alacritty_winit_event] ModifiersChanged(Modifiers { state: ModifiersState(ALT | SUPER), pressed_mods: ModifiersKeys(0x0) })
[10.514575042s] [INFO ] [alacritty_winit_event] KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(AltLeft), logical_key: Named(Alt), text: None, location: Left, state: Released, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Alt) } }, is_synthetic: false }
[10.514607417s] [INFO ] [alacritty_winit_event] ModifiersChanged(Modifiers { state: ModifiersState(SUPER), pressed_mods: ModifiersKeys(0x0) })
[10.514709542s] [INFO ] [alacritty_winit_event] KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(SuperLeft), logical_key: Named(Super), text: None, location: Left, state: Released, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Super) } }, is_synthetic: false }
[10.514733375s] [INFO ] [alacritty_winit_event] ModifiersChanged(Modifiers { state: ModifiersState(0x0), pressed_mods: ModifiersKeys(0x0) })
[10.514829542s] [INFO ] [alacritty_winit_event] KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(ControlLeft), logical_key: Named(Control), text: None, location: Left, state: Pressed, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Control) } }, is_synthetic: false }
[10.514852334s] [INFO ] [alacritty_winit_event] ModifiersChanged(Modifiers { state: ModifiersState(SHIFT | CONTROL | ALT | SUPER), pressed_mods: ModifiersKeys(0x0) })
[10.514946584s] [INFO ] [alacritty_winit_event] KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(ShiftLeft), logical_key: Named(Shift), text: None, location: Left, state: Pressed, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Shift) } }, is_synthetic: false }
[10.515043000s] [INFO ] [alacritty_winit_event] KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(AltLeft), logical_key: Named(Alt), text: None, location: Left, state: Pressed, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Alt) } }, is_synthetic: false }
[10.515136792s] [INFO ] [alacritty_winit_event] KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(SuperLeft), logical_key: Named(Super), text: None, location: Left, state: Pressed, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Super) } }, is_synthetic: false }
[10.515220584s] [INFO ] [alacritty_winit_event] About to wait
[10.519030375s] [INFO ] [alacritty_winit_event] About to wait
[10.526814834s] [INFO ] [alacritty_winit_event] About to wait
[10.526937167s] [INFO ] [alacritty_winit_event] About to wait
[10.532402959s] [INFO ] [alacritty_winit_event] About to wait
[10.532514792s] [INFO ] [alacritty_winit_event] About to wait
[10.532617417s] [INFO ] [alacritty_winit_event] About to wait
[10.532651750s] [INFO ] [alacritty_winit_event] About to wait
[10.533132250s] [INFO ] [alacritty_winit_event] About to wait
[10.533721750s] [INFO ] [alacritty_winit_event] About to wait
[10.533898334s] [INFO ] [alacritty_winit_event] About to wait
[10.534721917s] [INFO ] [alacritty_winit_event] About to wait
[10.534752709s] [INFO ] [alacritty_winit_event] About to wait
[10.534957084s] [INFO ] [alacritty_winit_event] About to wait
[10.535016167s] [INFO ] [alacritty_winit_event] About to wait
[10.542320417s] [INFO ] [alacritty_winit_event] About to wait
[10.573502834s] [INFO ] [alacritty_winit_event] About to wait
[10.654833875s] [INFO ] [alacritty_winit_event] KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(KeyE), logical_key: Character("E"), text: Some("E"), location: Standard, state: Pressed, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: Some("\u{5}"), key_without_modifiers: Character("e") } }, is_synthetic: false }
[10.655635375s] [INFO ] [alacritty_winit_event] About to wait
[10.657183542s] [INFO ] [alacritty_winit_event] About to wait
[10.661176375s] [INFO ] [alacritty_winit_event] About to wait
[10.662297667s] [INFO ] [alacritty_winit_event] About to wait
[10.890904959s] [INFO ] [alacritty_winit_event] About to wait
[10.899843417s] [INFO ] [alacritty_winit_event] ModifiersChanged(Modifiers { state: ModifiersState(0x0), pressed_mods: ModifiersKeys(0x0) })
[10.900023792s] [INFO ] [alacritty_winit_event] KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(ControlLeft), logical_key: Named(Control), text: None, location: Left, state: Released, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Control) } }, is_synthetic: false }
[10.900066209s] [INFO ] [alacritty_winit_event] ModifiersChanged(Modifiers { state: ModifiersState(SHIFT | ALT | SUPER), pressed_mods: ModifiersKeys(0x0) })
[10.900182334s] [INFO ] [alacritty_winit_event] KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(ShiftLeft), logical_key: Named(Shift), text: None, location: Left, state: Released, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Shift) } }, is_synthetic: false }
[10.900207334s] [INFO ] [alacritty_winit_event] ModifiersChanged(Modifiers { state: ModifiersState(ALT | SUPER), pressed_mods: ModifiersKeys(0x0) })
[10.900325667s] [INFO ] [alacritty_winit_event] KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(AltLeft), logical_key: Named(Alt), text: None, location: Left, state: Released, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Alt) } }, is_synthetic: false }
[10.900349292s] [INFO ] [alacritty_winit_event] ModifiersChanged(Modifiers { state: ModifiersState(SUPER), pressed_mods: ModifiersKeys(0x0) })
[10.900452500s] [INFO ] [alacritty_winit_event] KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(SuperLeft), logical_key: Named(Super), text: None, location: Left, state: Released, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Super) } }, is_synthetic: false }
[10.900474500s] [INFO ] [alacritty_winit_event] ModifiersChanged(Modifiers { state: ModifiersState(0x0), pressed_mods: ModifiersKeys(0x0) })
[10.900549292s] [INFO ] [alacritty_winit_event] About to wait
[10.911604959s] [INFO ] [alacritty_winit_event] About to wait
[10.914262500s] [INFO ] [alacritty_winit_event] About to wait
[10.916050542s] [INFO ] [alacritty_winit_event] About to wait
[10.916197000s] [INFO ] [alacritty_winit_event] About to wait
[10.917205875s] [INFO ] [alacritty_winit_event] About to wait
[10.917295625s] [INFO ] [alacritty_winit_event] About to wait
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid message sent to event "NSEvent: type=FlagsChanged loc=(0,628) time=9163.2 flags=0x100 win=0x1537245c0 winNum=2280 ctxt=0x0 keyCode=14"'
*** First throw call stack:
(
	0   CoreFoundation                      0x00000001955b0ec0 __exceptionPreprocess + 176
	1   libobjc.A.dylib                     0x0000000195096cd8 objc_exception_throw + 88
	2   Foundation                          0x00000001967ad588 -[NSCalendarDate initWithCoder:] + 0
	3   AppKit                              0x0000000199225cec -[NSEvent charactersIgnoringModifiers] + 604
	4   alacritty                           0x0000000104e09154 _ZN5winit13platform_impl5macos5event16create_key_event17h5ffd7f45014bc6b9E + 2508
	5   alacritty                           0x0000000104df94a8 _ZN5winit13platform_impl5macos4view9WinitView13flags_changed17h58c32ee31fdc0f1bE + 344
	6   AppKit                              0x00000001991a80a8 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 484
	7   AppKit                              0x00000001991a7cf4 -[NSWindow(NSEventRouting) sendEvent:] + 284
	8   AppKit                              0x00000001999a53e0 -[NSApplication(NSEventRouting) sendEvent:] + 1212
	9   alacritty                           0x0000000104e01a3c _ZN5winit13platform_impl5macos3app16WinitApplication10send_event17h9d7b11ed09e187deE + 1040
	10  AppKit                              0x00000001995b8984 -[NSApplication _handleEvent:] + 60
	11  AppKit                              0x0000000199073ba4 -[NSApplication run] + 520
	12  alacritty                           0x0000000104b3e090 _ZN5winit13platform_impl5macos13event_handler12EventHandler3set17ha6185e593ba31ad4E + 280
	13  alacritty                           0x0000000104bed378 _ZN9alacritty4main17h290211ac615fedbeE + 7624
	14  alacritty                           0x0000000104b62060 _ZN3std3sys9backtrace28__rust_begin_short_backtrace17h86645a6c57eec1ecE + 12
	15  alacritty                           0x0000000104b2392c _ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17h7b27810acbbe86f2E + 16
	16  alacritty                           0x0000000104d91598 _ZN3std2rt19lang_start_internal17h9e88109c8deb8787E + 808
	17  alacritty                           0x0000000104bede4c main + 52
	18  dyld                                0x00000001950d4274 start + 2840
)
libc++abi: terminating due to uncaught exception of type NSException
[1]    24035 abort      alacritty -vv --print-events
```
Can you bisect which patch caused this issue? I'd assume it's one of the "bump winit" ones, so shouldn't be too difficult to bisect (I'd probably start with 48c088a50c977dfaf2a5a7052a5ddd39071e6063 as the oldest bound).
Maybe same here, it seems like I just pressed some keys at the same time (unfortunately no log)

```
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               alacritty [56762]
Path:                  /Applications/Alacritty.app/Contents/MacOS/alacritty
Identifier:            org.alacritty
Version:               0.14.0 (1)
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2024-11-05 21:23:23.3810 +0800
OS Version:            macOS 15.1 (24B83)
Report Version:        12
Anonymous UUID:        FAC2E769-196C-A117-FE00-785C878CDECA

Sleep/Wake UUID:       13170C84-DFB3-47B7-9E6C-E3F492B862D8

Time Awake Since Boot: 11000 seconds
Time Since Wake:       2642 seconds

System Integrity Protection: enabled

Crashed Thread:        0  main  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Termination Reason:    Namespace SIGNAL, Code 6 Abort trap: 6
Terminating Process:   alacritty [56762]

Application Specific Information:
abort() called


Thread 0 Crashed:: main Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	       0x190536600 __pthread_kill + 8
1   libsystem_pthread.dylib       	       0x19056ef70 pthread_kill + 288
2   libsystem_c.dylib             	       0x19047b908 abort + 128
3   libc++abi.dylib               	       0x19052544c abort_message + 132
4   libc++abi.dylib               	       0x190513a40 demangling_terminate_handler() + 348
5   libobjc.A.dylib               	       0x1901b93e4 _objc_terminate() + 156
6   libc++abi.dylib               	       0x190524710 std::__terminate(void (*)()) + 16
7   libc++abi.dylib               	       0x190527cdc __cxxabiv1::failed_throw(__cxxabiv1::__cxa_exception*) + 88
8   libc++abi.dylib               	       0x190527c84 __cxa_throw + 92
9   libobjc.A.dylib               	       0x1901aee40 objc_exception_throw + 448
10  Foundation                    	       0x1918c5478 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 288
11  AppKit                        	       0x194324b18 -[NSEvent charactersIgnoringModifiers] + 604
12  alacritty                     	       0x1010fd154 winit::platform_impl::macos::event::create_key_event::h5ffd7f45014bc6b9 + 2508
13  alacritty                     	       0x1010ed4a8 winit::platform_impl::macos::view::WinitView::flags_changed::h58c32ee31fdc0f1b + 344
14  AppKit                        	       0x1942a7070 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 484
15  AppKit                        	       0x1942a6cbc -[NSWindow(NSEventRouting) sendEvent:] + 284
16  AppKit                        	       0x194abea34 -[NSApplication(NSEventRouting) sendEvent:] + 1212
17  alacritty                     	       0x1010f5a3c winit::platform_impl::macos::app::WinitApplication::send_event::h9d7b11ed09e187de + 1040
18  AppKit                        	       0x1946cc89c -[NSApplication _handleEvent:] + 60
19  AppKit                        	       0x194172b08 -[NSApplication run] + 520
20  alacritty                     	       0x100e32090 winit::platform_impl::macos::event_handler::EventHandler::set::ha6185e593ba31ad4 + 280
21  alacritty                     	       0x100ee1378 alacritty::main::h290211ac615fedbe + 7624
22  alacritty                     	       0x100e56060 std::sys::backtrace::__rust_begin_short_backtrace::h86645a6c57eec1ec + 12
23  alacritty                     	       0x100e1792c std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::h7b27810acbbe86f2 + 16
24  alacritty                     	       0x101085598 std::rt::lang_start_internal::h9e88109c8deb8787 + 808
25  alacritty                     	       0x100ee1e4c main + 52
26  dyld                          	       0x1901ec274 start + 2840
```
The same problem, except that just long-pressing the caps lock key + any letter key will cause Alacritty to crash。

alacritty version: 0.14.0 (1)
mac os: 15.1 (24B83)
Some here, long press the Cap key, then click the Cap key again, then click any key will cause Alacritty to crash.

alacritty 0.14.0 (22a4475)
macOS 15.1 (24B83)

```
2024-11-12 11:57:48.767 alacritty[5190:146902] +[IMKClient subclass]: chose IMKClient_Modern
2024-11-12 11:57:48.767 alacritty[5190:146902] +[IMKInputSession subclass]: chose IMKInputSession_Modern
2024-11-12 11:57:51.126 alacritty[5190:146902] error messaging the mach port for IMKCFRunLoopWakeUpReliable
2024-11-12 11:57:51.603 alacritty[5190:146902] TSM AdjustCapsLockLEDForKeyTransitionHandling - _ISSetPhysicalKeyboardCapsLockLED Inhibit
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid message sent to event "NSEvent: type=FlagsChanged loc=(0,1080) time=9287.7 flags=0x100 win=0x7fa5fb71b580 winNum=3098 ctxt=0x0 keyCode=38"'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007ff8116126e6 __exceptionPreprocess + 242
	1   libobjc.A.dylib                     0x00007ff8110fabd0 objc_exception_throw + 62
	2   Foundation                          0x00007ff812687c41 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 362
	3   AppKit                              0x00007ff8150a4f75 -[NSEvent charactersIgnoringModifiers] + 667
	4   alacritty                           0x000000010b2ab351 _ZN5winit13platform_impl5macos5event16create_key_event17h1aabfe9b3dde4b80E + 3169
	5   alacritty                           0x000000010b2937d2 _ZN5winit13platform_impl5macos4view9WinitView13flags_changed17h53c8f56ad6c9d9cfE + 370
	6   AppKit                              0x00007ff815013281 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 509
	7   AppKit                              0x00007ff815012e69 -[NSWindow(NSEventRouting) sendEvent:] + 339
	8   AppKit                              0x00007ff8158edb25 -[NSApplication(NSEventRouting) sendEvent:] + 1829
	9   alacritty                           0x000000010b29c84e _ZN5winit13platform_impl5macos3app16WinitApplication10send_event17hc7a7c239b792cae3E + 1150
	10  AppKit                              0x00007ff815461803 -[NSApplication _handleEvent:] + 65
	11  AppKit                              0x00007ff814eabc85 -[NSApplication run] + 654
	12  alacritty                           0x000000010af83786 _ZN5winit13platform_impl5macos13event_handler12EventHandler3set17h969c4926d96a3150E + 294
	13  alacritty                           0x000000010b099292 _ZN9alacritty4main17h386288442259070bE + 5378
	14  alacritty                           0x000000010b061506 _ZN3std3sys9backtrace28__rust_begin_short_backtrace17hf3178238452475b4E + 6
	15  alacritty                           0x000000010afa755c _ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17h38804fccc7a4aaf0E + 12
	16  alacritty                           0x000000010b21adcf _ZN3std2rt19lang_start_internal17hb1473645dbe40065E + 767
	17  alacritty                           0x000000010b09a8fc main + 44
	18  dyld                                0x00007ff81112f2cd start + 1805
)
libc++abi: terminating due to uncaught exception of type NSException
zsh: abort      /Applications/Alacritty.app/Contents/MacOS/alacritty
```

Also, downgrade to 0.13.2 fixed the issue.
Yesterday my computer was on MacOS 14.x, alacritty would crash; Today, after upgrading to MacOS 15.1, alacritty still has crash issues. 
The crash only occurred after Alaclitty was upgraded to version 0.14, and there was no crash in version 0.13.

Press the Shift/Tab key to switch to the Chinese input method, after entering a piece of content, it is easy to crash when you cut the Tab key again to switch back to English. I've had four crashes in a day today.


```bash
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               alacritty [20589]
Path:                  /Applications/Alacritty.app/Contents/MacOS/alacritty
Identifier:            org.alacritty
Version:               0.14.0 (1)
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2024-11-19 23:08:09.1100 +0800
OS Version:            macOS 15.1 (24B83)
Report Version:        12
Anonymous UUID:        101184D7-0D42-A4C9-99E6-3AD27A088D37

Sleep/Wake UUID:       8CF04E08-5D54-4FED-A740-185AEF3F79E5

Time Awake Since Boot: 76000 seconds
Time Since Wake:       12758 seconds

System Integrity Protection: enabled

Crashed Thread:        0  main  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Termination Reason:    Namespace SIGNAL, Code 6 Abort trap: 6
Terminating Process:   alacritty [20589]

Application Specific Information:
abort() called


Thread 0 Crashed:: main Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	       0x18fe16600 __pthread_kill + 8
1   libsystem_pthread.dylib       	       0x18fe4ef70 pthread_kill + 288
2   libsystem_c.dylib             	       0x18fd5b908 abort + 128
3   libc++abi.dylib               	       0x18fe0544c abort_message + 132
4   libc++abi.dylib               	       0x18fdf3a40 demangling_terminate_handler() + 348
5   libobjc.A.dylib               	       0x18fa993e4 _objc_terminate() + 156
6   libc++abi.dylib               	       0x18fe04710 std::__terminate(void (*)()) + 16
7   libc++abi.dylib               	       0x18fe07cdc __cxxabiv1::failed_throw(__cxxabiv1::__cxa_exception*) + 88
8   libc++abi.dylib               	       0x18fe07c84 __cxa_throw + 92
9   libobjc.A.dylib               	       0x18fa8ee40 objc_exception_throw + 448
10  Foundation                    	       0x1911a5478 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 288
11  AppKit                        	       0x193c04b18 -[NSEvent charactersIgnoringModifiers] + 604
12  alacritty                     	       0x1028dd154 winit::platform_impl::macos::event::create_key_event::h5ffd7f45014bc6b9 + 2508
13  alacritty                     	       0x1028cd4a8 winit::platform_impl::macos::view::WinitView::flags_changed::h58c32ee31fdc0f1b + 344
14  AppKit                        	       0x193b87070 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 484
15  AppKit                        	       0x193b86cbc -[NSWindow(NSEventRouting) sendEvent:] + 284
16  AppKit                        	       0x19439ea34 -[NSApplication(NSEventRouting) sendEvent:] + 1212
17  alacritty                     	       0x1028d5a3c winit::platform_impl::macos::app::WinitApplication::send_event::h9d7b11ed09e187de + 1040
18  AppKit                        	       0x193fac89c -[NSApplication _handleEvent:] + 60
19  AppKit                        	       0x193a52b08 -[NSApplication run] + 520
20  alacritty                     	       0x102612090 winit::platform_impl::macos::event_handler::EventHandler::set::ha6185e593ba31ad4 + 280
21  alacritty                     	       0x1026c1378 alacritty::main::h290211ac615fedbe + 7624
22  alacritty                     	       0x102636060 std::sys::backtrace::__rust_begin_short_backtrace::h86645a6c57eec1ec + 12
23  alacritty                     	       0x1025f792c std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::h7b27810acbbe86f2 + 16
24  alacritty                     	       0x102865598 std::rt::lang_start_internal::h9e88109c8deb8787 + 808
25  alacritty                     	       0x1026c1e4c main + 52
26  dyld                          	       0x18facc274 start + 2840

Thread 1:: socket listener
0   libsystem_kernel.dylib        	       0x18fe166e4 __accept + 8
1   alacritty                     	       0x10286aa3c std::os::unix::net::listener::UnixListener::accept::hdf7cdc7d20824afc + 76
2   alacritty                     	       0x1026346b8 std::sys::backtrace::__rust_begin_short_backtrace::h1c7191c661393112 + 132
3   alacritty                     	       0x1026ae058 core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::hfc280185aa25c892 + 228
4   alacritty                     	       0x102873710 std::sys::pal::unix::thread::Thread::new::thread_start::hd88bc8e95f2ca709 + 52
5   libsystem_pthread.dylib       	       0x18fe4f2e4 _pthread_start + 136
6   libsystem_pthread.dylib       	       0x18fe4a0fc thread_start + 8

Thread 2:: config watcher
0   libsystem_kernel.dylib        	       0x18fe0ddb0 semaphore_wait_trap + 8
1   libdispatch.dylib             	       0x18fc9cbf4 _dispatch_sema4_wait + 28
2   libdispatch.dylib             	       0x18fc9d2a8 _dispatch_semaphore_wait_slow + 132
3   alacritty                     	       0x102865c54 std::thread::park::hada7fd3068eec817 + 208
4   alacritty                     	       0x10260c330 std::sync::mpmc::list::Channel$LT$T$GT$::recv::_$u7b$$u7b$closure$u7d$$u7d$::h3d6bf022b6dda7dc + 368
5   alacritty                     	       0x10260beb0 std::sync::mpmc::list::Channel$LT$T$GT$::recv::hab863dc1f1c8e1a7 + 448
6   alacritty                     	       0x1026362bc std::sys::backtrace::__rust_begin_short_backtrace::ha18e8b3d9bffe51d + 596
7   alacritty                     	       0x1026adabc core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h229d876eb5607479 + 332
8   alacritty                     	       0x102873710 std::sys::pal::unix::thread::Thread::new::thread_start::hd88bc8e95f2ca709 + 52
9   libsystem_pthread.dylib       	       0x18fe4f2e4 _pthread_start + 136
10  libsystem_pthread.dylib       	       0x18fe4a0fc thread_start + 8

Thread 3:: notify-rs fsevents loop
0   libsystem_kernel.dylib        	       0x18fe0de34 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x18fe205d0 mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x18fe169d8 mach_msg_overwrite + 480
3   libsystem_kernel.dylib        	       0x18fe0e17c mach_msg + 24
4   CoreFoundation                	       0x18ff35edc __CFRunLoopServiceMachPort + 160
5   CoreFoundation                	       0x18ff3473c __CFRunLoopRun + 1212
6   CoreFoundation                	       0x18ff33bc4 CFRunLoopRunSpecific + 588
7   CoreFoundation                	       0x18ffaee50 CFRunLoopRun + 64
8   alacritty                     	       0x1027dfe94 std::sys::backtrace::__rust_begin_short_backtrace::h0252a186a7bdcf17 + 156
9   alacritty                     	       0x1027e26d8 core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::he1ea47d1bd74e67d + 240
10  alacritty                     	       0x102873710 std::sys::pal::unix::thread::Thread::new::thread_start::hd88bc8e95f2ca709 + 52
11  libsystem_pthread.dylib       	       0x18fe4f2e4 _pthread_start + 136
12  libsystem_pthread.dylib       	       0x18fe4a0fc thread_start + 8

Thread 4:: PTY reader
0   libsystem_kernel.dylib        	       0x18fe13efc kevent + 8
1   alacritty                     	       0x1027e8bf4 polling::kqueue::Poller::wait::h756aeddfa57cf8b9 + 180
2   alacritty                     	       0x1027eae60 polling::Poller::wait::h919b7c1c606c26e7 + 1344
3   alacritty                     	       0x102634f50 std::sys::backtrace::__rust_begin_short_backtrace::h6440a1618ce5a74a + 1128
4   alacritty                     	       0x1026addcc core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h573025069cd612b7 + 460
5   alacritty                     	       0x102873710 std::sys::pal::unix::thread::Thread::new::thread_start::hd88bc8e95f2ca709 + 52
6   libsystem_pthread.dylib       	       0x18fe4f2e4 _pthread_start + 136
7   libsystem_pthread.dylib       	       0x18fe4a0fc thread_start + 8

Thread 5:: com.apple.NSEventThread
0   libsystem_kernel.dylib        	       0x18fe0de34 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x18fe205d0 mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x18fe169d8 mach_msg_overwrite + 480
3   libsystem_kernel.dylib        	       0x18fe0e17c mach_msg + 24
4   CoreFoundation                	       0x18ff35edc __CFRunLoopServiceMachPort + 160
5   CoreFoundation                	       0x18ff3473c __CFRunLoopRun + 1212
6   CoreFoundation                	       0x18ff33bc4 CFRunLoopRunSpecific + 588
7   AppKit                        	       0x193b84b8c _NSEventThread + 148
8   libsystem_pthread.dylib       	       0x18fe4f2e4 _pthread_start + 136
9   libsystem_pthread.dylib       	       0x18fe4a0fc thread_start + 8

Thread 6:
0   libsystem_pthread.dylib       	       0x18fe4a0e8 start_wqthread + 0

Thread 7:
0   libsystem_pthread.dylib       	       0x18fe4a0e8 start_wqthread + 0

Thread 8:
0   libsystem_pthread.dylib       	       0x18fe4a0e8 start_wqthread + 0

Thread 9:: HIE: M_ 4d017aeca249e4c4 2024-11-19 23:08:09.090
0   libsystem_kernel.dylib        	       0x18fe0de34 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x18fe205d0 mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x18fe3d424 thread_suspend + 108
3   HIServices                    	       0x19680b138 SOME_OTHER_THREAD_SWALLOWED_AT_LEAST_ONE_EXCEPTION + 20
4   Foundation                    	       0x1910ec734 __NSThread__start__ + 724
5   libsystem_pthread.dylib       	       0x18fe4f2e4 _pthread_start + 136
6   libsystem_pthread.dylib       	       0x18fe4a0fc thread_start + 8


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x0000000000000000
    x4: 0x000000018fe09e1b   x5: 0x000000016d820800   x6: 0x000000000000006e   x7: 0x0000000000000143
    x8: 0x503cfcba6b727182   x9: 0x503cfcbb9f8449c2  x10: 0x0000000000000051  x11: 0x000000000000000b
   x12: 0x000000000000000b  x13: 0x0000000190313e9a  x14: 0x00000000001ff800  x15: 0x00000000000007fb
   x16: 0x0000000000000148  x17: 0x00000001fd1c1850  x18: 0x0000000000000000  x19: 0x0000000000000006
   x20: 0x0000000000000103  x21: 0x00000001f4f63920  x22: 0x00000001f2e30000  x23: 0x00000001f61b1218
   x24: 0x00006000034d9740  x25: 0x0000000000000001  x26: 0x0000000000000000  x27: 0x000000016d821a80
   x28: 0x0000000000000005   fp: 0x000000016d820770   lr: 0x000000018fe4ef70
    sp: 0x000000016d820750   pc: 0x000000018fe16600 cpsr: 0x40001000
   far: 0x0000000000000000  esr: 0x56000080  Address size fault

Binary Images:
       0x1025dc000 -        0x102a0ffff org.alacritty (0.14.0) <8c10705a-a543-3019-8ad8-81e28129ff40> /Applications/Alacritty.app/Contents/MacOS/alacritty
       0x10e3f4000 -        0x10e3fffff libobjc-trampolines.dylib (*) <f1242604-dcb7-30a9-a19a-182991e6e645> /usr/lib/libobjc-trampolines.dylib
       0x10ff18000 -        0x110677fff com.apple.AGXMetalG15G-C0 (322.10) <701fb4b2-c454-3af7-aefb-5317777a3141> /System/Library/Extensions/AGXMetalG15G_C0.bundle/Contents/MacOS/AGXMetalG15G_C0
       0x110864000 -        0x1108cbfff com.apple.AppleMetalOpenGLRenderer (1.0) <cf2a5428-9317-35dd-847f-f1d1970961a0> /System/Library/Extensions/AppleMetalOpenGLRenderer.bundle/Contents/MacOS/AppleMetalOpenGLRenderer
       0x18fe0d000 -        0x18fe47ff7 libsystem_kernel.dylib (*) <9fea25a4-e8ca-3f3d-901c-a53ff2bc7217> /usr/lib/system/libsystem_kernel.dylib
       0x18fe48000 -        0x18fe54fff libsystem_pthread.dylib (*) <3b8268be-4e02-3b4a-8b41-baed2bbaacff> /usr/lib/system/libsystem_pthread.dylib
       0x18fce2000 -        0x18fd63ffb libsystem_c.dylib (*) <96556ba0-9c34-326a-89f4-d3835de617ae> /usr/lib/system/libsystem_c.dylib
       0x18fdf2000 -        0x18fe0cfff libc++abi.dylib (*) <7de440df-bc7d-3ff3-905d-2e17a7629449> /usr/lib/libc++abi.dylib
       0x18fa74000 -        0x18fac5ca3 libobjc.A.dylib (*) <219c0324-7a4f-338e-a395-3d023b289a7f> /usr/lib/libobjc.A.dylib
       0x191098000 -        0x191ed7fff com.apple.Foundation (6.9) <9b5ba00d-2241-342d-9949-f2f517d6989e> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
       0x193a25000 -        0x194e20fff com.apple.AppKit (6.9) <49d8b1b6-0ea8-36ad-89fd-a41acf00a742> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
       0x18fac6000 -        0x18fb487b3 dyld (*) <6beafde4-b011-3e47-8aae-4d7b6e4bb7e8> /usr/lib/dyld
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
       0x18feb8000 -        0x1903acfff com.apple.CoreFoundation (6.9) <ae4610f8-7c5c-3484-858e-cae7457d206e> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
       0x18fe55000 -        0x18fe7fff3 libdyld.dylib (*) <a7ce8e1f-bd8c-3680-8206-2b41cf45fdd6> /usr/lib/system/libdyld.dylib
       0x18fc98000 -        0x18fcdefff libdispatch.dylib (*) <9ea577db-73c2-39d8-9fc0-544fa595a142> /usr/lib/system/libdispatch.dylib
       0x1967ca000 -        0x196836fff com.apple.HIServices (1.22) <2c8d32a6-5281-3cbd-ba46-1eb9fcdd5eab> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=1.2G resident=0K(0%) swapped_out_or_unallocated=1.2G(100%)
Writable regions: Total=1.6G written=771K(0%) resident=771K(0%) swapped_out=0K(0%) unallocated=1.6G(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Accelerate framework               256K        2 
Activity Tracing                   256K        1 
CG image                           288K       14 
ColorSync                          560K       29 
CoreAnimation                      528K       32 
CoreGraphics                        96K        6 
CoreServices                       624K        2 
CoreUI image data                 1568K       11 
Foundation                          48K        2 
Image IO                            16K        1 
Kernel Alloc Once                   32K        1 
MALLOC                             1.6G       58 
MALLOC guard page                  288K       18 
OpenGL GLSL                        256K        3 
STACK GUARD                        144K        9 
Stack                             18.8M       10 
Stack Guard                       56.0M        1 
VM_ALLOCATE                       2768K       27 
VM_ALLOCATE (reserved)             640K        5         reserved VM address space (unallocated)
__AUTH                            3078K      430 
__AUTH_CONST                      43.9M      627 
__CTF                               824        1 
__DATA                            13.0M      608 
__DATA_CONST                      18.3M      634 
__DATA_DIRTY                      1613K      213 
__FONT_DATA                        2352        1 
__GLSLBUILTINS                    5174K        1 
__LINKEDIT                       588.2M        5 
__OBJC_RW                         2354K        1 
__TEXT                           615.8M      648 
__TPRO_CONST                       272K        2 
mapped file                      554.9M       59 
owned unmapped memory             2896K        1 
page table in kernel               771K        1 
shared memory                      896K       15 
===========                     =======  ======= 
TOTAL                              3.5G     3479 
TOTAL, minus reserved VM space     3.5G     3479 



-----------
Full Report
-----------

{"app_name":"alacritty","timestamp":"2024-11-19 23:08:15.00 +0800","app_version":"0.14.0","slice_uuid":"8c10705a-a543-3019-8ad8-81e28129ff40","build_version":"1","platform":1,"bundleID":"org.alacritty","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 15.1 (24B83)","roots_installed":0,"name":"alacritty","incident_id":"BE426DB3-4A2D-465A-8E0E-1E24C1A236A9"}
{
  "uptime" : 76000,
  "procRole" : "Foreground",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "Mac15,12",
  "coalitionID" : 4874,
  "osVersion" : {
    "train" : "macOS 15.1",
    "build" : "24B83",
    "releaseType" : "User"
  },
  "captureTime" : "2024-11-19 23:08:09.1100 +0800",
  "codeSigningMonitor" : 1,
  "incident" : "BE426DB3-4A2D-465A-8E0E-1E24C1A236A9",
  "pid" : 20589,
  "translated" : false,
  "cpuType" : "ARM-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2024-11-19 14:13:25.7650 +0800",
  "procStartAbsTime" : 1160774102106,
  "procExitAbsTime" : 1834550340727,
  "procName" : "alacritty",
  "procPath" : "\/Applications\/Alacritty.app\/Contents\/MacOS\/alacritty",
  "bundleInfo" : {"CFBundleShortVersionString":"0.14.0","CFBundleVersion":"1","CFBundleIdentifier":"org.alacritty"},
  "storeInfo" : {"deviceIdentifierForVendor":"FE59AF6D-A1D0-537E-AE05-4426DEDA7301","thirdParty":true},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "org.alacritty",
  "crashReporterKey" : "101184D7-0D42-A4C9-99E6-3AD27A088D37",
  "codeSigningID" : "org.alacritty",
  "codeSigningTeamID" : "",
  "codeSigningFlags" : 570425857,
  "codeSigningValidationCategory" : 10,
  "codeSigningTrustLevel" : 4294967295,
  "instructionByteStream" : {"beforePC":"fyMD1f17v6n9AwCRcuD\/l78DAJH9e8Go\/w9f1sADX9YQKYDSARAA1A==","atPC":"AwEAVH8jA9X9e7+p\/QMAkWfg\/5e\/AwCR\/XvBqP8PX9bAA1\/WcAqA0g=="},
  "bootSessionUUID" : "09222BA5-9124-4A73-B7F7-A81A44B67BDD",
  "wakeTime" : 12758,
  "sleepWakeUUID" : "8CF04E08-5D54-4FED-A740-185AEF3F79E5",
  "sip" : "enabled",
  "exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
  "termination" : {"flags":0,"code":6,"namespace":"SIGNAL","indicator":"Abort trap: 6","byProc":"alacritty","byPid":20589},
  "asi" : {"libsystem_c.dylib":["abort() called"]},
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "lastExceptionBacktrace" : [{"imageOffset":983796,"symbol":"__exceptionPreprocess","symbolLocation":164,"imageIndex":13},{"imageOffset":109784,"symbol":"objc_exception_throw","symbolLocation":88,"imageIndex":8},{"imageOffset":1102968,"symbol":"-[NSCalendarDate initWithCoder:]","symbolLocation":0,"imageIndex":9},{"imageOffset":1964824,"symbol":"-[NSEvent charactersIgnoringModifiers]","symbolLocation":604,"imageIndex":10},{"imageOffset":3150164,"symbol":"winit::platform_impl::macos::event::create_key_event::h5ffd7f45014bc6b9","symbolLocation":2508,"imageIndex":0},{"imageOffset":3085480,"symbol":"winit::platform_impl::macos::view::WinitView::flags_changed::h58c32ee31fdc0f1b","symbolLocation":344,"imageIndex":0},{"imageOffset":1450096,"symbol":"-[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:]","symbolLocation":484,"imageIndex":10},{"imageOffset":1449148,"symbol":"-[NSWindow(NSEventRouting) sendEvent:]","symbolLocation":284,"imageIndex":10},{"imageOffset":9935412,"symbol":"-[NSApplication(NSEventRouting) sendEvent:]","symbolLocation":1212,"imageIndex":10},{"imageOffset":3119676,"symbol":"winit::platform_impl::macos::app::WinitApplication::send_event::h9d7b11ed09e187de","symbolLocation":1040,"imageIndex":0},{"imageOffset":5798044,"symbol":"-[NSApplication _handleEvent:]","symbolLocation":60,"imageIndex":10},{"imageOffset":187144,"symbol":"-[NSApplication run]","symbolLocation":520,"imageIndex":10},{"imageOffset":221328,"symbol":"winit::platform_impl::macos::event_handler::EventHandler::set::ha6185e593ba31ad4","symbolLocation":280,"imageIndex":0},{"imageOffset":938872,"symbol":"alacritty::main::h290211ac615fedbe","symbolLocation":7624,"imageIndex":0},{"imageOffset":368736,"symbol":"std::sys::backtrace::__rust_begin_short_backtrace::h86645a6c57eec1ec","symbolLocation":12,"imageIndex":0},{"imageOffset":112940,"symbol":"std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::h7b27810acbbe86f2","symbolLocation":16,"imageIndex":0},{"imageOffset":2659736,"symbol":"std::rt::lang_start_internal::h9e88109c8deb8787","symbolLocation":808,"imageIndex":0},{"imageOffset":941644,"symbol":"main","symbolLocation":52,"imageIndex":0},{"imageOffset":25204,"symbol":"start","symbolLocation":2840,"imageIndex":11}],
  "faultingThread" : 0,
  "threads" : [{"threadState":{"x":[{"value":0},{"value":0},{"value":0},{"value":0},{"value":6708829723},{"value":6132205568},{"value":110},{"value":323},{"value":5781773899233653122},{"value":5781773904402205122},{"value":81},{"value":11},{"value":11},{"value":6714113690},{"value":2095104},{"value":2043},{"value":328},{"value":8541444176},{"value":0},{"value":6},{"value":259},{"value":8404744480,"symbolLocation":224,"symbol":"_main_thread"},{"value":8369930240,"symbolLocation":0,"symbol":"OBJC_IVAR_$_Object.isa"},{"value":8423936536},{"value":105553171683136},{"value":1},{"value":0},{"value":6132210304},{"value":5}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6709112688},"cpsr":{"value":1073745920},"fp":{"value":6132205424},"sp":{"value":6132205392},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6708880896,"matchesCrashFrame":1},"far":{"value":0}},"id":1028813,"triggered":true,"name":"main","queue":"com.apple.main-thread","frames":[{"imageOffset":38400,"symbol":"__pthread_kill","symbolLocation":8,"imageIndex":4},{"imageOffset":28528,"symbol":"pthread_kill","symbolLocation":288,"imageIndex":5},{"imageOffset":497928,"symbol":"abort","symbolLocation":128,"imageIndex":6},{"imageOffset":78924,"symbol":"abort_message","symbolLocation":132,"imageIndex":7},{"imageOffset":6720,"symbol":"demangling_terminate_handler()","symbolLocation":348,"imageIndex":7},{"imageOffset":152548,"symbol":"_objc_terminate()","symbolLocation":156,"imageIndex":8},{"imageOffset":75536,"symbol":"std::__terminate(void (*)())","symbolLocation":16,"imageIndex":7},{"imageOffset":89308,"symbol":"__cxxabiv1::failed_throw(__cxxabiv1::__cxa_exception*)","symbolLocation":88,"imageIndex":7},{"imageOffset":89220,"symbol":"__cxa_throw","symbolLocation":92,"imageIndex":7},{"imageOffset":110144,"symbol":"objc_exception_throw","symbolLocation":448,"imageIndex":8},{"imageOffset":1102968,"symbol":"-[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]","symbolLocation":288,"imageIndex":9},{"imageOffset":1964824,"symbol":"-[NSEvent charactersIgnoringModifiers]","symbolLocation":604,"imageIndex":10},{"imageOffset":3150164,"symbol":"winit::platform_impl::macos::event::create_key_event::h5ffd7f45014bc6b9","symbolLocation":2508,"imageIndex":0},{"imageOffset":3085480,"symbol":"winit::platform_impl::macos::view::WinitView::flags_changed::h58c32ee31fdc0f1b","symbolLocation":344,"imageIndex":0},{"imageOffset":1450096,"symbol":"-[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:]","symbolLocation":484,"imageIndex":10},{"imageOffset":1449148,"symbol":"-[NSWindow(NSEventRouting) sendEvent:]","symbolLocation":284,"imageIndex":10},{"imageOffset":9935412,"symbol":"-[NSApplication(NSEventRouting) sendEvent:]","symbolLocation":1212,"imageIndex":10},{"imageOffset":3119676,"symbol":"winit::platform_impl::macos::app::WinitApplication::send_event::h9d7b11ed09e187de","symbolLocation":1040,"imageIndex":0},{"imageOffset":5798044,"symbol":"-[NSApplication _handleEvent:]","symbolLocation":60,"imageIndex":10},{"imageOffset":187144,"symbol":"-[NSApplication run]","symbolLocation":520,"imageIndex":10},{"imageOffset":221328,"symbol":"winit::platform_impl::macos::event_handler::EventHandler::set::ha6185e593ba31ad4","symbolLocation":280,"imageIndex":0},{"imageOffset":938872,"symbol":"alacritty::main::h290211ac615fedbe","symbolLocation":7624,"imageIndex":0},{"imageOffset":368736,"symbol":"std::sys::backtrace::__rust_begin_short_backtrace::h86645a6c57eec1ec","symbolLocation":12,"imageIndex":0},{"imageOffset":112940,"symbol":"std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::h7b27810acbbe86f2","symbolLocation":16,"imageIndex":0},{"imageOffset":2659736,"symbol":"std::rt::lang_start_internal::h9e88109c8deb8787","symbolLocation":808,"imageIndex":0},{"imageOffset":941644,"symbol":"main","symbolLocation":52,"imageIndex":0},{"imageOffset":25204,"symbol":"start","symbolLocation":2840,"imageIndex":11}]},{"id":1028832,"name":"socket listener","threadState":{"x":[{"value":4},{"value":0},{"value":6136064444},{"value":3},{"value":5},{"value":2164431021},{"value":105553138035456},{"value":0},{"value":106},{"value":6709144688,"symbolLocation":0,"symbol":"tlv_get_addr"},{"value":105553138035456},{"value":228144944119808},{"value":64},{"value":105553120260176},{"value":2095104},{"value":2043},{"value":30},{"value":5603622640},{"value":0},{"value":6136065264},{"value":3},{"value":2},{"value":4339107104,"symbolLocation":136,"symbol":"anon.54708e710d62d6396140c508c15df261.98"},{"value":0},{"value":4339425792,"symbolLocation":0,"symbol":"__rust_no_alloc_shim_is_unstable"},{"value":6136064672},{"value":8192},{"value":6136065264},{"value":1}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4337347132},"cpsr":{"value":2684358656},"fp":{"value":6136064592},"sp":{"value":6136064336},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6708881124},"far":{"value":0}},"frames":[{"imageOffset":38628,"symbol":"__accept","symbolLocation":8,"imageIndex":4},{"imageOffset":2681404,"symbol":"std::os::unix::net::listener::UnixListener::accept::hdf7cdc7d20824afc","symbolLocation":76,"imageIndex":0},{"imageOffset":362168,"symbol":"std::sys::backtrace::__rust_begin_short_backtrace::h1c7191c661393112","symbolLocation":132,"imageIndex":0},{"imageOffset":860248,"symbol":"core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::hfc280185aa25c892","symbolLocation":228,"imageIndex":0},{"imageOffset":2717456,"symbol":"std::sys::pal::unix::thread::Thread::new::thread_start::hd88bc8e95f2ca709","symbolLocation":52,"imageIndex":0},{"imageOffset":29412,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":5},{"imageOffset":8444,"symbol":"thread_start","symbolLocation":8,"imageIndex":5}]},{"id":1028833,"name":"config watcher","threadState":{"x":[{"value":14},{"value":18446744073709551615},{"value":1083820239},{"value":5},{"value":7},{"value":2326065155},{"value":105553155850432},{"value":0},{"value":22787},{"value":18446744073709551615},{"value":0},{"value":2},{"value":96},{"value":105553120260244},{"value":2095104},{"value":2043},{"value":18446744073709551580},{"value":8541446200},{"value":0},{"value":105553152725440},{"value":105553152725376},{"value":18446744073709551615},{"value":5585817600},{"value":4339436856,"symbolLocation":0,"symbol":"std::panicking::panic_count::GLOBAL_PANIC_COUNT::hb3aa916c9af73a5a"},{"value":6138210720},{"value":105553132784688},{"value":0},{"value":0},{"value":6}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6707334132},"cpsr":{"value":1610616832},"fp":{"value":6138210416},"sp":{"value":6138210400},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6708846000},"far":{"value":0}},"frames":[{"imageOffset":3504,"symbol":"semaphore_wait_trap","symbolLocation":8,"imageIndex":4},{"imageOffset":19444,"symbol":"_dispatch_sema4_wait","symbolLocation":28,"imageIndex":15},{"imageOffset":21160,"symbol":"_dispatch_semaphore_wait_slow","symbolLocation":132,"imageIndex":15},{"imageOffset":2661460,"symbol":"std::thread::park::hada7fd3068eec817","symbolLocation":208,"imageIndex":0},{"imageOffset":197424,"symbol":"std::sync::mpmc::list::Channel$LT$T$GT$::recv::_$u7b$$u7b$closure$u7d$$u7d$::h3d6bf022b6dda7dc","symbolLocation":368,"imageIndex":0},{"imageOffset":196272,"symbol":"std::sync::mpmc::list::Channel$LT$T$GT$::recv::hab863dc1f1c8e1a7","symbolLocation":448,"imageIndex":0},{"imageOffset":369340,"symbol":"std::sys::backtrace::__rust_begin_short_backtrace::ha18e8b3d9bffe51d","symbolLocation":596,"imageIndex":0},{"imageOffset":858812,"symbol":"core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h229d876eb5607479","symbolLocation":332,"imageIndex":0},{"imageOffset":2717456,"symbol":"std::sys::pal::unix::thread::Thread::new::thread_start::hd88bc8e95f2ca709","symbolLocation":52,"imageIndex":0},{"imageOffset":29412,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":5},{"imageOffset":8444,"symbol":"thread_start","symbolLocation":8,"imageIndex":5}]},{"id":1028836,"name":"notify-rs fsevents loop","threadState":{"x":[{"value":268451845},{"value":21592279046},{"value":8589934592},{"value":131971460104192},{"value":0},{"value":131971460104192},{"value":2},{"value":4294967295},{"value":18446744073709550527},{"value":2},{"value":0},{"value":0},{"value":0},{"value":30727},{"value":2095104},{"value":2043},{"value":18446744073709551569},{"value":48},{"value":0},{"value":4294967295},{"value":2},{"value":131971460104192},{"value":0},{"value":131971460104192},{"value":6140354312},{"value":8589934592},{"value":21592279046},{"value":21592279046},{"value":4412409862}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6708921808},"cpsr":{"value":4096},"fp":{"value":6140354160},"sp":{"value":6140354080},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6708846132},"far":{"value":0}},"frames":[{"imageOffset":3636,"symbol":"mach_msg2_trap","symbolLocation":8,"imageIndex":4},{"imageOffset":79312,"symbol":"mach_msg2_internal","symbolLocation":80,"imageIndex":4},{"imageOffset":39384,"symbol":"mach_msg_overwrite","symbolLocation":480,"imageIndex":4},{"imageOffset":4476,"symbol":"mach_msg","symbolLocation":24,"imageIndex":4},{"imageOffset":515804,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":160,"imageIndex":13},{"imageOffset":509756,"symbol":"__CFRunLoopRun","symbolLocation":1212,"imageIndex":13},{"imageOffset":506820,"symbol":"CFRunLoopRunSpecific","symbolLocation":588,"imageIndex":13},{"imageOffset":1011280,"symbol":"CFRunLoopRun","symbolLocation":64,"imageIndex":13},{"imageOffset":2113172,"symbol":"std::sys::backtrace::__rust_begin_short_backtrace::h0252a186a7bdcf17","symbolLocation":156,"imageIndex":0},{"imageOffset":2123480,"symbol":"core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::he1ea47d1bd74e67d","symbolLocation":240,"imageIndex":0},{"imageOffset":2717456,"symbol":"std::sys::pal::unix::thread::Thread::new::thread_start::hd88bc8e95f2ca709","symbolLocation":52,"imageIndex":0},{"imageOffset":29412,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":5},{"imageOffset":8444,"symbol":"thread_start","symbolLocation":8,"imageIndex":5}]},{"id":1028846,"name":"PTY reader","threadState":{"x":[{"value":4},{"value":0},{"value":0},{"value":5622111232},{"value":1024},{"value":0},{"value":0},{"value":0},{"value":0},{"value":6142025184},{"value":105553138033824},{"value":0},{"value":2},{"value":0},{"value":265728},{"value":0},{"value":363},{"value":1141293069897218},{"value":0},{"value":105553161274720},{"value":6143075160},{"value":0},{"value":4339423760,"symbolLocation":0,"symbol":"tracing_core::metadata::MAX_LEVEL::hd461efafd70b346a"},{"value":1000000000},{"value":105553161274720},{"value":4339436856,"symbolLocation":0,"symbol":"std::panicking::panic_count::GLOBAL_PANIC_COUNT::hb3aa916c9af73a5a"},{"value":6143075176},{"value":6143075408},{"value":65531}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4336815092},"cpsr":{"value":1610616832},"fp":{"value":6142025584},"sp":{"value":6142025104},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6708870908},"far":{"value":0}},"frames":[{"imageOffset":28412,"symbol":"kevent","symbolLocation":8,"imageIndex":4},{"imageOffset":2149364,"symbol":"polling::kqueue::Poller::wait::h756aeddfa57cf8b9","symbolLocation":180,"imageIndex":0},{"imageOffset":2158176,"symbol":"polling::Poller::wait::h919b7c1c606c26e7","symbolLocation":1344,"imageIndex":0},{"imageOffset":364368,"symbol":"std::sys::backtrace::__rust_begin_short_backtrace::h6440a1618ce5a74a","symbolLocation":1128,"imageIndex":0},{"imageOffset":859596,"symbol":"core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h573025069cd612b7","symbolLocation":460,"imageIndex":0},{"imageOffset":2717456,"symbol":"std::sys::pal::unix::thread::Thread::new::thread_start::hd88bc8e95f2ca709","symbolLocation":52,"imageIndex":0},{"imageOffset":29412,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":5},{"imageOffset":8444,"symbol":"thread_start","symbolLocation":8,"imageIndex":5}]},{"id":1028852,"name":"com.apple.NSEventThread","threadState":{"x":[{"value":268451845},{"value":21592279046},{"value":8589934592},{"value":222114233712640},{"value":0},{"value":222114233712640},{"value":2},{"value":4294967295},{"value":18446744073709550527},{"value":2},{"value":0},{"value":0},{"value":0},{"value":51715},{"value":0},{"value":0},{"value":18446744073709551569},{"value":8541426616},{"value":0},{"value":4294967295},{"value":2},{"value":222114233712640},{"value":0},{"value":222114233712640},{"value":6143647848},{"value":8589934592},{"value":21592279046},{"value":21592279046},{"value":4412409862}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6708921808},"cpsr":{"value":4096},"fp":{"value":6143647696},"sp":{"value":6143647616},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6708846132},"far":{"value":0}},"frames":[{"imageOffset":3636,"symbol":"mach_msg2_trap","symbolLocation":8,"imageIndex":4},{"imageOffset":79312,"symbol":"mach_msg2_internal","symbolLocation":80,"imageIndex":4},{"imageOffset":39384,"symbol":"mach_msg_overwrite","symbolLocation":480,"imageIndex":4},{"imageOffset":4476,"symbol":"mach_msg","symbolLocation":24,"imageIndex":4},{"imageOffset":515804,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":160,"imageIndex":13},{"imageOffset":509756,"symbol":"__CFRunLoopRun","symbolLocation":1212,"imageIndex":13},{"imageOffset":506820,"symbol":"CFRunLoopRunSpecific","symbolLocation":588,"imageIndex":13},{"imageOffset":1440652,"symbol":"_NSEventThread","symbolLocation":148,"imageIndex":10},{"imageOffset":29412,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":5},{"imageOffset":8444,"symbol":"thread_start","symbolLocation":8,"imageIndex":5}]},{"id":1459478,"frames":[{"imageOffset":8424,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":5}],"threadState":{"x":[{"value":6132772864},{"value":71235},{"value":6132236288},{"value":0},{"value":409604},{"value":18446744073709551615},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6132772864},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6709092584},"far":{"value":0}}},{"id":1461113,"frames":[{"imageOffset":8424,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":5}],"threadState":{"x":[{"value":6133346304},{"value":86651},{"value":6132809728},{"value":0},{"value":409604},{"value":18446744073709551615},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6133346304},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6709092584},"far":{"value":0}}},{"id":1462076,"frames":[{"imageOffset":8424,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":5}],"threadState":{"x":[{"value":6133919744},{"value":78699},{"value":6133383168},{"value":0},{"value":409604},{"value":18446744073709551615},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6133919744},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6709092584},"far":{"value":0}}},{"id":1464252,"name":"HIE: M_ 4d017aeca249e4c4 2024-11-19 23:08:09.090","threadState":{"x":[{"value":0},{"value":8589934595},{"value":103079220499},{"value":77150497572435},{"value":15483357102080},{"value":77150497538048},{"value":44},{"value":0},{"value":18446744073709550527},{"value":1},{"value":105553250809226},{"value":15},{"value":2},{"value":105553181117168},{"value":8404750808,"symbolLocation":0,"symbol":"_NSConcreteMallocBlock"},{"value":8404750808,"symbolLocation":0,"symbol":"_NSConcreteMallocBlock"},{"value":18446744073709551569},{"value":8541434864},{"value":0},{"value":0},{"value":44},{"value":77150497538048},{"value":15483357102080},{"value":77150497572435},{"value":6140931344},{"value":103079220499},{"value":8589934595},{"value":8589934595},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6708921808},"cpsr":{"value":2147487744},"fp":{"value":6140931328},"sp":{"value":6140931248},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6708846132},"far":{"value":0}},"frames":[{"imageOffset":3636,"symbol":"mach_msg2_trap","symbolLocation":8,"imageIndex":4},{"imageOffset":79312,"symbol":"mach_msg2_internal","symbolLocation":80,"imageIndex":4},{"imageOffset":197668,"symbol":"thread_suspend","symbolLocation":108,"imageIndex":4},{"imageOffset":266552,"symbol":"SOME_OTHER_THREAD_SWALLOWED_AT_LEAST_ONE_EXCEPTION","symbolLocation":20,"imageIndex":16},{"imageOffset":345908,"symbol":"__NSThread__start__","symbolLocation":724,"imageIndex":9},{"imageOffset":29412,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":5},{"imageOffset":8444,"symbol":"thread_start","symbolLocation":8,"imageIndex":5}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4334665728,
    "CFBundleShortVersionString" : "0.14.0",
    "CFBundleIdentifier" : "org.alacritty",
    "size" : 4407296,
    "uuid" : "8c10705a-a543-3019-8ad8-81e28129ff40",
    "path" : "\/Applications\/Alacritty.app\/Contents\/MacOS\/alacritty",
    "name" : "alacritty",
    "CFBundleVersion" : "1"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 4533993472,
    "size" : 49152,
    "uuid" : "f1242604-dcb7-30a9-a19a-182991e6e645",
    "path" : "\/usr\/lib\/libobjc-trampolines.dylib",
    "name" : "libobjc-trampolines.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 4562452480,
    "CFBundleShortVersionString" : "322.10",
    "CFBundleIdentifier" : "com.apple.AGXMetalG15G-C0",
    "size" : 7733248,
    "uuid" : "701fb4b2-c454-3af7-aefb-5317777a3141",
    "path" : "\/System\/Library\/Extensions\/AGXMetalG15G_C0.bundle\/Contents\/MacOS\/AGXMetalG15G_C0",
    "name" : "AGXMetalG15G_C0",
    "CFBundleVersion" : "322.10"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 4572200960,
    "CFBundleShortVersionString" : "1.0",
    "CFBundleIdentifier" : "com.apple.AppleMetalOpenGLRenderer",
    "size" : 425984,
    "uuid" : "cf2a5428-9317-35dd-847f-f1d1970961a0",
    "path" : "\/System\/Library\/Extensions\/AppleMetalOpenGLRenderer.bundle\/Contents\/MacOS\/AppleMetalOpenGLRenderer",
    "name" : "AppleMetalOpenGLRenderer",
    "CFBundleVersion" : "1"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6708842496,
    "size" : 241656,
    "uuid" : "9fea25a4-e8ca-3f3d-901c-a53ff2bc7217",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6709084160,
    "size" : 53248,
    "uuid" : "3b8268be-4e02-3b4a-8b41-baed2bbaacff",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6707617792,
    "size" : 532476,
    "uuid" : "96556ba0-9c34-326a-89f4-d3835de617ae",
    "path" : "\/usr\/lib\/system\/libsystem_c.dylib",
    "name" : "libsystem_c.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6708731904,
    "size" : 110592,
    "uuid" : "7de440df-bc7d-3ff3-905d-2e17a7629449",
    "path" : "\/usr\/lib\/libc++abi.dylib",
    "name" : "libc++abi.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6705070080,
    "size" : 335012,
    "uuid" : "219c0324-7a4f-338e-a395-3d023b289a7f",
    "path" : "\/usr\/lib\/libobjc.A.dylib",
    "name" : "libobjc.A.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6728286208,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.Foundation",
    "size" : 14942208,
    "uuid" : "9b5ba00d-2241-342d-9949-f2f517d6989e",
    "path" : "\/System\/Library\/Frameworks\/Foundation.framework\/Versions\/C\/Foundation",
    "name" : "Foundation",
    "CFBundleVersion" : "3107"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6771855360,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.AppKit",
    "size" : 20955136,
    "uuid" : "49d8b1b6-0ea8-36ad-89fd-a41acf00a742",
    "path" : "\/System\/Library\/Frameworks\/AppKit.framework\/Versions\/C\/AppKit",
    "name" : "AppKit",
    "CFBundleVersion" : "2575.20.21"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6705405952,
    "size" : 534452,
    "uuid" : "6beafde4-b011-3e47-8aae-4d7b6e4bb7e8",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6709542912,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.CoreFoundation",
    "size" : 5197824,
    "uuid" : "ae4610f8-7c5c-3484-858e-cae7457d206e",
    "path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation",
    "name" : "CoreFoundation",
    "CFBundleVersion" : "3107"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6709137408,
    "size" : 176116,
    "uuid" : "a7ce8e1f-bd8c-3680-8206-2b41cf45fdd6",
    "path" : "\/usr\/lib\/system\/libdyld.dylib",
    "name" : "libdyld.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6707314688,
    "size" : 290816,
    "uuid" : "9ea577db-73c2-39d8-9fc0-544fa595a142",
    "path" : "\/usr\/lib\/system\/libdispatch.dylib",
    "name" : "libdispatch.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6819717120,
    "CFBundleShortVersionString" : "1.22",
    "CFBundleIdentifier" : "com.apple.HIServices",
    "size" : 446464,
    "uuid" : "2c8d32a6-5281-3cbd-ba46-1eb9fcdd5eab",
    "path" : "\/System\/Library\/Frameworks\/ApplicationServices.framework\/Versions\/A\/Frameworks\/HIServices.framework\/Versions\/A\/HIServices",
    "name" : "HIServices"
  }
],
  "sharedCache" : {
  "base" : 6704594944,
  "size" : 4753752064,
  "uuid" : "58694c6f-fec3-316e-a11c-b2fa3c2f6559"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=1.2G resident=0K(0%) swapped_out_or_unallocated=1.2G(100%)\nWritable regions: Total=1.6G written=771K(0%) resident=771K(0%) swapped_out=0K(0%) unallocated=1.6G(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nAccelerate framework               256K        2 \nActivity Tracing                   256K        1 \nCG image                           288K       14 \nColorSync                          560K       29 \nCoreAnimation                      528K       32 \nCoreGraphics                        96K        6 \nCoreServices                       624K        2 \nCoreUI image data                 1568K       11 \nFoundation                          48K        2 \nImage IO                            16K        1 \nKernel Alloc Once                   32K        1 \nMALLOC                             1.6G       58 \nMALLOC guard page                  288K       18 \nOpenGL GLSL                        256K        3 \nSTACK GUARD                        144K        9 \nStack                             18.8M       10 \nStack Guard                       56.0M        1 \nVM_ALLOCATE                       2768K       27 \nVM_ALLOCATE (reserved)             640K        5         reserved VM address space (unallocated)\n__AUTH                            3078K      430 \n__AUTH_CONST                      43.9M      627 \n__CTF                               824        1 \n__DATA                            13.0M      608 \n__DATA_CONST                      18.3M      634 \n__DATA_DIRTY                      1613K      213 \n__FONT_DATA                        2352        1 \n__GLSLBUILTINS                    5174K        1 \n__LINKEDIT                       588.2M        5 \n__OBJC_RW                         2354K        1 \n__TEXT                           615.8M      648 \n__TPRO_CONST                       272K        2 \nmapped file                      554.9M       59 \nowned unmapped memory             2896K        1 \npage table in kernel               771K        1 \nshared memory                      896K       15 \n===========                     =======  ======= \nTOTAL                              3.5G     3479 \nTOTAL, minus reserved VM space     3.5G     3479 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "name" : "main",
    "queue" : "com.apple.main-thread"
  }
},
  "logWritingSignature" : "5979819838a3195e14adeb1cdb9929b2c2f97431",
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "661464ecda55e5192b100804",
      "factorPackIds" : {

      },
      "deploymentId" : 240000005
    },
    {
      "rolloutId" : "65a8173205d942272410674b",
      "factorPackIds" : {
        "SIRI_HOME_AUTOMATION_SERVER_FLOW_DEPRECATION" : "65d39fa4cb0e2417d11ce5f6"
      },
      "deploymentId" : 240000001
    }
  ],
  "experiments" : [
    {
      "treatmentId" : "45f4e2a5-551b-4bc2-a2dc-19c244dda8f8",
      "experimentId" : "6643969b3099cf28e049862f",
      "deploymentId" : 400000007
    }
  ]
}
}
```
Hmm, weird that this differs between Winit 0.29 and 0.30, since the code paths for this haven't really changed (from what I can tell).

Also odd that the method [`charactersIgnoringModifiers`](https://developer.apple.com/documentation/appkit/nsevent/1524605-charactersignoringmodifiers?language=objc) (which is the one crashing) is documented to throw this error on "non-key events", but we call [`keyCode`](https://developer.apple.com/documentation/appkit/nsevent/1534513-keycode?language=objc) earlier which has the same documented caveat! And the event originates in [`flagsChanged:`](https://developer.apple.com/documentation/appkit/nsresponder/1527647-flagschanged?language=objc), which literally says "Informs the receiver that the user has pressed or released a modifier key" (so I cannot imagine how the event could _not_ be a key event?).

I'll try to reproduce this myself, but in the meantime if someone could check the value of `dbg!(unsafe { event.r#type() })` [inside `create_key_event`](https://github.com/rust-windowing/winit/blob/v0.30.5/src/platform_impl/macos/event.rs#L95), that'd be nice!
The issue was resolved after upgrading to macOS 15.1.1 (24B91) (at least for me), I suggest everyone try upgrading.
Yeah, I can't reproduce this with any of the methods posted. I'm using Alacritty 0.14.0, tested on both my host macOS 14.7.1 and a clean macOS 15.1 VM.

Both my physical and "logical"/configured keyboard layout is the bog-standard US, could y'all report which ones you have?

And are you all using BetterTouchTool (because I didn't test with that)?
@windowswithoutborders can you confirm that this is still broken on the latest macOS version?
@chrisduerr unfortunately still crashing on my setup after updating to the latest macOS from using hyperkey on bettertouchtool `Version: 4.883 (2024111802)` and the steps I previously posted to trigger a crash event.

> To replicate perform the following input sequence:
>
>  hyper-e
>  release hyper while still holding e


```
> sw_vers
ProductName:		macOS
ProductVersion:		15.1.1
BuildVersion:		24B91
> ./alacritty --version
alacritty 0.14.0 (22a4475)

# CRASH LOG

[5.061133583s] [INFO ] [alacritty_winit_event] About to wait
[5.838660542s] [INFO ] [alacritty_winit_event] About to wait
[5.915575875s] [INFO ] [alacritty_winit_event] About to wait
[5.938901000s] [INFO ] [alacritty_winit_event] About to wait
[5.939427125s] [INFO ] [alacritty_winit_event] KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(ControlLeft), logical_key: Named(Control), text: None, location: Left, state: Pressed, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Control) } }, is_synthetic: false }
[5.939460083s] [INFO ] [alacritty_winit_event] ModifiersChanged(Modifiers { state: ModifiersState(SHIFT | CONTROL | ALT | SUPER), pressed_mods: ModifiersKeys(0x0) })
[5.939519750s] [INFO ] [alacritty_winit_event] About to wait
[5.947819583s] [INFO ] [alacritty_winit_event] KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(ShiftLeft), logical_key: Named(Shift), text: None, location: Left, state: Pressed, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Shift) } }, is_synthetic: false }
[5.947911917s] [INFO ] [alacritty_winit_event] KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(AltLeft), logical_key: Named(Alt), text: None, location: Left, state: Pressed, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Alt) } }, is_synthetic: false }
[5.947990000s] [INFO ] [alacritty_winit_event] KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(SuperLeft), logical_key: Named(Super), text: None, location: Left, state: Pressed, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Super) } }, is_synthetic: false }
[5.948066375s] [INFO ] [alacritty_winit_event] KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(ControlLeft), logical_key: Named(Control), text: None, location: Left, state: Released, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Control) } }, is_synthetic: false }
[5.948100792s] [INFO ] [alacritty_winit_event] ModifiersChanged(Modifiers { state: ModifiersState(SHIFT | ALT | SUPER), pressed_mods: ModifiersKeys(0x0) })
[5.948173750s] [INFO ] [alacritty_winit_event] KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(ShiftLeft), logical_key: Named(Shift), text: None, location: Left, state: Released, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Shift) } }, is_synthetic: false }
[5.948188542s] [INFO ] [alacritty_winit_event] ModifiersChanged(Modifiers { state: ModifiersState(ALT | SUPER), pressed_mods: ModifiersKeys(0x0) })
[5.948255500s] [INFO ] [alacritty_winit_event] KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(AltLeft), logical_key: Named(Alt), text: None, location: Left, state: Released, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Alt) } }, is_synthetic: false }
[5.948271333s] [INFO ] [alacritty_winit_event] ModifiersChanged(Modifiers { state: ModifiersState(SUPER), pressed_mods: ModifiersKeys(0x0) })
[5.948343292s] [INFO ] [alacritty_winit_event] KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(SuperLeft), logical_key: Named(Super), text: None, location: Left, state: Released, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Super) } }, is_synthetic: false }
[5.948359458s] [INFO ] [alacritty_winit_event] ModifiersChanged(Modifiers { state: ModifiersState(0x0), pressed_mods: ModifiersKeys(0x0) })
[5.948426792s] [INFO ] [alacritty_winit_event] KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(ControlLeft), logical_key: Named(Control), text: None, location: Left, state: Pressed, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Control) } }, is_synthetic: false }
[5.948442125s] [INFO ] [alacritty_winit_event] ModifiersChanged(Modifiers { state: ModifiersState(SHIFT | CONTROL | ALT | SUPER), pressed_mods: ModifiersKeys(0x0) })
[5.948508875s] [INFO ] [alacritty_winit_event] KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(ShiftLeft), logical_key: Named(Shift), text: None, location: Left, state: Pressed, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Shift) } }, is_synthetic: false }
[5.948579500s] [INFO ] [alacritty_winit_event] KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(AltLeft), logical_key: Named(Alt), text: None, location: Left, state: Pressed, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Alt) } }, is_synthetic: false }
[5.948647917s] [INFO ] [alacritty_winit_event] KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(SuperLeft), logical_key: Named(Super), text: None, location: Left, state: Pressed, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Super) } }, is_synthetic: false }
[5.948704708s] [INFO ] [alacritty_winit_event] About to wait
[5.950261292s] [INFO ] [alacritty_winit_event] About to wait
[5.973025667s] [INFO ] [alacritty_winit_event] About to wait
[5.973129792s] [INFO ] [alacritty_winit_event] About to wait
[5.981186917s] [INFO ] [alacritty_winit_event] About to wait
[5.981282083s] [INFO ] [alacritty_winit_event] About to wait
[5.981367208s] [INFO ] [alacritty_winit_event] About to wait
[5.981399917s] [INFO ] [alacritty_winit_event] About to wait
[5.981724417s] [INFO ] [alacritty_winit_event] About to wait
[5.984986750s] [INFO ] [alacritty_winit_event] About to wait
[5.985660792s] [INFO ] [alacritty_winit_event] About to wait
[5.985765417s] [INFO ] [alacritty_winit_event] About to wait
[5.986152750s] [INFO ] [alacritty_winit_event] About to wait
[5.986188083s] [INFO ] [alacritty_winit_event] About to wait
[5.986496500s] [INFO ] [alacritty_winit_event] About to wait
[5.986553250s] [INFO ] [alacritty_winit_event] About to wait
[5.992835667s] [INFO ] [alacritty_winit_event] About to wait
[6.002011250s] [INFO ] [alacritty_winit_event] About to wait
[6.098371542s] [INFO ] [alacritty_winit_event] About to wait
[6.118265333s] [INFO ] [alacritty_winit_event] KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(KeyE), logical_key: Character("E"), text: Some("E"), location: Standard, state: Pressed, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: Some("\u{5}"), key_without_modifiers: Character("e") } }, is_synthetic: false }
[6.118945250s] [INFO ] [alacritty_winit_event] About to wait
[6.127226792s] [INFO ] [alacritty_winit_event] About to wait
[6.131212875s] [INFO ] [alacritty_winit_event] About to wait
[6.332570542s] [INFO ] [alacritty_winit_event] About to wait
[6.348747083s] [INFO ] [alacritty_winit_event] ModifiersChanged(Modifiers { state: ModifiersState(0x0), pressed_mods: ModifiersKeys(0x0) })
[6.349130875s] [INFO ] [alacritty_winit_event] KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(ControlLeft), logical_key: Named(Control), text: None, location: Left, state: Released, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Control) } }, is_synthetic: false }
[6.349194750s] [INFO ] [alacritty_winit_event] ModifiersChanged(Modifiers { state: ModifiersState(SHIFT | ALT | SUPER), pressed_mods: ModifiersKeys(0x0) })
[6.349360583s] [INFO ] [alacritty_winit_event] KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(ShiftLeft), logical_key: Named(Shift), text: None, location: Left, state: Released, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Shift) } }, is_synthetic: false }
[6.349396417s] [INFO ] [alacritty_winit_event] ModifiersChanged(Modifiers { state: ModifiersState(ALT | SUPER), pressed_mods: ModifiersKeys(0x0) })
[6.349538708s] [INFO ] [alacritty_winit_event] KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(AltLeft), logical_key: Named(Alt), text: None, location: Left, state: Released, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Alt) } }, is_synthetic: false }
[6.349568542s] [INFO ] [alacritty_winit_event] ModifiersChanged(Modifiers { state: ModifiersState(SUPER), pressed_mods: ModifiersKeys(0x0) })
[6.349703083s] [INFO ] [alacritty_winit_event] KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(SuperLeft), logical_key: Named(Super), text: None, location: Left, state: Released, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Super) } }, is_synthetic: false }
[6.349731500s] [INFO ] [alacritty_winit_event] ModifiersChanged(Modifiers { state: ModifiersState(0x0), pressed_mods: ModifiersKeys(0x0) })
[6.349830583s] [INFO ] [alacritty_winit_event] About to wait
[6.360984458s] [INFO ] [alacritty_winit_event] About to wait
[6.364191000s] [INFO ] [alacritty_winit_event] About to wait
[6.365977208s] [INFO ] [alacritty_winit_event] About to wait
[6.366128833s] [INFO ] [alacritty_winit_event] About to wait
[6.366174500s] [INFO ] [alacritty_winit_event] About to wait
[6.366223000s] [INFO ] [alacritty_winit_event] About to wait
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid message sent to event "NSEvent: type=FlagsChanged loc=(0,628) time=243.3 flags=0x100 win=0x14de0f0b0 winNum=61 ctxt=0x0 keyCode=14"'
*** First throw call stack:
(
	0   CoreFoundation                      0x00000001995c0300 __exceptionPreprocess + 176
	1   libobjc.A.dylib                     0x00000001990a6cd8 objc_exception_throw + 88
	2   Foundation                          0x000000019a7bd478 -[NSCalendarDate initWithCoder:] + 0
	3   AppKit                              0x000000019d21cb18 -[NSEvent charactersIgnoringModifiers] + 604
	4   alacritty                           0x00000001045fd154 _ZN5winit13platform_impl5macos5event16create_key_event17h5ffd7f45014bc6b9E + 2508
	5   alacritty                           0x00000001045ed4a8 _ZN5winit13platform_impl5macos4view9WinitView13flags_changed17h58c32ee31fdc0f1bE + 344
	6   AppKit                              0x000000019d19f070 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 484
	7   AppKit                              0x000000019d19ecbc -[NSWindow(NSEventRouting) sendEvent:] + 284
	8   AppKit                              0x000000019d9b6a34 -[NSApplication(NSEventRouting) sendEvent:] + 1212
	9   alacritty                           0x00000001045f5a3c _ZN5winit13platform_impl5macos3app16WinitApplication10send_event17h9d7b11ed09e187deE + 1040
	10  AppKit                              0x000000019d5c489c -[NSApplication _handleEvent:] + 60
	11  AppKit                              0x000000019d06ab08 -[NSApplication run] + 520
	12  alacritty                           0x0000000104332090 _ZN5winit13platform_impl5macos13event_handler12EventHandler3set17ha6185e593ba31ad4E + 280
	13  alacritty                           0x00000001043e1378 _ZN9alacritty4main17h290211ac615fedbeE + 7624
	14  alacritty                           0x0000000104356060 _ZN3std3sys9backtrace28__rust_begin_short_backtrace17h86645a6c57eec1ecE + 12
	15  alacritty                           0x000000010431792c _ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17h7b27810acbbe86f2E + 16
	16  alacritty                           0x0000000104585598 _ZN3std2rt19lang_start_internal17h9e88109c8deb8787E + 808
	17  alacritty                           0x00000001043e1e4c main + 52
	18  dyld                                0x00000001990e4274 start + 2840
)
libc++abi: terminating due to uncaught exception of type NSException
[1]    946 abort      ./alacritty --config-file /dev/null -vv --print-events
```

> The issue was resolved after upgrading to macOS 15.1.1 (24B91) (at least for me), I suggest everyone try upgrading.

Hmm... After using it for a day, I found that it hasn't been completely resolved. Before the upgrade, long-pressing caps lock and any letter key would cause a crash. After the upgrade, pressing caps lock once and then quickly pressing a letter key causes a crash.
Looking at the diff between Winit v0.29.15 and v0.30.5, the only possible offenders that I could see are (as in, these changed _something_ in the code-path):
- https://github.com/rust-windowing/winit/pull/3361
- https://github.com/rust-windowing/winit/pull/3157
- https://github.com/rust-windowing/winit/pull/3221

With the first being the most likely.

I still can't reproduce, but it'd be nice if someone that can could try to build Alacritty locally, see if the issue persists, and then cherry pick revert these PRs one by one, and see if the issue still persists.
> Looking at the diff between Winit v0.29.15 and v0.30.5, the only possible offenders that I could see are (as in, these changed _something_ in the code-path):
> 
> * [On macOS, report correct logical key when Ctrl or Cmd is pressed rust-windowing/winit#3361](https://github.com/rust-windowing/winit/pull/3361)
> * [On macOS, fix globe key triggering assertion rust-windowing/winit#3157](https://github.com/rust-windowing/winit/pull/3157)
> * [On macOS, fix assertion when pressing `Fn` key rust-windowing/winit#3221](https://github.com/rust-windowing/winit/pull/3221)
> 
> With the first being the most likely.
> 
> I still can't reproduce, but it'd be nice if someone that can could try to build Alacritty locally, see if the issue persists, and then cherry pick revert these PRs one by one, and see if the issue still persists.

I tried compiling the latest commit of the master branch of Alacritty, but it still crashes. Then I tried reverting the first PR you mentioned, but I couldn't find the PR-related commit on the master branch of winit, so I couldn't attempt the revert.
> I tried compiling the latest commit of the master branch of Alacritty, but it still crashes. Then I tried reverting the first PR you mentioned, but I couldn't find the PR-related commit on the master branch of winit, so I couldn't attempt the revert.

Fair. Perhaps try applying the following diffs to WInit v0.30.5:

First PR:
```diff
diff --git a/src/platform_impl/macos/event.rs b/src/platform_impl/macos/event.rs
index 602ab6278..fe44a3c3b 100644
--- a/src/platform_impl/macos/event.rs
+++ b/src/platform_impl/macos/event.rs
@@ -134,7 +134,6 @@ pub(crate) fn create_key_event(
 
         let modifiers = unsafe { ns_event.modifierFlags() };
         let has_ctrl = modifiers.contains(NSEventModifierFlags::NSEventModifierFlagControl);
-        let has_cmd = modifiers.contains(NSEventModifierFlags::NSEventModifierFlagCommand);
 
         let logical_key = match text_with_all_modifiers.as_ref() {
             // Only checking for ctrl and cmd here, not checking for alt because we DO want to
@@ -142,7 +141,7 @@ pub(crate) fn create_key_event(
             // presses alt+8, the logical key should be "{"
             // Also not checking if this is a release event because then this issue would
             // still affect the key release.
-            Some(text) if !has_ctrl && !has_cmd => {
+            Some(text) if !has_ctrl => {
                 // Character heeding both SHIFT and ALT.
                 Key::Character(text.clone())
             },
```

Second PR:
```diff
diff --git a/src/platform_impl/macos/view.rs b/src/platform_impl/macos/view.rs
index 50cffcee6..2853a3402 100644
--- a/src/platform_impl/macos/view.rs
+++ b/src/platform_impl/macos/view.rs
@@ -929,7 +929,7 @@ impl WinitView {
         // later will work though, since the flags are attached to the event and contain valid
         // information.
         'send_event: {
-            if is_flags_changed_event && unsafe { ns_event.keyCode() } != 0 {
+            if is_flags_changed_event {
                 let scancode = unsafe { ns_event.keyCode() };
                 let physical_key = scancode_to_physicalkey(scancode as u32);

```

I don't think the culprit is the third PR.

(You'll have to check out both Alacritty and Winit, and use `[patch.crates-io] winit = { path = "../winit" }` or similar in Alacritty's Cargo.toml)
> > I tried compiling the latest commit of the master branch of Alacritty, but it still crashes. Then I tried reverting the first PR you mentioned, but I couldn't find the PR-related commit on the master branch of winit, so I couldn't attempt the revert.
> 
> Fair. Perhaps try applying the following diffs to WInit v0.30.5:
> 
> First PR:
> 
> ```diff
> diff --git a/src/platform_impl/macos/event.rs b/src/platform_impl/macos/event.rs
> index 602ab6278..fe44a3c3b 100644
> --- a/src/platform_impl/macos/event.rs
> +++ b/src/platform_impl/macos/event.rs
> @@ -134,7 +134,6 @@ pub(crate) fn create_key_event(
>  
>          let modifiers = unsafe { ns_event.modifierFlags() };
>          let has_ctrl = modifiers.contains(NSEventModifierFlags::NSEventModifierFlagControl);
> -        let has_cmd = modifiers.contains(NSEventModifierFlags::NSEventModifierFlagCommand);
>  
>          let logical_key = match text_with_all_modifiers.as_ref() {
>              // Only checking for ctrl and cmd here, not checking for alt because we DO want to
> @@ -142,7 +141,7 @@ pub(crate) fn create_key_event(
>              // presses alt+8, the logical key should be "{"
>              // Also not checking if this is a release event because then this issue would
>              // still affect the key release.
> -            Some(text) if !has_ctrl && !has_cmd => {
> +            Some(text) if !has_ctrl => {
>                  // Character heeding both SHIFT and ALT.
>                  Key::Character(text.clone())
>              },
> ```
> 
> Second PR:
> 
> ```diff
> diff --git a/src/platform_impl/macos/view.rs b/src/platform_impl/macos/view.rs
> index 50cffcee6..2853a3402 100644
> --- a/src/platform_impl/macos/view.rs
> +++ b/src/platform_impl/macos/view.rs
> @@ -929,7 +929,7 @@ impl WinitView {
>          // later will work though, since the flags are attached to the event and contain valid
>          // information.
>          'send_event: {
> -            if is_flags_changed_event && unsafe { ns_event.keyCode() } != 0 {
> +            if is_flags_changed_event {
>                  let scancode = unsafe { ns_event.keyCode() };
>                  let physical_key = scancode_to_physicalkey(scancode as u32);
> ```
> 
> I don't think the culprit is the third PR.
> 
> (You'll have to check out both Alacritty and Winit, and use `[patch.crates-io] winit = { path = "../winit" }` or similar in Alacritty's Cargo.toml)

I just tried it, and it still crashes.
![image](https://github.com/user-attachments/assets/0e1907cb-a757-4233-83ff-a9c25398e2e0)
![image](https://github.com/user-attachments/assets/f1a5d05b-bd6c-4d97-b451-b0aeecb5b018)




Hmm, weird, then I'm inclined to not think it's a Winit issue? (not that I know what the issue is then)
I have the same issue. I changed the key to change language to CapsLock, and when I press CapsLock and any key with it simultaneously, I have the same issue with crashing.

I tried to debug the panic and found that it occurs from calling ns_event.charactersIgnoringModifiers().

https://github.com/rust-windowing/winit/blob/114512bb329ac2da78e33dcd54c3f466f34da394/src/platform_impl/macos/event.rs#L81

also i have this log:

```
[general] *** Assertion failure in -[NSEvent charactersIgnoringModifiers], NSEvent.m:2870
```

I reproduced it on MacOs 15.2 Beta (24C5089c) and MacOs 14.7.1 (23H222) with the same actions.
can be reproduced using only winit's `window` example

by doing `git bisect`, I found that starting with this commit https://github.com/rust-windowing/winit/commit/7bed5eecfdcbde16e5619fd137f0229e8e7e8ed4 the crash behavior becomes the same as the latest(https://github.com/rust-windowing/winit/commit/fc6cf89ac0674c64320024f800a41ffb365dab97)
that is, crashes when hitting any letter(I use `k` when testing) shortly after pressing down `CapsLock`, with this option enabled(maybe also multiple IME with different language)
<img width="715" alt="screenshot" src="https://github.com/user-attachments/assets/69477085-3a90-447d-b67a-9d0175db2200">

and starting with this commit https://github.com/rust-windowing/winit/commit/7bed5eecfdcbde16e5619fd137f0229e8e7e8ed4, just hitting `CapsLock` without the above option or any other key would crash

output of `dbg!(unsafe { event.r#type() })` in https://github.com/rust-windowing/winit/blob/v0.30.5/src/platform_impl/macos/event.rs#L95 of latest(https://github.com/rust-windowing/winit/commit/fc6cf89ac0674c64320024f800a41ffb365dab97)
<img width="729" alt="image" src="https://github.com/user-attachments/assets/bcef442e-94a2-49ef-8fca-a4bf182c20b8">

test command: `RUST_BACKTRACE=1 cargo run --example window`
env:
```
cargo 1.83.0 (5ffbef321 2024-10-29)
release: 1.83.0
commit-hash: 5ffbef3211a8c378857905775a15c5b32a174d3b
commit-date: 2024-10-29
host: aarch64-apple-darwin
libgit2: 1.8.1 (sys:0.19.0 vendored)
libcurl: 8.7.1 (sys:0.4.74+curl-8.9.0 system ssl:(SecureTransport) LibreSSL/3.3.6)
ssl: OpenSSL 1.1.1w  11 Sep 2023
os: Mac OS 15.1.1 [64-bit]
```

<details>
<summary>backtraces</summary>

backtrace of latest(fc6cf89):
```
thread 'main' panicked at core/src/panicking.rs:221:5:
panic in a function that cannot unwind
stack backtrace:
   0: rust_begin_unwind
             at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:665:5
   1: core::panicking::panic_nounwind_fmt::runtime
             at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panicking.rs:112:18
   2: core::panicking::panic_nounwind_fmt
             at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panicking.rs:122:5
   3: core::panicking::panic_nounwind
             at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panicking.rs:221:5
   4: core::panicking::panic_cannot_unwind
             at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panicking.rs:310:5
   5: winit::platform_impl::apple::appkit::view::WinitView::flags_changed
             at /Users/golden_water/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.5.2/src/macros/declare_class.rs:981:25
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: <(A,) as objc2::encode::EncodeArguments>::__invoke
             at /Users/golden_water/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.5.2/src/encode.rs:437:26
  10: objc2::runtime::message_receiver::msg_send_primitive::send_super
             at /Users/golden_water/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.5.2/src/runtime/message_receiver.rs:193:18
  11: objc2::runtime::message_receiver::MessageReceiver::send_super_message
             at /Users/golden_water/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.5.2/src/runtime/message_receiver.rs:477:33
  12: objc2::__macro_helpers::msg_send::MsgSend::send_super_message
             at /Users/golden_water/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.5.2/src/__macro_helpers/msg_send.rs:53:13
  13: objc2::__macro_helpers::msg_send::MsgSend::send_super_message_static
             at /Users/golden_water/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.5.2/src/__macro_helpers/msg_send.rs:71:18
  14: winit::platform_impl::apple::appkit::app::WinitApplication::send_event
             at ./src/platform_impl/apple/appkit/app.rs:44:26
  15: <unknown>
  16: <unknown>
  17: <() as objc2::encode::EncodeArguments>::__invoke
             at /Users/golden_water/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.5.2/src/encode.rs:437:26
  18: objc2::runtime::message_receiver::msg_send_primitive::send
             at /Users/golden_water/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.5.2/src/runtime/message_receiver.rs:173:18
  19: objc2::runtime::message_receiver::MessageReceiver::send_message
             at /Users/golden_water/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.5.2/src/runtime/message_receiver.rs:433:38
  20: objc2::__macro_helpers::msg_send::MsgSend::send_message
             at /Users/golden_water/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.5.2/src/__macro_helpers/msg_send.rs:27:31
  21: objc2_app_kit::generated::__NSApplication::NSApplication::run
             at /Users/golden_water/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.5.2/src/macros/extern_methods.rs:247:14
  22: winit::platform_impl::apple::appkit::event_loop::EventLoop::run_app_on_demand::{{closure}}::{{closure}}
             at ./src/platform_impl/apple/appkit/event_loop.rs:305:26
  23: objc2::rc::autorelease::autoreleasepool
             at /Users/golden_water/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.5.2/src/rc/autorelease.rs:438:15
  24: winit::platform_impl::apple::appkit::event_loop::EventLoop::run_app_on_demand::{{closure}}
             at ./src/platform_impl/apple/appkit/event_loop.rs:291:13
  25: winit::platform_impl::apple::event_handler::EventHandler::set
             at ./src/platform_impl/apple/event_handler.rs:98:9
  26: winit::platform_impl::apple::appkit::app_state::AppState::set_event_handler
             at ./src/platform_impl/apple/appkit/app_state.rs:176:9
  27: winit::platform_impl::apple::appkit::event_loop::EventLoop::run_app_on_demand
             at ./src/platform_impl/apple/appkit/event_loop.rs:290:9
  28: winit::platform_impl::apple::appkit::event_loop::EventLoop::run_app
             at ./src/platform_impl/apple/appkit/event_loop.rs:278:9
  29: winit::event_loop::EventLoop::run_app
             at ./src/event_loop.rs:230:9
  30: window::main
             at ./examples/window.rs:74:8
  31: core::ops::function::FnOnce::call_once
             at /Users/golden_water/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
```

backtrace of 7bed5ee:
```
thread 'main' panicked at core/src/panicking.rs:221:5:
panic in a function that cannot unwind
stack backtrace:
   0: rust_begin_unwind
             at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:665:5
   1: core::panicking::panic_nounwind_fmt::runtime
             at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panicking.rs:112:18
   2: core::panicking::panic_nounwind_fmt
             at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panicking.rs:122:5
   3: core::panicking::panic_nounwind
             at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panicking.rs:221:5
   4: core::panicking::panic_cannot_unwind
             at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panicking.rs:310:5
   5: winit::platform_impl::platform::view::WinitView::flags_changed
             at /Users/golden_water/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.4.1/src/macros/declare_class.rs:1015:25
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: <(A,) as objc2::message::MessageArguments>::__invoke
             at /Users/golden_water/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.4.1/src/message/mod.rs:531:39
  10: objc2::message::platform::send_super_unverified
             at /Users/golden_water/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.4.1/src/message/apple/mod.rs:59:34
  11: objc2::message::MessageReceiver::send_super_message
             at /Users/golden_water/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.4.1/src/message/mod.rs:276:48
  12: objc2::message::MessageReceiver::__send_super_message_static
             at /Users/golden_water/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.4.1/src/message/mod.rs:290:18
  13: winit::platform_impl::platform::app::WinitApplication::send_event
             at ./src/platform_impl/macos/app.rs:40:26
  14: <unknown>
  15: <unknown>
  16: <() as objc2::message::MessageArguments>::__invoke
             at /Users/golden_water/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.4.1/src/message/mod.rs:531:39
  17: objc2::message::platform::send_unverified
             at /Users/golden_water/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.4.1/src/message/apple/mod.rs:35:34
  18: objc2::message::MessageReceiver::send_message
             at /Users/golden_water/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.4.1/src/message/mod.rs:233:53
  19: winit::platform_impl::platform::appkit::application::NSApplication::run
             at /Users/golden_water/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.4.1/src/macros/extern_methods.rs:240:14
  20: winit::platform_impl::platform::event_loop::EventLoop<T>::run_on_demand::{{closure}}::{{closure}}
             at ./src/platform_impl/macos/event_loop.rs:306:26
  21: core::ops::function::FnOnce::call_once
             at /Users/golden_water/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  22: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /Users/golden_water/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/panic/unwind_safe.rs:272:9
  23: std::panicking::try::do_call
             at /Users/golden_water/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/panicking.rs:557:40
  24: ___rust_try
  25: std::panicking::try
             at /Users/golden_water/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/panicking.rs:520:19
  26: std::panic::catch_unwind
             at /Users/golden_water/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/panic.rs:358:14
  27: winit::platform_impl::platform::event_loop::EventLoop<T>::run_on_demand::{{closure}}
             at ./src/platform_impl/macos/event_loop.rs:295:32
  28: objc2::rc::autorelease::autoreleasepool
             at /Users/golden_water/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.4.1/src/rc/autorelease.rs:438:15
  29: winit::platform_impl::platform::event_loop::EventLoop<T>::run_on_demand
             at ./src/platform_impl/macos/event_loop.rs:277:9
  30: winit::platform_impl::platform::event_loop::EventLoop<T>::run
             at ./src/platform_impl/macos/event_loop.rs:244:9
  31: winit::event_loop::EventLoop<T>::run
             at ./src/event_loop.rs:249:9
  32: window::main
             at ./examples/window.rs:23:5
  33: core::ops::function::FnOnce::call_once
             at /Users/golden_water/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
```

before 7bed5ee:
```
thread 'main' panicked at core/src/panicking.rs:221:5:
panic in a function that cannot unwind
stack backtrace:
   0: rust_begin_unwind
             at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:665:5
   1: core::panicking::panic_nounwind_fmt::runtime
             at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panicking.rs:112:18
   2: core::panicking::panic_nounwind_fmt
             at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panicking.rs:122:5
   3: core::panicking::panic_nounwind
             at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panicking.rs:221:5
   4: core::panicking::panic_cannot_unwind
             at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panicking.rs:310:5
   5: winit::platform_impl::platform::view::WinitView::flags_changed
             at /Users/golden_water/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.4.1/src/macros/declare_class.rs:1015:25
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: <(A,) as objc2::message::MessageArguments>::__invoke
             at /Users/golden_water/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.4.1/src/message/mod.rs:531:39
  10: objc2::message::platform::send_super_unverified
             at /Users/golden_water/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.4.1/src/message/apple/mod.rs:59:34
  11: objc2::message::MessageReceiver::send_super_message
             at /Users/golden_water/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.4.1/src/message/mod.rs:276:48
  12: objc2::message::MessageReceiver::__send_super_message_static
             at /Users/golden_water/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.4.1/src/message/mod.rs:290:18
  13: winit::platform_impl::platform::app::WinitApplication::send_event
             at ./src/platform_impl/macos/app.rs:40:26
  14: <unknown>
  15: <unknown>
  16: <() as objc2::message::MessageArguments>::__invoke
             at /Users/golden_water/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.4.1/src/message/mod.rs:531:39
  17: objc2::message::platform::send_unverified
             at /Users/golden_water/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.4.1/src/message/apple/mod.rs:35:34
  18: objc2::message::MessageReceiver::send_message
             at /Users/golden_water/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.4.1/src/message/mod.rs:233:53
  19: winit::platform_impl::platform::appkit::application::NSApplication::run
             at /Users/golden_water/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.4.1/src/macros/extern_methods.rs:240:14
  20: winit::platform_impl::platform::event_loop::EventLoop<T>::run_on_demand::{{closure}}::{{closure}}
             at ./src/platform_impl/macos/event_loop.rs:306:26
  21: core::ops::function::FnOnce::call_once
             at /Users/golden_water/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  22: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /Users/golden_water/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/panic/unwind_safe.rs:272:9
  23: std::panicking::try::do_call
             at /Users/golden_water/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/panicking.rs:557:40
  24: ___rust_try
  25: std::panicking::try
             at /Users/golden_water/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/panicking.rs:520:19
  26: std::panic::catch_unwind
             at /Users/golden_water/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/panic.rs:358:14
  27: winit::platform_impl::platform::event_loop::EventLoop<T>::run_on_demand::{{closure}}
             at ./src/platform_impl/macos/event_loop.rs:295:32
  28: objc2::rc::autorelease::autoreleasepool
             at /Users/golden_water/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.4.1/src/rc/autorelease.rs:438:15
  29: winit::platform_impl::platform::event_loop::EventLoop<T>::run_on_demand
             at ./src/platform_impl/macos/event_loop.rs:277:9
  30: winit::platform_impl::platform::event_loop::EventLoop<T>::run
             at ./src/platform_impl/macos/event_loop.rs:244:9
  31: winit::event_loop::EventLoop<T>::run
             at ./src/event_loop.rs:249:9
  32: window::main
             at ./examples/window.rs:23:5
  33: core::ops::function::FnOnce::call_once
             at /Users/golden_water/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
```
</details>
@BillGoldenWater if that's the case, 0.13.2 version should be crashing as well? This commit is like a year old and certainly was present in winit 0.29, which we used in 0.13?

> @BillGoldenWater if that's the case, 0.13.2 version should be crashing as well? This commit is like a year old and certainly was present in winit 0.29, which we used in 0.13?

@kchibisov 0.13.2(https://github.com/alacritty/alacritty/commit/bb8ea18ea848f67ce981b0c2446d1eee2c49eada) is also crashing for me (the prebuilt one from release didn't)
<img width="929" alt="image" src="https://github.com/user-attachments/assets/27921f07-62f4-4351-8438-19bae45c2f8c">

well, my macOS version doesn't crash and apple doesn't let my laptop to update anymore, so it seems like a regression on latest macOS, and I have no way to do anything about it other than guessing what apple broke now.
Thanks a lot @BillGoldenWater for the tip with the "Use the Caps Lock key to switch to and from last used Latin input sequence" option! That allowed me to reproduce it, and I have submitted a fix in https://github.com/rust-windowing/winit/pull/4024.
> Thanks a lot @BillGoldenWater for the tip with the "Use the Caps Lock key to switch to and from last used Latin input sequence" option! That allowed me to reproduce it, and I have submitted a fix in [rust-windowing/winit#4024](https://github.com/rust-windowing/winit/pull/4024).

@madsmtm when will fix be released? 

thank you for your involvement
@madsmtm when will fix be released?

thank you for your involvement
See https://github.com/rust-windowing/winit/pull/4042, and after that Alacritty needs to be updated to use that.

Fix patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 866373837be..f2ca2761c5f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -70,6 +70,7 @@ Notable changes to the `alacritty_terminal` crate are documented in its
 - Invalid URL highlights after terminal scrolling
 - Hollow block cursor not spanning multiple chars being edited inside the IME preview
 - Vi inline search only working for direct key input without modifiers
+- Crash when pressing certain modifier keys on macOS 15+
 
 ## 0.13.2
 
diff --git a/Cargo.lock b/Cargo.lock
index b9be9b7eeea..00cd99d7c7f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2526,9 +2526,9 @@ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
 
 [[package]]
 name = "winit"
-version = "0.30.5"
+version = "0.30.6"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0be9e76a1f1077e04a411f0b989cbd3c93339e1771cb41e71ac4aee95bfd2c67"
+checksum = "7c3d72dfa0f47e429290cd0d236884ca02f22dbd5dd33a43ad2b8bf4d79b6c18"
 dependencies = [
  "ahash",
  "android-activity",
diff --git a/alacritty/Cargo.toml b/alacritty/Cargo.toml
index 264ecbc6ec6..f7280deb4ed 100644
--- a/alacritty/Cargo.toml
+++ b/alacritty/Cargo.toml
@@ -41,7 +41,7 @@ tempfile = "3.12.0"
 toml = "0.8.2"
 toml_edit = "0.22.21"
 unicode-width = "0.1"
-winit = { version = "0.30.5", default-features = false, features = ["rwh_06", "serde"] }
+winit = { version = "0.30.6", default-features = false, features = ["rwh_06", "serde"] }
 
 [build-dependencies]
 gl_generator = "0.14.0"


Test patch: