lapce: Crashes in some environments: no default font found
Lapce Version
0.3.0
System information
- FreeBSD 15-CURRENT amd64
- Rust 1.7.3
- lapce compilation made without rust optimization
Describe the bug
Crashes
Additional information
env RUST_BACKTRACE=full lapce -w
thread 'main' panicked at /wrkdirs/usr/ports/editors/lapce/work/cosmic-text-5bfa288f19970a0b482ad75d5f460ad2c4e08900/src/buffer_line.rs:192:41:
no default font found
stack backtrace:
0: 0x26a6681c863b - <unknown>
1: 0x26a6681fff1c - <unknown>
2: 0x26a6681bad0e - <unknown>
3: 0x26a6681c8414 - <unknown>
4: 0x26a6681afbe3 - <unknown>
5: 0x26a6681af84f - <unknown>
6: 0x26a6681b0e47 - <unknown>
7: 0x26a6681c93b7 - <unknown>
8: 0x26a6681c8846 - <unknown>
9: 0x26a6681b0a72 - <unknown>
10: 0x26a6682061e3 - <unknown>
11: 0x26a6682124a3 - <unknown>
12: 0x26a667f326ab - <unknown>
13: 0x26a667f32758 - <unknown>
14: 0x26a667f47667 - <unknown>
15: 0x26a667f47e59 - <unknown>
16: 0x26a667f473da - <unknown>
17: 0x26a66660d0ec - <unknown>
18: 0x26a665ffffa5 - <unknown>
19: 0x26a66819bccb - <unknown>
20: 0x26a66819f6f9 - <unknown>
21: 0x26a665f247aa - <unknown>
22: 0x26a66639cfee - <unknown>
23: 0x26a665bd3f03 - <unknown>
24: 0x26a665ca02d8 - <unknown>
25: 0x26a665b92ad2 - <unknown>
26: 0x26a665b510f9 - <unknown>
27: 0x26a66775109f - <unknown>
28: 0x26a6677db541 - <unknown>
29: 0x26a667760e2e - <unknown>
30: 0x26a665bb8f18 - <unknown>
31: 0x26a665b2b7b3 - <unknown>
32: 0x26a665b2b7c9 - <unknown>
33: 0x26a6681afd57 - <unknown>
34: 0x26a6681bf5bb - <unknown>
35: 0x26a665b2b825 - <unknown>
36: 0x26ae8da5be5a - __libc_start1
at /usr/src/lib/libc/csu/libc_start1.c:157:7
37: 0x26a665b2b72d - <unknown>
FreeBSD issue: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274852
Any hints?
About this issue
- Original URL
- State: open
- Created 8 months ago
- Comments: 31 (2 by maintainers)
@panekj
I think we can close this PR.
Run is fixed by using “unix.rs” and not “other.rs” (since freebsd isn’t listed) in cosmic-text:
So, this is a cosmic-text issue to be discussed with upstream about adding “freebsd” support to it.
Any sugestions to open an PR?
@nunotexbsd I just tried creating this symbolic link, and lapce still failed with
no default font found:Then I tried creating this symbolic link instead (after deleting the above non-working one):
And that one worked! (At least with the nightly build of lapce.)
Here is a better stacktrace