tesseract.js: Tesseractjs recognize Error: abort(undefined). Build with -s ASSERTIONS=1 for more info

Using tesseractjs in vue-cli 3 I use tesseractjs to recognize numbers with downloading language packages to local. After some tests, i got the runtime error " abort(undefined). Build with -s ASSERTIONS=1 for more info ". I dont’t konw what happened as I restart the project ang ran tesseract successfully.

Steps Steps to reproduce the behavior:

  1. start the project
  2. dev_environment: (checked means performed well)
  • recognize some images on mobile(access by ip address)
  • recognize some images on pc(access by localhost)
  • recognize some images on pc(access by ip address)
  1. see error - abort(undefingoued). Build with -s ASSERTIONS=1 for more info
  2. all is well

Expected behavior I want to know if this is a bug on Tesseractjs and what can I do to avoid the same situation.

Desktop (please complete the following information):

  • Browser chrome
  • Version 78.0.3904.97

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (1 by maintainers)

Most upvoted comments

I still get this issue with iOS 15 safari browser. Tesseract can’t resolve OCR image with same error log

make sure http-server port is 8000

Not sure about what happened as your description is pretty vague.

But you can try this offline example to see if the problem still exists: https://github.com/jeromewu/tesseract.js-offline