Open johnnye opened 4 weeks ago
Sounds like we're having trouble loading one of the TTF fonts you have installed on your system. We'd first need to figure out which file is failing, so that we can take a closer look at it and understand why our parser gets upset :)
It seems to be Söhne SöhneApp-Dreiviertelfett.ttf
from https://klim.co.nz/collections/soehne/ that is causing the issue. Unfortunately, I'm not sure what the licensing is for this font so I can't provide a sample.
As a follow up - this does not happen with the Klim Test font package that is available - these are all OTF fonts though.
For me, running Debian Unstable, this issue is caused by the API PHONÉTIQUE font, as included in the fonts-linex package.
I also have this problem (on Voidlinux in my case), but don't know which font causes it. How do you determine that?
I did some print lines of the font being loaded. Used the stack trace to crib the right class, then recompiled and ran ladybird.
I did some print lines of the font being loaded. Used the stack trace to crib the right class, then recompiled and ran ladybird.
Thanks, that works.
Apparently in my case the font it trips on is called "����", which doesn't seem very helpful. The output of fc-list
doesn't even feature U+FFFC once, let alone four times in a row.
OK, so I dug deeper and found that in my case the crash is triggered by the font called ZCOOLXiaoWei-Regular, which is part of google fonts. Since it happens during OpenType::Font::family() call, seems like string_for_id doesn't like something about the strings "站酷小薇体", "ZCOOL XiaoWei" or "站酷小薇体 常规".
Running macOS Sonoma 14.4.1 (23E224), this may be related to #31 but I'm unable to determine that. Built from this commit. https://github.com/LadybirdWebBrowser/ladybird/commit/862fc91b2cf9bee9b7f180cdf930c6c99b5dd053
This happens when opening a new tab.