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.

fonteditor-core reports "Error: check sum out of bound"

See original GitHub issue

I’m trying to use this plugin in a vuejs application with a minimal webpack config:

    new FontminPlugin({
      autodetect: true,
      glyphs: [],
    }), 

When the webpack rule is triggered however, I’m getting the following error:

 ERROR  Error: check sum out of bound
Error: check sum out of bound
    at checkSumArrayBuffer (/opt/src/Frontend/node_modules/fonteditor-core/ttf/util/checkSum.js:13:15)
    at checkSum (/opt/src/Frontend/node_modules/fonteditor-core/ttf/util/checkSum.js:80:16)
    at /opt/src/Frontend/node_modules/fonteditor-core/ttf/ttfwriter.js:185:26
    at Array.forEach (<anonymous>)
    at TTFWriter.write (/opt/src/Frontend/node_modules/fonteditor-core/ttf/ttfwriter.js:174:24)
    at TTFWriter.write (/opt/src/Frontend/node_modules/fonteditor-core/ttf/ttfwriter.js:231:24)
    at minifyTtf (/opt/src/Frontend/node_modules/fontmin/plugins/glyph.js:97:29)
    at Through2._transform (/opt/src/Frontend/node_modules/fontmin/plugins/glyph.js:153:27)
    at Through2.Transform._read (/opt/src/Frontend/node_modules/fontmin/node_modules/readable-stream/lib/_stream_transform.js:159:10)
    at Through2.Transform._write (/opt/src/Frontend/node_modules/fontmin/node_modules/readable-stream/lib/_stream_transform.js:147:83)
    at doWrite (/opt/src/Frontend/node_modules/fontmin/node_modules/readable-stream/lib/_stream_writable.js:313:64)
    at writeOrBuffer (/opt/src/Frontend/node_modules/fontmin/node_modules/readable-stream/lib/_stream_writable.js:302:5)
    at Through2.Writable.write (/opt/src/Frontend/node_modules/fontmin/node_modules/readable-stream/lib/_stream_writable.js:241:11)
    at PassThrough.ondata (/opt/src/Frontend/node_modules/readable-stream/lib/_stream_readable.js:619:20)
    at PassThrough.emit (events.js:315:20)
    at PassThrough.Readable.read (/opt/src/Frontend/node_modules/readable-stream/lib/_stream_readable.js:469:26)

Note that I’m using fontmin in version 2.7.0 as I’m dependent on webpack 4 due to other modules in the project.

Is there anything I’m missing? I couldn’t find reports on similar issues.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
zonquecommented, Apr 22, 2021

Thanks a lot for working on this! I can confirm that the error is gone with 3.0.1, and the result is correct when glyps are manually specified. However, the auto-detection still doesn’t work for me.

0reactions
zonquecommented, Apr 24, 2021

How specifically does it not work? The font and stylesheet from your example was directly added to our test suite using autodetect, so I cannot reproduce an exception being thrown.

No exception is being thrown, but from what I can see, the glyphs that are generated in the reduced file don’t match the ones in the input. I’ve checked the generated woff file with FontDrop, and while the number of glyphs seem to match, their codes don’t.

Bot sure if I’m holding it right tho. Which tools would you recommend to check?

Read more comments on GitHub >

github_iconTop Results From Across the Web

IJ32755: CHECKSUM ERROR ON NETWORK I/O ... - IBM
When reconnect happens in the middle of a write operation, the below error may be reported:
Read more >
Java sum puzzle, stuck with out of bounds error that I can't find
My entire program is below and can be run as soon as you paste it (main method is written with the current test...
Read more >
How to use DBRPR to scan for known blocks checksum error ...
After confirmation, DBRPR will then scan and report/fix all blocks checksum for known issues in the Type II Area or block range provided....
Read more >
Checksum failed for nightly channel #524 - rust-lang/rustup
I just moved from multirust to rustup and experience the following problem when installing nightly: $> rustup update nightly info: syncing ...
Read more >
checksum error - Oracle Communities
Hi all.. APEX version: 3.2 I have a report which has a "link" that redirects the user to a specific page(with "page access...
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