question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OverflowError: unsigned byte integer is greater than maximum

See original GitHub issue

I’m getting the following error when trying to compile a variable font. This has been happening to all of the UFOs in the project, across 4 distinct .designspaces. For one of them, renaming commaaccentabove to commaaccent.alt seemed to inexplicably solve the issue, but for the other variable fonts, I’m unable to solve the issue without deleting half of the character-set (doesn’t seem to matter which half). Please advise!

File "/Applications/RoboFont-4_2b2.app/Contents/Resources/lib/python3.7/fontTools/ttLib/tables/_c_m_a_p.py", line 176, in compile
KeyError: 4769113184

During handling of the above exception, another exception occurred:

    Traceback(most recent call last):
    File "/Applications/RoboFont-4_2b2.app/Contents/Resources/lib/python3.7/fontCompiler/ttfCompiler.py", line 599, in _makefont
File "/Applications/RoboFont-4_2b2.app/Contents/Resources/lib/python3.7/fontTools/ttLib/ttFont.py", line 181, in save
File "/Applications/RoboFont-4_2b2.app/Contents/Resources/lib/python3.7/fontTools/ttLib/ttFont.py", line 221, in _save
File "/Applications/RoboFont-4_2b2.app/Contents/Resources/lib/python3.7/fontTools/ttLib/ttFont.py", line 644, in _writeTable
File "/Applications/RoboFont-4_2b2.app/Contents/Resources/lib/python3.7/fontTools/ttLib/ttFont.py", line 666, in getTableData

OverflowError: unsigned byte integer is greater than maximum 

Lines in question: https://github.com/fonttools/fonttools/blob/e92dd05101e58a4abdf7f179a25f2d19f9a97d8b/Lib/fontTools/ttLib/tables/_c_m_a_p.py#L176 https://github.com/fonttools/fonttools/blob/e92dd05101e58a4abdf7f179a25f2d19f9a97d8b/Lib/fontTools/ttLib/ttFont.py#L666

Is it a problem with my glyph names, or order, or something else?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
justvanrossumcommented, Apr 19, 2022

(probably messing up the metaphor, but I’m sure you know what I mean…)

1reaction
justvanrossumcommented, Apr 19, 2022

Or: abandon FDK and move to fontmake.

I’m personally not touching AFDKO with a 10 foot pole, and I couldn’t be happier.

Read more comments on GitHub >

github_iconTop Results From Across the Web

OverflowError: unsigned byte integer is greater than maximum
When my dataset goes to 77000+ images, there is an error: Traceback (most recent call last): File "convert-images-to-mnist-format.py", ...
Read more >
I keep getting overflowError: unsigned short is greater than ...
You create an array of unsigned bytes with array('B') , which means you only have 1 byte worth of space to store in...
Read more >
comparison of characters in C & python - Stack Overflow
it's actually giving: OverflowError: unsigned byte integer is greater than maximum. and it's because the %c format expects a single byte, ...
Read more >
Inconsistency in overflow error messages of integer argument
... line 1, in <module> OverflowError: unsigned byte integer is greater than maximum >>> _testcapi.getargs_b(-1000) Traceback (most recent ...
Read more >
A brand new website interface for an even better experience!
OverflowError : unsigned byte integer is greater than maximum.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found