Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Broken pipe' error message in log file and crush on macOS #2003

Closed
anzhi0708 opened this issue Apr 7, 2022 · 1 comment
Closed

'Broken pipe' error message in log file and crush on macOS #2003

anzhi0708 opened this issue Apr 7, 2022 · 1 comment
Labels
A-language-server Area: Language server client C-bug Category: This is a bug

Comments

@anzhi0708
Copy link

Summary

I have experienced over 10 crashes during last 2 days on macOS 12.3. The issue is most likely with language server. After Async job failed error message appeared inside the editor, language server stoped working and if I try to quit the editor, the whole terminal freezes for 15 seconds then crashes.
During the 15 seconds' freeze, keyboard input seemed to be recorded.

...

2022-04-07T16:00:05.521 helix_lsp::transport [ERROR] err <- "16:00:05                  pipeline.cc:386 I parse /Users/aj/Public/c/observer_pattern_oc/main.m\n"
2022-04-07T16:00:05.522 helix_lsp::transport [ERROR] err <- "16:00:05                  pipeline.cc:397 I store index for /Users/aj/Public/c/observer_pattern_oc/main.m (delta: 1)\n"
2022-04-07T16:00:05.523 helix_lsp [ERROR] unhandled LSP notification: $ccls/publishSkippedRanges
2022-04-07T16:00:05.523 helix_lsp [ERROR] unhandled LSP notification: $ccls/publishSemanticHighlight
2022-04-07T16:03:02.729 helix_lsp::transport [ERROR] err <- "16:03:02                  pipeline.cc:386 I parse /Users/aj/Public/c/observer_pattern_oc/main.m\n"
2022-04-07T16:03:02.729 helix_lsp::transport [ERROR] err <- "16:03:02                  pipeline.cc:397 I store index for /Users/aj/Public/c/observer_pattern_oc/main.m (delta: 1)\n"
2022-04-07T16:03:02.731 helix_lsp [ERROR] unhandled LSP notification: $ccls/publishSkippedRanges
2022-04-07T16:03:02.731 helix_lsp [ERROR] unhandled LSP notification: $ccls/publishSemanticHighlight
2022-04-07T16:04:44.514 helix_lsp::transport [ERROR] err: <- Other(invalid utf8 from server

Caused by:
    invalid utf-8 sequence of 1 bytes from index 23174)
2022-04-07T16:04:44.569 helix_lsp::transport [ERROR] err: <- StreamClosed
2022-04-07T16:04:44.781 helix_lsp::transport [ERROR] err: <- IO(Os { code: 32, kind: BrokenPipe, message: "Broken pipe" })
2022-04-07T16:04:45.034 helix_lsp::transport [ERROR] err: <- IO(Os { code: 32, kind: BrokenPipe, message: "Broken pipe" })
2022-04-07T16:04:45.436 helix_lsp::transport [ERROR] err: <- IO(Os { code: 32, kind: BrokenPipe, message: "Broken pipe" })

...

I've set $RUST_BACKTRACE to full, but when this error occurs, console shows NO backtrace information. I was trying to edit a objective-c source file. I remember similar crash last year when I was editing a python file with pylsp set up. Same warning ('Async job failed: content modified') appears on Termux too.

Reproduction Steps

I'm not sure what caused this error. I was using an English keyboard layout. Even though I have Korean & Simplified Chinese input method set up on my system, I was not using them. But I do have some screenshots here...
截屏2022-04-02 上午8 19 17
截屏2022-04-02 上午8 20 13

Helix log

截屏2022-04-02 上午8 03 10
截屏2022-04-02 上午8 01 09

Platform

macOS

Terminal Emulator

iTerm2

Helix Version

helix 22.03 (d4e45fd)

@anzhi0708 anzhi0708 added the C-bug Category: This is a bug label Apr 7, 2022
@kirawi kirawi added the A-language-server Area: Language server client label Apr 7, 2022
@pascalkuthe
Copy link
Member

I am closing thus as stale since the helix version this was reported against is ancient. This was likely fixed already (quite likely the code that chased this doesn't even exist anymore)

@pascalkuthe pascalkuthe closed this as not planned Won't fix, can't repro, duplicate, stale Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-language-server Area: Language server client C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

3 participants