Andrewthe13th / Inventory_Kamera

Scans Genshin Impact characters, artifacts, and weapons from the game window into a JSON file.
MIT License
694 stars 116 forks source link

[Bug] Failed to Initialize Tesseract Engine #366

Open spicytiff opened 2 years ago

spicytiff commented 2 years ago

Current Behavior

I have one successful scan of everything and am trying to do an updated scan. However, when trying to start the scan, I get this error: `Tesseract.TesseractException: Failed to initialise tesseract engine.. See https://github.com/charlesw/tesseract/wiki/Error-1 for details.

at Tesseract.TesseractEngine.Initialise(String datapath, String language, EngineMode engineMode, IEnumerable1 configFiles, IDictionary2 initialValues, Boolean setOnlyNonDebugVariables)

at Tesseract.TesseractEngine..ctor(String datapath, String language, EngineMode engineMode, IEnumerable1 configFiles, IDictionary2 initialOptions, Boolean setOnlyNonDebugVariables)

at InventoryKamera.Scraper.InitEngines()

at InventoryKamera.Scraper..cctor()

`

Expected Behavior

The scanner continues to scan

Reproducing a Behavior

image

Attempt a secondary scan in same or different folder where the first scan was exported to? No other changes were made to Inventory Kamera settings.

Device OS

Windows 11

Genshin Impact Version

3.0

Inventory Kamera Version

1.2.8

Screen resolution, screen mode, and UI scale

1920x1200 Windowed

Additional notes and remarks

I checked the github link for Error-1 but unfortunately I do not understand what the issue is and how to fix it.

Evidence

Tesseract.TesseractException: Failed to initialise tesseract engine.. See https://github.com/charlesw/tesseract/wiki/Error-1 for details.

   at Tesseract.TesseractEngine.Initialise(String datapath, String language, EngineMode engineMode, IEnumerable`1 configFiles, IDictionary`2 initialValues, Boolean setOnlyNonDebugVariables)

   at Tesseract.TesseractEngine..ctor(String datapath, String language, EngineMode engineMode, IEnumerable`1 configFiles, IDictionary`2 initialOptions, Boolean setOnlyNonDebugVariables)

   at InventoryKamera.Scraper.InitEngines()

   at InventoryKamera.Scraper..cctor()

Preflight Checklist

Ceredril commented 2 years ago

I am facing the same problem, but it only started after updating the data set to 3.0

Ceredril commented 2 years ago

Apparently this issue persists with V1.3, however it only appears after opening the Scanner the SECOND time after installing it.

temporary fix: deleting the scanner folder and extracting it again from the zip file every time the application is to be opened. This suggests some form of file corruption happening.

marviny2 commented 2 years ago

im experiencing the same issue on V1.3 but it happens every time i open it