Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Web crash on NanumMyeongjo-Regular.ttf #5004

@davelab6

Description

@davelab6

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 ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions