-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Positions are out of range for changeset length #12582
Comments
Maybe record a video of your screen then, when it crashes put the video here. It'll make it easier to find out how to reproduce it |
Problem is that the crash happens every few days and I haven't been able to figure out the circumstances. Constantly recording my screen is not really viable, I think, and I don't know of a system that only keeps the last minute when recording. I'll see what I can do, though. |
I recommend trying Asciinema: https://asciinema.org/ It records your terminal session in an extremely lightweight text format |
Here's another one
How do I cut the last N seconds from the cast file? Also, how many seconds should I cut out? |
Replying to say that I just had the same issue. The crash log was:
I'll try record it if this happens again. This seems related to #9830 |
What have been the actions that you can remember right before the crash? Were there splits open, did a save happen, a command run, inserting text, deleting text, etc.? Are these crashes all on mac? Ive tried looking into this before, to see if I could find anything, but the panic is happing pretty deep in the call stack, and with the entry being |
It was just basic editing, I'm not too certain anymore but I think I was deleting text. I had a vertical split on the left, and 2 horizontal splits on the right, 5-ish buffers open, and the splits themselves were all of the same file. It was on a M2 chip macOS Sonoma version 14.4, Ghostty, Helix 25.1 installed through brew. It was also inside a tmux session but I assume that's not relevant. |
I wonder if this is common for the others here? |
I don't split at all! |
I have a Asciinema recording of a session with a crash. How do I cut the last 3-4 seconds from the cast file so that I can attach it here? |
I just got another crash. Navigated to a definition. Scrolled up to the portion of the file I wanted to look at. Tried to delete a line by selecting it (X) and then deleting (D). Crashed when pressing D. |
@joelreymont https://docs.asciinema.org/faq/#can-i-editpost-process-the-recording And thanks for the feedback on the steps. Deletion seems to be the common case. Was the deletion done in code that you own(like the code there is part of that repo) or was the definition code from an external library? |
Actually, the reasons are all over the place! My last two crashes have been on selecting with X and trying to insert with O. |
But once again with multiple splits of the same file? |
No splits, just your regular plain vanilla editing. |
Huh, this is really stumping me. I've never experience this crash on windows. What kind of files are you editing? Do they have many non ascii characters? Is it possible you can provide an example of the files? Its getting to the point where the search scope is so large that I might just male a PR to try to add logs along the way to see if we can find anything in them when it happens again. |
I'm not the Mac, programming in Zig, it can't get any simpler. I suggest switching to the Mac for a few days. I consistently crash a few times per day, losing my edits. |
Also, I'll be glad to build from source and run the version with logging. |
I made a branch here with some changes to try to see what step its failing on: https://github.com/RoloEdits/helix/tree/log-changeset-panic We can keep adding more until we find the steps its failing. My feeling is it could have something to do with how it reverts, which is why I added checks there first, but it could be a combination of edgecases when there is a delete right after an insert? Given that I havent ever come across the panic I dont really know how to test any changes. So this will be a very back and forth process. |
I've been running 0.25 without issues for a bit now. I'll keep going until it crashes and then switch to the branch above. |
Incredibly stable so far. I think this issue may have been fixed but I'll give it another week or two before a final judgement. |
It took a whole lot longer but it crashed again
|
Do you keep it up to date with master? |
Today is my lucky day! By the way, I don't know what snippets are and I'm not using them.
|
Just had one crash. Unfortunately I cannot reproduce it. It happened when I tried to add a
|
Summary
I press a key and then
Reproduction Steps
I cannot reproduce this, unfortunately.
It has happened to me several times already, causing me to lose my unsaved changed.
Helix log
Nothing with today's date.
Platform
macOS 15.2
Terminal Emulator
Ghostty 1.0.1
Installation Method
brew
Helix Version
Helix 24.7 (079f544)
The text was updated successfully, but these errors were encountered: