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

Web crash on NanumMyeongjo-Regular.ttf #5004

Open
davelab6 opened this issue Mar 5, 2025 · 1 comment
Open

Web crash on NanumMyeongjo-Regular.ttf #5004

davelab6 opened this issue Mar 5, 2025 · 1 comment

Comments

@davelab6
Copy link
Contributor

davelab6 commented Mar 5, 2025

Observed behaviour

I put github.com/google/fonts /ofl/nanummyeongjo/NanumMyeongjo-Regular.ttf into fontbakery.com and got this crash:

Traceback (most recent call last):
  File "/lib/python311.zip/_pyodide/_base.py", line 540, in eval_code_async
    await CodeRunner(
  File "/lib/python311.zip/_pyodide/_base.py", line 363, in run_async
    coroutine = eval(self.code, globals, locals)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "", line 5, in 
  File "/home/pyodide/fbwebapi.py", line 122, in run_fontbakery
    runner.run(reporters)
  File "/lib/python3.11/site-packages/fontbakery/checkrunner.py", line 327, in run
    distribute_result(result)
  File "/lib/python3.11/site-packages/fontbakery/checkrunner.py", line 313, in distribute_result
    reporter.receive_result(result)
  File "/home/pyodide/fbwebapi.py", line 92, in receive_result
    data = json.loads(json.dumps(data))
                      ^^^^^^^^^^^^^^^^
  File "/lib/python311.zip/json/__init__.py", line 231, in dumps
    return _default_encoder.encode(obj)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lib/python311.zip/json/encoder.py", line 200, in encode
    chunks = self.iterencode(o, _one_shot=True)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lib/python311.zip/json/encoder.py", line 258, in iterencode
    return _iterencode(o, 0)
           ^^^^^^^^^^^^^^^^^
  File "/lib/python311.zip/json/encoder.py", line 180, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type MemoryError is not JSON serializable

Expected behaviour

No crash ;)

@davelab6
Copy link
Contributor Author

davelab6 commented Mar 6, 2025

I now got this error when running a 3 style static family:

Traceback (most recent call last):
  File "/lib/python311.zip/_pyodide/_base.py", line 540, in eval_code_async
    await CodeRunner(
  File "/lib/python311.zip/_pyodide/_base.py", line 363, in run_async
    coroutine = eval(self.code, globals, locals)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "", line 5, in 
  File "/home/pyodide/fbwebapi.py", line 107, in run_fontbakery
    profile = profile_factory(import_module("fontbakery.profiles." + profilename))
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lib/python3.11/site-packages/fontbakery/fonts_profile.py", line 140, in profile_factory
    included_profile = profile_factory(module)
                       ^^^^^^^^^^^^^^^^^^^^^^^
  File "/lib/python3.11/site-packages/fontbakery/fonts_profile.py", line 151, in profile_factory
    add_checks_to_nascent_profile(
  File "/lib/python3.11/site-packages/fontbakery/fonts_profile.py", line 116, in add_checks_to_nascent_profile
    raise ValueError(f"Check '{check}' not found")
ValueError: Check 'interpolation_issues' not found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant