FS#72912 - [alacritty] 0.9.0-2 when exiting, gives an error

Attached to Project: Community Packages
Opened by Pekka Ristola (pekkarr) - Friday, 03 December 2021, 19:23 GMT
Last edited by Andreas Radke (AndyRTR) - Sunday, 12 December 2021, 10:24 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Christian Rebischke (Shibumi)
Jiachen Yang (farseerfc)
Daniel M. Capella (polyzen)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 5
Private No

Details

Description:
Closing alacritty by pressing Ctrl+d or running the "exit" command sometimes gives
an error message and causes alacritty to become unresponsive and the window remains
open. The behavior is undeterministic and the error does not happen every time.

The error message:
[ERROR] See log at /tmp/Alacritty-3834.log ($ALACRITTY_LOG):
Error reading from PTY in event loop: Input/output error (os error 5)

The bug is already fixed in upstream development version, see link [0]. It is caused
by rust 1.55+ handling IO errors in a different way than previously, which is why the
bug appeared when alacritty was rebuilt with a newer rust version. I suggest including
this patch in the PKGBUILD until upstream releases a new version. In the testing I did
it fixed the issue.

Additional info:
* package version(s)
Version 0.9.0-2 is broken, downgrading to 0.9.0-1 fixes the issue.
* config and/or log files etc.
Contents of file /tmp/Alacritty-3834.log:
[2021-12-03 19:00:18.685146924] [ERROR] [alacritty_terminal] Error reading from PTY in event loop: Input/output error (os error 5)
* link to upstream bug report, if any
[0] https://github.com/alacritty/alacritty/commit/58985a4dcbe464230b5d2566ee68e2d34a1788c8

Steps to reproduce:
1. Open alacritty
2. Close alacritty by pressing Ctrl+d or running the "exit" command
3. Repeat steps 1 and 2 until the error happens
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Sunday, 12 December 2021, 10:24 GMT
Reason for closing:  Fixed
Additional comments about closing:  0.9.0-3
Comment by Christian Seemann (csmnn) - Saturday, 04 December 2021, 23:49 GMT
I can confirm this on my system.

Alacritty 0.9.0-2 will throw the error mentioned in the original bug report.

Downgrading to 0.9.0-1 allows to exit alacritty with CTRL-D.
Patching 0.9.0-2 with the change from https://github.com/alacritty/alacritty/commit/58985a4dcbe464230b5d2566ee68e2d34a1788c8.patch resolves the issue for me as well.

Loading...