naptha / tesseract.js

Pure Javascript OCR for more than 100 Languages 📖🎉🖥
http://tesseract.projectnaptha.com/
Apache License 2.0
34.91k stars 2.21k forks source link

Uncaught Error: RuntimeError: abort(undefined). Build with -s ASSERTIONS=1 for more info. #849

Closed vodinhht20 closed 11 months ago

vodinhht20 commented 11 months ago

Tesseract.js version (version number for npm/GitHub release, or specific commit for repo)

Describe the bug Uncaught Error: RuntimeError: abort(undefined). Build with -s ASSERTIONS=1 for more info.

To Reproduce createWorker.js:173 Uncaught Error: RuntimeError: abort(undefined). Build with -s ASSERTIONS=1 for more info. at createWorker.js:173:1 at worker.onmessage (onMessage.js:3:1)

const worker = await createWorker({
      langPath: '...',
      logger: m => console.log(m),
  });
  await worker.load();
  console.log("language", language);
  await worker.loadLanguage(language);
  await worker.initialize(language);
  console.log("whileList", whileList);
  await worker.setParameters({
      tessedit_char_whitelist: whileList
  });
  const { data: { text } } = await worker.recognize(dataImag);
Balearica commented 11 months ago

Please fill out the entire bug report issue template. Notably, we have fields for both the Tesseract.js version number and the device/browser version, and you provided neither.

Balearica commented 11 months ago

Closing. We can reopen if the issue is edited to provide the necessary info.