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

Crash and freeze caused upon :wq with large file #4453

Closed
rgasper opened this issue Oct 24, 2022 · 1 comment
Closed

Crash and freeze caused upon :wq with large file #4453

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

Comments

@rgasper
Copy link

rgasper commented Oct 24, 2022

Summary

I have a large file, an about 130K line csv. After making some changes with helix in many lines in the line 300 -> line 650 region, when I save using :wq, helix crashes and stops writing to disk around line 12750, effectively deleting the remaining 120,000 lines in the file. After the crash, helix is stuck controlling the terminal, catching all inputs; the screen displays whatever the helix view was when :wq was run. The terminal session has to be killed by the emulator or OS.

If it helps debugging, the lines in the file average just about 100 bytes, but are a bit shorter in the beginning few thousand lines, averaging closer to 70 bytes per line.

The curious part of this crash is that if I run :w then :q after, there are no problems.

Running helix in very very verbose mode, and then editing the file, then I see no messages of relevance in the log. Just this right at the same time as the crash:

2022-10-24T14:39:21.520 helix_term::job [DEBUG] waiting on jobs...

Reproduction Steps

Change many lines in a large file, then :wq. Helix should crash and hang on the terminal, blocking keyboard inputs.

Helix log

~/.cache/helix/helix.log
2022-10-24T14:39:21.520 helix_term::job [DEBUG] waiting on jobs...

Platform

macOS Monterey 12.5

Terminal Emulator

iterm2

Helix Version

helix 22.08 (ee94031)

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

Duplicate of #3975

This was fixed in #2267

@the-mikedavis the-mikedavis closed this as not planned Won't fix, can't repro, duplicate, stale Oct 24, 2022
@the-mikedavis the-mikedavis added the R-duplicate Duplicated issue: please refer to the linked issue label Oct 24, 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