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

Positions are out of range for changeset length #12582

Open
joelreymont opened this issue Jan 18, 2025 · 3 comments
Open

Positions are out of range for changeset length #12582

joelreymont opened this issue Jan 18, 2025 · 3 comments
Labels
C-bug Category: This is a bug

Comments

@joelreymont
Copy link

Summary

I press a key and then

thread 'main' panicked at helix-core/src/transaction.rs:483:9:
Positions [(56567, After), (56570, Before)] are out of range for changeset len 12513!
stack backtrace:
   0: _rust_begin_unwind
   1: core::panicking::panic_fmt
   2: helix_core::transaction::ChangeSet::update_positions
   3: helix_view::view::View::apply
   4: helix_view::document::Document::append_changes_to_history
   5: <helix_term::ui::editor::EditorView as helix_term::compositor::Component>::handle_event
   6: helix_term::compositor::Compositor::handle_event
   7: helix_term::application::Application::run::{{closure}}
   8: tokio::runtime::park::CachedParkThread::block_on
   9: tokio::runtime::context::runtime::enter_runtime
  10: tokio::runtime::runtime::Runtime::block_on
  11: hx::main

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)

@joelreymont joelreymont added the C-bug Category: This is a bug label Jan 18, 2025
@nik-rev
Copy link
Contributor

nik-rev commented Jan 18, 2025

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

@joelreymont
Copy link
Author

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.

@nik-rev
Copy link
Contributor

nik-rev commented Jan 18, 2025

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

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
Projects
None yet
Development

No branches or pull requests

2 participants