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

Panic when opening highlight.js #317

Closed
vv9k opened this issue Jun 19, 2021 · 0 comments · Fixed by #318
Closed

Panic when opening highlight.js #317

vv9k opened this issue Jun 19, 2021 · 0 comments · Fixed by #318
Labels
C-bug Category: This is a bug

Comments

@vv9k
Copy link
Contributor

vv9k commented Jun 19, 2021

Reproduction steps

  1. Run with cargo r
  2. Open file picker f
  3. Try to open highlight.js

Environment

  • Platform: Linux
  • Helix version: v0.2.1-60-g28d9673
backtrace
please provide a copy of `~/.cache/helix/helix.log` here if possible, you may need to redact some of the lines
helix on  master [$⇡] via 🦀 v1.53.0
❯ RUST_BACKTRACE=1 cargo r
   Compiling helix-lsp v0.2.0 (/home/wojtek/dev/rust/helix/helix-lsp)
   Compiling helix-view v0.2.0 (/home/wojtek/dev/rust/helix/helix-view)
   Compiling helix-term v0.2.0 (/home/wojtek/dev/rust/helix/helix-term)
    Finished dev [unoptimized + debuginfo] target(s) in 7.27s
     Running `target/debug/hx`
thread 'main' panicked at 'attempt to add with overflow', helix-term/src/ui/editor.rs:200:33
stack backtrace:
   0: rust_begin_unwind
             at /rustc/53cb7b09b00cbea8754ffb78e7e3cb521cb8af4b/library/std/src/panicking.rs:493:5
   1: core::panicking::panic_fmt
             at /rustc/53cb7b09b00cbea8754ffb78e7e3cb521cb8af4b/library/core/src/panicking.rs:92:14
   2: core::panicking::panic
             at /rustc/53cb7b09b00cbea8754ffb78e7e3cb521cb8af4b/library/core/src/panicking.rs:50:5
   3: helix_term::ui::editor::EditorView::render_buffer
             at ./helix-term/src/ui/editor.rs:200:33
   4: helix_term::ui::editor::EditorView::render_view
             at ./helix-term/src/ui/editor.rs:70:9
   5: <helix_term::ui::editor::EditorView as helix_term::compositor::Component>::render
             at ./helix-term/src/ui/editor.rs:722:13
   6: helix_term::compositor::Compositor::render
             at ./helix-term/src/compositor.rs:138:13
   7: helix_term::application::Application::render
             at ./helix-term/src/application.rs:132:9
   8: helix_term::application::Application::handle_terminal_events
             at ./helix-term/src/application.rs:191:13
   9: helix_term::application::Application::event_loop::{{closure}}
             at ./helix-term/src/application.rs:149:21
  10: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
             at /home/wojtek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/mod.rs:80:19
  11: helix_term::application::Application::run::{{closure}}
             at ./helix-term/src/application.rs:441:9
  12: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
             at /home/wojtek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/mod.rs:80:19
  13: hx::main::{{closure}}
             at ./helix-term/src/main.rs:103:5
  14: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
             at /home/wojtek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/mod.rs:80:19
  15: tokio::park::thread::CachedParkThread::block_on::{{closure}}
             at /home/wojtek/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.6.1/src/park/thread.rs:263:54
  16: tokio::coop::with_budget::{{closure}}
             at /home/wojtek/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.6.1/src/coop.rs:106:9
  17: std::thread::local::LocalKey<T>::try_with
             at /home/wojtek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:376:16
  18: std::thread::local::LocalKey<T>::with
             at /home/wojtek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:352:9
  19: tokio::coop::with_budget
             at /home/wojtek/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.6.1/src/coop.rs:99:5
  20: tokio::coop::budget
             at /home/wojtek/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.6.1/src/coop.rs:76:5
  21: tokio::park::thread::CachedParkThread::block_on
             at /home/wojtek/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.6.1/src/park/thread.rs:263:31
  22: tokio::runtime::enter::Enter::block_on
             at /home/wojtek/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.6.1/src/runtime/enter.rs:151:13
  23: tokio::runtime::thread_pool::ThreadPool::block_on
             at /home/wojtek/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.6.1/src/runtime/thread_pool/mod.rs:71:9
  24: tokio::runtime::Runtime::block_on
             at /home/wojtek/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.6.1/src/runtime/mod.rs:452:43
  25: hx::main
             at ./helix-term/src/main.rs:105:5
  26: core::ops::function::FnOnce::call_once
             at /home/wojtek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:227:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

@vv9k vv9k added the C-bug Category: This is a bug label Jun 19, 2021
@vv9k vv9k mentioned this issue Jun 19, 2021
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

Successfully merging a pull request may close this issue.

1 participant