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

lapce panics on start #3235

Open
Unisa-Merni-392 opened this issue May 1, 2024 · 1 comment
Open

lapce panics on start #3235

Unisa-Merni-392 opened this issue May 1, 2024 · 1 comment
Labels
C-bug Category: bug - something isn't working as it's supposed to

Comments

@Unisa-Merni-392
Copy link

Lapce Version

I've tried both, one compiled from git repo ( lapce-9999-r4 on my Gentoo) and the binary that I downloaded from your site.
Both panic at the same spot

System information

Gentoo, profile default/linux/amd64/23.0/hardened/selinux
Using sway+wayland on radeon graphics (amdgpu)

Describe the bug

lapce silently panics on start.
I compiled it in debug mode and left binaries unstripped, so that I can get the stack.
So "lapce -w" gets me:


2024-05-01T19:28:07.545881Z ERROR lapce_app::panic_hook: thread main panicked at | file://.//var/tmp/portage/app-editors/lapce-9999-r4/work/cargo_home/gentoo/floem-cosmic-text/src/buffer_line.rs:192:41
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::option::expect_failed
7: floem_cosmic_text::buffer_line::TextLayoutLine::shape
8: floem_cosmic_text::buffer_line::TextLayoutLine::layout
9: floem_cosmic_text::buffer::TextLayout::shape_until
10: floem_cosmic_text::buffer::TextLayout::set_text
11: floem_cosmic_text::buffer::TextLayout::new
12: floem_reactive::signal::ReadSignal::with_untracked
13: <floem_reactive::effect::Effect<T,F> as floem_reactive::effect::EffectTrait>::run
14: floem_reactive::scope::with_scope
15: floem_reactive::effect::run_initial_effect
16: floem_reactive::effect::create_effect
17: floem_reactive::scope::with_scope
18: lapce_app::window_tab::WindowTabData::new
19: lapce_app::window::WindowData::new
20: lapce_app::app::AppData::app_view
21: core::ops::function::FnOnce::call_once{{vtable.shim}}
22: floem_reactive::scope::with_scope
23: floem::window_handle::WindowHandle::new
24: floem::app_handle::ApplicationHandle::new_window
25: lapce_app::app::launch
26: std::sys_common::backtrace::__rust_begin_short_backtrace
27: std::rt::lang_start::{{closure}}
28: std::rt::lang_start_internal
29: main
30:
31: __libc_start_main
32: _start


Additional information

It looks like floem_cosmic_text fails to set the default font shape. Do I need to have some specific font package installed ? 🙄

@Unisa-Merni-392 Unisa-Merni-392 added the C-bug Category: bug - something isn't working as it's supposed to label May 1, 2024
@Unisa-Merni-392
Copy link
Author

I just managed to make it work by emerging media-fonts/freefont
(homepage: https://savannah.nongnu.org/projects/freefont/ )

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

1 participant