kel-z / HSR-Scanner

Scanner for exporting light cone, relic, and character data from Honkai: Star Rail to JSON format.
GNU General Public License v3.0
177 stars 13 forks source link

[crash] 0.5.1b Hard error in OCR phase #45

Closed supernova-ws closed 6 months ago

supernova-ws commented 10 months ago

All HSRS version until now works w/o any errors. In 0.5.1b after several usages new error arises:

image

[19:25:26] > Starting scan... [19:25:46] > Finished scanning light cones [19:26:08] > Finished scanning relics [19:26:50] > Finished scanning characters [19:26:50] > Starting OCR process. Please wait... [19:27:16] > Scan aborted with error: (3221225794, '')

I restarted HSRS - same happens again but even worse: whole PC becomes unresponsible and even Explorer dies and Chrome stops Youtube clip on background!

Later I will try to restart PC and report.

supernova-ws commented 10 months ago

More info - all processes that still runs report "No memory"... Erhm... I have 24Gb memory uncommitted (aka free) when I start HSRS.

kel-z commented 10 months ago

Interesting, this looks like one of those errors that should go away when you restart your PC (especially if it was working previously). I wonder if the executable got corrupted. Can you try redownloading the latest release?

supernova-ws commented 10 months ago

Redownloaded EXE file and compared it with current one - no binary diff.

supernova-ws commented 10 months ago

Reboot helped but I still a bit worried.

kel-z commented 10 months ago

Yeah, so rebooting your system clears your memory (including any "stuck" programs and data that were consuming memory, potentially due to memory leaks or inefficient memory usage, and gives you a clean slate). Tesseract (the "app" that fails to start in your error) is the tool used for OCR.

You could try monitoring the Task Manager to see if it is because of memory. (Open Task Manager and monitor the Performance tab to see how much memory is being used when running Tesseract to see if it is because of that, or if it's because of some other external thing on your system.)