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/609 below:

Tesseract fails when running in Firefox incognito browser · Issue #609 · naptha/tesseract.js · GitHub

Describe the bug
When running Firefox in an incognito browser window/tab, Tesseract image scans do not function. This does not seem to impact Chromium based browsers.

To Reproduce
Steps to reproduce the behavior:

  1. In a Firefox incognito/private browser window visit https://tesseract.projectnaptha.com/
  2. Notice the demo at the bottom hangs
  3. This error is thrown in the console:
    Uncaught Error: InvalidStateError: A mutation operation was attempted on a database that did not allow mutations.
    exports createWorker.js:139
    onmessage onMessage.js:3
    exports onMessage.js:2
    exports createWorker.js:122
    demo.js:28
    createWorker.js:139:14

Expected behavior
No error should be shown and the OCR process should complete.

Screenshots

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context
A failure occurs in my own project as well, both in online mode and offline mode, but I do not see the same error message. In my project, online mode fails during Tesseract.recognize() and neither returns nor throws an exception (the worker is created internally by Tesseract.recognize()). Offline mode fails during createWorker() and throws a "type error" exception indicating "r is null."

In my project, both online and offline methods work properly outside incognito mode. The offline version functions properly when disconnected from the internet as well (as long as the browser is not in incognito mode). The problem only seems to be present in incognito mode regardless of whether the browser has an active connection to the internet.

I have noticed that in a Firefox incognito browser window, the demo on the Tesseract.js homepage also fails.


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