alacritty: Random crashes on macOS 10.14.4

Which operating system does the issue occur on? macOS 10.14.4

After updating to the latest version, Alacritty started to randomly crash after waking up from a sleep. I tried to downgrade to the previous version before I update but it seems the crash persists.

Here are a few diagnose reports:

I was also able to get Alacirtty to generate some debug level logs. However, I didn’t find anything particular interesting there (like a stacktrace). But it seems there are tons of glutin event: Awakened generated after I woke up the machine. The log looks like this:

[2019-07-31 20:51] [INFO] glutin event: WindowEvent { window_id: WindowId(Id(105553178312960)), event: TouchpadPressure { device_id: DeviceId(DeviceId), pressure: 0.0, stage: 1 } }
[2019-07-31 20:51] [INFO] glutin event: WindowEvent { window_id: WindowId(Id(105553178312960)), event: TouchpadPressure { device_id: DeviceId(DeviceId), pressure: 0.02003479, stage: 1 } }
[2019-07-31 20:51] [INFO] glutin event: WindowEvent { window_id: WindowId(Id(105553178312960)), event: TouchpadPressure { device_id: DeviceId(DeviceId), pressure: 0.043701172, stage: 1 } }
[2019-07-31 20:51] [INFO] glutin event: WindowEvent { window_id: WindowId(Id(105553178312960)), event: TouchpadPressure { device_id: DeviceId(DeviceId), pressure: 0.06715393, stage: 1 } }
[2019-07-31 20:51] [INFO] glutin event: WindowEvent { window_id: WindowId(Id(105553178312960)), event: TouchpadPressure { device_id: DeviceId(DeviceId), pressure: 0.093811035, stage: 1 } }
[2019-07-31 20:51] [INFO] glutin event: WindowEvent { window_id: WindowId(Id(105553178312960)), event: TouchpadPressure { device_id: DeviceId(DeviceId), pressure: 0.12251282, stage: 1 } }
[2019-07-31 20:51] [INFO] glutin event: WindowEvent { window_id: WindowId(Id(105553178312960)), event: TouchpadPressure { device_id: DeviceId(DeviceId), pressure: 0.15322876, stage: 1 } }
[2019-07-31 20:51] [INFO] glutin event: WindowEvent { window_id: WindowId(Id(105553178312960)), event: TouchpadPressure { device_id: DeviceId(DeviceId), pressure: 0.18286133, stage: 1 } }
[2019-07-31 20:51] [INFO] glutin event: WindowEvent { window_id: WindowId(Id(105553178312960)), event: TouchpadPressure { device_id: DeviceId(DeviceId), pressure: 0.18692017, stage: 1 } }
[2019-07-31 20:51] [INFO] glutin event: WindowEvent { window_id: WindowId(Id(105553178312960)), event: TouchpadPressure { device_id: DeviceId(DeviceId), pressure: 0.18037415, stage: 1 } }
[2019-07-31 20:51] [INFO] glutin event: WindowEvent { window_id: WindowId(Id(105553178312960)), event: MouseInput { device_id: DeviceId(DeviceId), state: Released, button: Left, modifiers: ModifiersState { shift: true, ctrl: false, alt: false, logo: false } } }
[2019-07-31 20:51] [DEBUG] Launched open with args ["<redacted>"]
[2019-07-31 20:51] [INFO] glutin event: WindowEvent { window_id: WindowId(Id(105553178312960)), event: TouchpadPressure { device_id: DeviceId(DeviceId), pressure: 0.0, stage: 0 } }
[2019-07-31 20:51] [INFO] glutin event: WindowEvent { window_id: WindowId(Id(105553178312960)), event: Focused(false) }
[2019-07-31 20:51] [INFO] glutin event: Awakened
......
[2019-07-31 20:54] [INFO] glutin event: Awakened   # I closed the laptop here
[2019-07-31 21:55] [INFO] glutin event: Awakened   # re-opened one hour later
.......
[2019-07-31 22:03] [INFO] glutin event: Awakened

(Now when I think about this. The awakened log might just be part of the normal event loop since it’s just running in the background.)

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 16 (5 by maintainers)

Most upvoted comments

Okay… I’m gonna go update to 10.14.5. It seems the update should solve the problem. Thanks for all your help on debugging.

@fanzeyi Oh, and when it will crash under lldb, post the output of the following lldbs commands bt and thread list.