A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/naptha/tesseract.js/issues/666 below:

Fix asynchronous caching bug · Issue #666 · naptha/tesseract.js · GitHub

There are currently many issues that appear to stem from 2 problems in how caching works at present.

  1. We assume that workers are created synchronously, and violating this assumption creates invalid cache files
  2. We assume that all cache files are valid

The former appears to be the most common cause of invalid caching data (as this is non-obvious to users). However, cache may be invalid for other reasons. For example, until the last version cache was often invalid because langData responses were cached (see #585). Therefore, it is possible that not all bugs listed below were directly caused by creating workers asynchronously, but hopefully solving the async issue will solve most of it.

Related issues:

  1. Worker loading language traineddata progress 0 #414
  2. Stuck on "loading language traineddata" #439
  3. Tesseract couldn't load any languages #462
  4. Error: Error: UNKNOWN: unknown error, open '\eng.traineddata' CRASH #536
  5. Cannot use cachePath with Scheduler #576
  6. Querying from multiple processes #579
  7. Node.js: Loading corrupted language trained data does not throw an error #602

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4