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

Freezes on :x on large file #4309

Closed
rgoulter opened this issue Oct 16, 2022 · 1 comment
Closed

Freezes on :x on large file #4309

rgoulter opened this issue Oct 16, 2022 · 1 comment
Labels
C-bug Category: This is a bug R-duplicate Duplicated issue: please refer to the linked issue

Comments

@rgoulter
Copy link

rgoulter commented Oct 16, 2022

Summary

When using helix to open large files (> 1.0MiB), when I try to run :x or :wq the editor hangs.

Using :w :q instead behaves as I'd expect.

Reproduction Steps

I tried this:

wget https://www.gutenberg.org/files/1342/1342-0.txt -O pnp.txt
cat pnp.txt pnp.txt > pnp2.txt
du -sh pnp2.txt
  1. open with hx pnp2.txt

  2. invoke command :x.

I expected this to happen:

The editor to quit. I expect that wq should behave the same as :w :q.

Instead, this happened:

The editor is unresponsive, and looks as it does before <Enter> is hit.

Helix log

~/.cache/helix/helix.log

with -vvv,

e.g. when it hangs:

2022-10-16T19:21:23.083 helix_loader [DEBUG] Located configuration folders: []
2022-10-16T19:21:23.088 helix_view::clipboard [INFO] Using xclip to interact with the system and selection (primary) clipboard
2022-10-16T19:21:23.098 mio::poll [TRACE] registering event source with poller: token=Token(1), interests=READABLE | WRITABLE
2022-10-16T19:21:23.098 mio::poll [TRACE] registering event source with poller: token=Token(2), interests=READABLE | WRITABLE
2022-10-16T19:21:23.098 mio::poll [TRACE] registering event source with poller: token=Token(0), interests=READABLE
2022-10-16T19:21:23.098 mio::poll [TRACE] registering event source with poller: token=Token(1), interests=READABLE
2022-10-16T19:21:24.781 helix_term::job [DEBUG] waiting on jobs...

e.g. when using :w :q:

2022-10-16T19:22:06.326 helix_loader [DEBUG] Located configuration folders: []
2022-10-16T19:22:06.331 helix_view::clipboard [INFO] Using xclip to interact with the system and selection (primary) clipboard
2022-10-16T19:22:06.333 mio::poll [TRACE] registering event source with poller: token=Token(1), interests=READABLE | WRITABLE
2022-10-16T19:22:06.333 mio::poll [TRACE] registering event source with poller: token=Token(2), interests=READABLE | WRITABLE
2022-10-16T19:22:06.333 mio::poll [TRACE] registering event source with poller: token=Token(0), interests=READABLE
2022-10-16T19:22:06.333 mio::poll [TRACE] registering event source with poller: token=Token(1), interests=READABLE
2022-10-16T19:22:07.205 helix_term::job [DEBUG] waiting on jobs...
2022-10-16T19:22:07.207 helix_term::job [DEBUG] waiting on jobs...
2022-10-16T19:22:07.208 mio::poll [TRACE] deregistering event source from poller
2022-10-16T19:22:07.208 mio::poll [TRACE] deregistering event source from poller
2022-10-16T19:22:07.208 mio::poll [TRACE] deregistering event source from poller

Platform

Linux & MacOS

Terminal Emulator

kitty 0.26.2, & macOS Terminal

Helix Version

helix 22.08.1 (66276ce)

@rgoulter rgoulter added the C-bug Category: This is a bug label Oct 16, 2022
@the-mikedavis
Copy link
Member

Duplicate of #3975

@the-mikedavis the-mikedavis marked this as a duplicate of #3975 Oct 16, 2022
@the-mikedavis the-mikedavis closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
@the-mikedavis the-mikedavis added the R-duplicate Duplicated issue: please refer to the linked issue label Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug R-duplicate Duplicated issue: please refer to the linked issue
Projects
None yet
Development

No branches or pull requests

2 participants