SDL3 frontend crashes on startup when a fontconfig fallback font has `[` `]` in its filename
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- Half a day
- Newbie friendliness
- 42/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Domain
- desktop
Research direction
Reproduce by installing a bracketed variable font and running fc-match -s --format='%{file}\n' monospace | grep '\[', then start the SDL3 build with make sdl3. Trace where the SDL3 frontend reads fontconfig fallback paths and turns them into Lisp pathnames; SBCL is treating [ and ] as wildcard syntax rather than literal filename characters. Done means lem starts with such a font selected, ideally with a regression test covering bracketed font paths.
Written by the indexing model from the issue text.
Description
Error:
debugger invoked on a SB-INT:SIMPLE-FILE-ERROR in thread
#<THREAD "main thread" RUNNING>:
Can't find the TRUENAME of wild pathname
/usr/share/fonts/google-noto-vf/NotoSansArabic[wght].ttf
(physicalized from /usr/share/fonts/google-noto-vf/NotoSansArabic[wght].ttf).
Steps to reproduce
- Install a distro font package that ships variable fonts with brackets in the
filename (on Fedora: anygoogle-noto-*-vf-fontspackage, e.g.google-noto-sans-arabic-vf-fonts). - Confirm fontconfig returns one of them for the monospace fallback list:
fc-match -s --format='%{file}\n' monospace | grep '\[' - Run
lem(SDL3 build).
Environment
- Lem:
main@ 60cb7c37 (Merge PR #2417 sdl3-next) - Build:
make sdl3,make install-sdl3 - OS: Fedora (Linux 7.2, x86_64)
- Lisp: SBCL
- Package providing the font:
google-noto-sans-arabic-vf-fonts-20251201-2.fc44. The wholegoogle-noto-*-vf-fontsfamily installs/usr/share/fonts/google-noto-vf/*[wght].ttf;vazirmatn-vf-fontsdoes too.
- Dominant language
- Common Lisp
- Stars
- 3.1k
- Forks
- 261
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 133
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from lem-project/lem
-
Difficulty 1/5 1-3 hours Newbie friendliness 85/100
lem-project/lem#2525 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
lem-project/lem#2524 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
lem-project/lem#2488 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
lem-project/lem#2369 ·
Maintainers usually reply within 1 day
-
unix-paste-bugOpen
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
lem-project/lem#2360 ·
Maintainers usually reply within 1 day
Similar issues
-
in-progress
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
s1dashu/quiet-md#572 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
flathub/org.ardour.Ardour#89 ·