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 in xi-syntect-plugin when doing find&replace #1272

Open
Cogitri opened this issue Jun 1, 2020 · 0 comments
Open

Crash in xi-syntect-plugin when doing find&replace #1272

Cogitri opened this issue Jun 1, 2020 · 0 comments

Comments

@Cogitri
Copy link
Member

Cogitri commented Jun 1, 2020

When doing find&replace with syntax highlighting enabled xi-syntect-plugin often crashes with the following backtrace:

thread 'main' panicked at 'Delta builder: intervals not properly sorted', rope/src/delta.rs:588:9
stack backtrace:
   0:     0x55f3ad4df8a3 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h54a554a656aad64c
   1:     0x55f3ad4f974d - core::fmt::write::h4062330348f16431
   2:     0x55f3ad4df645 - std::io::Write::write_fmt::h143dd423ee1884d4
   3:     0x55f3ad4d6490 - std::panicking::default_hook::{{closure}}::hfb3d55640a8eb1fd
   4:     0x55f3ad4d61ab - std::panicking::default_hook::h6611efd8655219d9
   5:     0x55f3ad4d6ad1 - std::panicking::rust_panic_with_hook::h6698d52df4a4e416
   6:     0x55f3ad4d1181 - std::panicking::begin_panic::ha07bc01d9c8caae3
                               at /home/buildozer/aports/community/rust/src/rustc-1.43.1-src/src/libstd/panicking.rs:397
   7:     0x55f3ad329654 - xi_rope::delta::Builder<N>::delete::h177fafbc0409da4a
                               at rope/src/delta.rs:588
   8:     0x55f3ad3296d0 - xi_rope::delta::Builder<N>::replace::h8357214bd41f1426
                               at rope/src/delta.rs:598
   9:     0x55f3ad1f0390 - xi_syntect_plugin::PluginState::bulk_autoindent::hddfdd667b6c23640
                               at syntect-plugin/src/main.rs:338
  10:     0x55f3ad1eec03 - xi_syntect_plugin::PluginState::indent_lines::h782478acc7c577c7
                               at syntect-plugin/src/main.rs:240
  11:     0x55f3ad1f4de3 - <xi_syntect_plugin::Syntect as xi_plugin_lib::Plugin>::idle::h9f6a9707e2383b26
                               at syntect-plugin/src/main.rs:728
  12:     0x55f3ad20fb72 - <xi_plugin_lib::dispatch::Dispatcher<P> as xi_rpc::Handler>::idle::h378df28b23990b5f
                               at /home/rasmus/Projects/xi-editor/rust/plugin-lib/src/dispatch.rs:228
  13:     0x55f3ad2036c1 - xi_rpc::do_idle::h4db2d937c29e1122
                               at /home/rasmus/Projects/xi-editor/rust/rpc/src/lib.rs:390
  14:     0x55f3ad20391a - xi_rpc::next_read::h0745df13f23a1493
                               at /home/rasmus/Projects/xi-editor/rust/rpc/src/lib.rs:374
  15:     0x55f3ad201d5a - xi_rpc::RpcLoop<W>::mainloop::{{closure}}::h4e16ce68bc5c722c
                               at /home/rasmus/Projects/xi-editor/rust/rpc/src/lib.rs:305
  16:     0x55f3ad18bd70 - crossbeam_utils::thread::scope::{{closure}}::hc7bf0ec474b2cff6
                               at /home/rasmus/.cargo/registry/src/github.com-1ecc6299db9ec823/crossbeam-utils-0.7.2/src/thread.rs:161
  17:     0x55f3ad1de689 - <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h31eaf5940996cd61
                               at /home/buildozer/aports/community/rust/src/rustc-1.43.1-src/src/libstd/panic.rs:318
  18:     0x55f3ad228f4a - std::panicking::try::do_call::h0848acea8b45692c
                               at /home/buildozer/aports/community/rust/src/rustc-1.43.1-src/src/libstd/panicking.rs:303
  19:     0x55f3ad4e2b27 - __rust_maybe_catch_panic
  20:     0x55f3ad228db0 - std::panicking::try::h1b5e8619adc2969d
                               at /home/buildozer/aports/community/rust/src/rustc-1.43.1-src/src/libstd/panicking.rs:281
  21:     0x55f3ad1de708 - std::panic::catch_unwind::h98017e53c02716bf
                               at /home/buildozer/aports/community/rust/src/rustc-1.43.1-src/src/libstd/panic.rs:394
  22:     0x55f3ad18b614 - crossbeam_utils::thread::scope::h699ed5ee77b99134
                               at /home/rasmus/.cargo/registry/src/github.com-1ecc6299db9ec823/crossbeam-utils-0.7.2/src/thread.rs:161
  23:     0x55f3ad201a77 - xi_rpc::RpcLoop<W>::mainloop::h2538d5997d60077b
                               at /home/rasmus/Projects/xi-editor/rust/rpc/src/lib.rs:257
  24:     0x55f3ad1da5ff - xi_plugin_lib::mainloop::hb4fba6e75d7648ff
                               at /home/rasmus/Projects/xi-editor/rust/plugin-lib/src/lib.rs:211
  25:     0x55f3ad1f4fbf - xi_syntect_plugin::main::he3de1a49cfe3291e
                               at syntect-plugin/src/main.rs:750
  26:     0x55f3ad1dc03b - std::rt::lang_start::{{closure}}::ha92eaf59925373aa
                               at /home/buildozer/aports/community/rust/src/rustc-1.43.1-src/src/libstd/rt.rs:67
  27:     0x55f3ad4d65a3 - std::panicking::try::do_call::h36c950cdaa90da3c
  28:     0x55f3ad4e2b27 - __rust_maybe_catch_panic
  29:     0x55f3ad4da324 - std::rt::lang_start_internal::h3c1936d89a759a3d
  30:     0x55f3ad1dc017 - std::rt::lang_start::hc0fbaeab0bc682f4
                               at /home/buildozer/aports/community/rust/src/rustc-1.43.1-src/src/libstd/rt.rs:67
  31:     0x55f3ad1f52ea - main
  32:     0x7f5911c141f5 - libc_start_main_stage2
                               at src/env/__libc_start_main.c:94

I'm using xi-editor 72ce488 . Bug report in Tau with reproducer file: https://gitlab.gnome.org/World/Tau/-/issues/402#note_824072

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant