Skip to content

"Couldn't find font" - crash #22

@daneov

Description

@daneov

When running kickoff I receive the following stacktrace:

Daneo-XPS% RUST_BACKTRACE=full kickoff
thread 'tokio-runtime-worker' panicked at 'Couldn't find font', /home/daneo/.cargo/registry/src/github.com-1ecc6299db9ec823/kickoff-0.5.0/src/font.rs:22:45
stack backtrace:
   0:     0x560c05e79435 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h18674753585b8cc5
   1:     0x560c05cb53bc - core::fmt::write::h650970577346edc1
   2:     0x560c05e77ef4 - std::io::Write::write_fmt::hcdbe4458fe2ebdfb
   3:     0x560c05e785eb - std::panicking::default_hook::{{closure}}::h2b3ca2e1a25274db
   4:     0x560c05e7799a - std::panicking::rust_panic_with_hook::habc6079310c0728a
   5:     0x560c05e987e8 - std::panicking::begin_panic_handler::{{closure}}::ha449aee990d62948
   6:     0x560c05e98766 - std::sys_common::backtrace::__rust_end_short_backtrace::h54cc540f2a5a6bf2
   7:     0x560c05e98722 - rust_begin_unwind
   8:     0x560c05c73930 - core::panicking::panic_fmt::he85288327cd30385
   9:     0x560c05cb6120 - core::panicking::panic_display::h78973eb85f3c7fcb
  10:     0x560c05c73b8b - core::option::expect_failed::h8b4000216a5a1a81
  11:     0x560c05cfe8ec - kickoff::font::Font::new::h0d46d20d8c63056a
  12:     0x560c05d27c2c - tokio::runtime::task::harness::poll_future::heb5b6ecccf7dde17
  13:     0x560c05c92464 - tokio::runtime::task::raw::poll::hf3706922d73ca782
  14:     0x560c05ebabde - tokio::runtime::thread_pool::worker::Context::run_task::h904c87cce3ecce93
  15:     0x560c05ea7a80 - tokio::runtime::task::raw::poll::h941af331f075f74b
  16:     0x560c05eb4a45 - tokio::runtime::blocking::pool::Inner::run::h55390d55cd0c82dc
  17:     0x560c05eacb0e - std::sys_common::backtrace::__rust_begin_short_backtrace::h42b1c0ea489b853e
  18:     0x560c05ebc02d - core::ops::function::FnOnce::call_once{{vtable.shim}}::h11780ba8122bdbd3
  19:     0x560c05ea1af5 - std::sys::unix::thread::Thread::new::thread_start::h2582dd3e3de2d3c5
  20:     0x7f2d6bd83eae - start_thread
                               at /builddir/glibc-2.32/nptl/pthread_create.c:463:8
  21:     0x7f2d6bb6c2ff - __GI___clone
                               at /builddir/glibc-2.32/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:95
  22:                0x0 - <unknown>
Error: JoinError::Panic(...)

My config file:

Daneo-XPS% cat .config/kickoff/config.toml
# Kickoff default config

# Characters shown in front of the query.
prompt = ''

# space between window border and the content in pixel
padding = 100

fonts = ['Liberation Mono']        # otf or ttf only
font_size = 32.0

[history]
decrease_interval = 48 # interval to decrease the number of launches

[colors]
# color format: rgb or rgba, if transparency is desired
background = '#282c34aa'
prompt = '#abb2bfff'
text = '#ffffffff'          # for search results
text_query = '#e5c07bff'    # for the search query
text_selected = '#61afefff' # for the currently selected result

[keybindings]
# keybindings syntax: ctrl/shift/alt/logo as modifiers and a key joined by '+' signs
# A list of available keys can be found here: https://docs.rs/crate/x11-keysymdef/0.2.0/source/src/keysym.json
paste = ["ctrl+v"]
execute = ["KP_Enter", "Return"]
delete = ["KP_Delete", "Delete", "BackSpace"]
delete_word = ["ctrl+KP_Delete", "ctrl+Delete", "ctrl+BackSpace"]
complete = ["Tab"]
nav_up = ["Up"]
nav_down = ["Down"]
exit = ["Escape"]

Confirmation that the font is installed:

Daneo-XPS% fc-list -v | grep -B10 ttf | grep fullname
	fullname: "Liberation Mono"(s)
	fullnamelang: "en"(s)
	fullname: "Liberation Serif Bold Italic"(s)
	fullnamelang: "en"(s)
	fullname: "Liberation Sans Italic"(s)
	fullnamelang: "en"(s)
	fullname: "Liberation Sans"(s)
	fullnamelang: "en"(s)
	fullname: "Liberation Mono Italic"(s)
	fullnamelang: "en"(s)
	fullname: "Liberation Mono Bold Italic"(s)
	fullnamelang: "en"(s)
	fullname: "Liberation Serif Italic"(s)
	fullnamelang: "en"(s)
	fullname: "Liberation Sans Bold"(s)
	fullnamelang: "en"(s)
	fullname: "Liberation Serif Bold"(s)
	fullnamelang: "en"(s)
	fullname: "Liberation Sans Bold Italic"(s)
	fullnamelang: "en"(s)
	fullname: "Liberation Serif"(s)
	fullnamelang: "en"(s)
	fullname: "Twitter Color Emoji SVGinOT"(s)
	fullnamelang: "en"(s)
	fullname: "Liberation Mono Bold"(s)
	fullnamelang: "en"(s)

Any ideas? Or things I can help to determine where this goes wrong?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions