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

Opening a .nix file causes lapce to crash in floem-0.1.1/src/id.rs:264:15 #3258

Closed
timon-schelling opened this issue May 11, 2024 · 2 comments
Labels
C-bug Category: bug - something isn't working as it's supposed to

Comments

@timon-schelling
Copy link

timon-schelling commented May 11, 2024

Lapce Version

commit 985b07c

System information

NixOS unstable commit 2726f127c15a4cc9810843b96cad73c7eb39e443, Wayland compositor Hyprland commit d5bf15387ad3b4ee36cae7a3cd9f4a9c28790f2e

Describe the bug

Opening a .nix file causes lapce to crash with the following error:

ERROR lapce_app::panic_hook: thread main panicked at <unknown> | floem-0.1.1/src/id.rs:264:15
   0: lapce_app::app::panic_hook::{{closure}}
   1: std::panicking::rust_panic_with_hook
   2: std::panicking::begin_panic_handler::{{closure}}
   3: std::sys_common::backtrace::__rust_end_short_backtrace
   4: rust_begin_unwind
   5: core::panicking::panic_fmt
   6: core::cell::panic_already_borrowed
   7: floem::id::ViewId::request_changes
   8: <floem::views::rich_text::RichText as floem::view::View>::compute_layout
   9: floem::context::ComputeLayoutCx::compute_view_layout
  10: floem::view::default_compute_layout
  11: floem::view::View::compute_layout
  12: floem::context::ComputeLayoutCx::compute_view_layout
  13: floem::view::default_compute_layout
  14: floem::view::View::compute_layout
  15: floem::context::ComputeLayoutCx::compute_view_layout
  16: <floem::views::scroll::Scroll as floem::view::View>::compute_layout
  17: <alloc::boxed::Box<dyn floem::view::View> as floem::view::View>::compute_layout
  18: floem::context::ComputeLayoutCx::compute_view_layout
  19: floem::view::default_compute_layout
  20: floem::view::View::compute_layout
  21: floem::context::ComputeLayoutCx::compute_view_layout
  22: floem::view::default_compute_layout
  23: floem::view::View::compute_layout
  24: <alloc::boxed::Box<dyn floem::view::View> as floem::view::View>::compute_layout
  25: floem::context::ComputeLayoutCx::compute_view_layout
  26: floem::view::default_compute_layout
  27: floem::view::View::compute_layout
  28: <alloc::boxed::Box<dyn floem::view::View> as floem::view::View>::compute_layout
  29: floem::context::ComputeLayoutCx::compute_view_layout
  30: floem::view::default_compute_layout
  31: floem::view::View::compute_layout
  32: <alloc::boxed::Box<dyn floem::view::View> as floem::view::View>::compute_layout
  33: floem::context::ComputeLayoutCx::compute_view_layout
  34: floem::view::default_compute_layout
  35: floem::view::View::compute_layout
  36: <alloc::boxed::Box<dyn floem::view::View> as floem::view::View>::compute_layout
  37: floem::context::ComputeLayoutCx::compute_view_layout
  38: floem::view::default_compute_layout
  39: floem::view::View::compute_layout
  40: floem::context::ComputeLayoutCx::compute_view_layout
  41: floem::window_handle::WindowHandle::layout
  42: floem::window_handle::WindowHandle::process_update_no_paint
  43: floem::app_handle::ApplicationHandle::idle
  44: core::ops::function::impls::<impl core::ops::function::FnMut<A> for &mut F>::call_mut
  45: floem_winit::platform_impl::platform::wayland::event_loop::EventLoop<T>::poll_events_with_timeout
  46: floem_winit::platform_impl::platform::wayland::event_loop::EventLoop<T>::run_on_demand
  47: floem::app::Application::run
  48: lapce_app::app::launch
  49: std::sys_common::backtrace::__rust_begin_short_backtrace
  50: std::rt::lang_start::{{closure}}
  51: std::panicking::try
  52: std::rt::lang_start_internal
  53: main
  54: __libc_start_call_main
  55: __libc_start_main@@GLIBC_2.34
  56: _start
@timon-schelling timon-schelling added the C-bug Category: bug - something isn't working as it's supposed to label May 11, 2024
@timon-schelling timon-schelling changed the title Opening a .nix causes lapce to crash in floem-0.1.1/src/id.rs:264:15 Opening a .nix file causes lapce to crash in floem-0.1.1/src/id.rs:264:15 May 11, 2024
@dzhou121
Copy link
Collaborator

Can you please try the latest nightly

@timon-schelling
Copy link
Author

I tryed I tried the latest nightly for some time and was not able to reproduce the bug, for me this seems to be fixed, thanks @dzhou121. :)

@panekj panekj closed this as completed May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug - something isn't working as it's supposed to
Projects
None yet
Development

No branches or pull requests

3 participants