Duke-Jones / RegulatedNoise

32 stars 11 forks source link

Crash when starting OCR #28

Closed REALDRAGNET closed 9 years ago

REALDRAGNET commented 9 years ago

OCR is refusing to work on my pc, as soon OCR starts working the app crashes: http://s1.bild.me/bilder/030315/6933793RN_crash.png

sorry .dmp file is too big to upload for me (250 MB)

Thank you for your work!

Duke-Jones commented 9 years ago

can you send me this screenshot and your RegulatedNoiseSettings.xml, please. And if there' a error-log in the log-subdir it's very interesting for me, too

PV-Jeltz commented 9 years ago

Hi Duke great work, but same problem here... since your v_014, I guess. dump file on dropbox: https://dl.dropboxusercontent.com/u/52971760/20150415_PV-Jeltz_RegulatedNoiseDump.rar

cheers, Jeltz

Duke-Jones commented 9 years ago

while starting the ocr process it also trys to start

"./Brainerous/nn_training.exe"

as a sub thread. The error is "File not found".

Please, can you check if the nn_traning.exe is there and also the capitalisation is correct ? Do you perhaps have a security software which prevents to start the sub process with "nn_trainig.exe" ?

Duke-Jones commented 9 years ago

Another possible reason:

Q: Crash when grabbing a screenshot? A: OCR functions REQUIRE the Visual Studio 2012 C++ Redistributables for BOTH x86 and x64, from here => https://www.microsoft.com/en-us/download/details.aspx?id=30679

Does it help ?

REALDRAGNET commented 9 years ago

Only security software I have is MSE, disabled realtime protection did not help

2012 C++ Redist. packages where both already installed on my system (asked me to either uninstall or repair when starting setup)

nn_training.exe is there (in 'Brainerous' folder) I have extracted the archive to D:\Games\EDLaunch\RegulatedNoise\

No error log in the log dir, only common logs that don't contain any error reports

Here is my screenshot: http://workupload.com/file/ue7dofWY

Here the configuration file: http://workupload.com/file/NS8XZwG4

Duke-Jones commented 9 years ago

ok. please let's have another try:

Open a cmd window in the Brainerous directory and start "nn_training.exe". If there's a output so post it here, please.

If there nothing suspicious or no output, so try this, please: Download the old Regulated v1.84_0.09 from the Releases site. Extract the files and get the "nn_training.exe". Put this old "nn_training.exe" in your current RN\Brainerous directory and replace the current version of "nn_training.exe" (first make a copy). And then again: Open a cmd window in the Brainerous directory and start "nn_training.exe".

Output ?

Thanks, Duke

REALDRAGNET commented 9 years ago

Sorry, no output in both cases

PV-Jeltz commented 9 years ago

The "nn_training.exe" was quarantined by the quite ambicious 360 Internet Security... I hope no North Korean Hacker will be able to watch me playing ED now that I put the Brainerous Folder into the Whitelist.

Well, at least it works again now. THX a lot, Duke, keep up the fine work!

sutex commented 9 years ago

Pock Suppet issues with ocr

LINK TO THREAD https://forums.frontier.co.uk/showthread.php?t=137732&p=2111442&viewfull=1#post2111442

EDIT: Another user sent me a dump file. While starting the ocr process RN also trys to start

"./Brainerous/nn_training.exe"

as a sub process. The error while starting this subprocess is "File not found"

Please, can you check if the nn_traning.exe is there and also the capitalisation is correct ? If so, do you perhaps have a security software which prevents to start the sub process with "nn_trainig.exe" ?

Another dump-file would help to check if its the same causing

mine is nn_training.exe capitalization is correct. How do I get the dmp file to you?

thanks for everything. frank.

Pock Suppet dump FILE https://www.dropbox.com/s/ok40nyam9ar1jcc/RegulatedNoiseDump.dmp?dl=0

Duke-Jones commented 9 years ago

@PV-Jeltz: great, so we've found one reason for this issue.

@REALDRAGNET: please try this: remove the old (0.09) nn_training.exe again and reactivate the current version of nn_training.exe Then open a cmd window in the subdir again and type (without quotes) "nn_training.exe > info.txt"

post the content of "info.txt" and give me following additional infos:

REALDRAGNET commented 9 years ago

As I already said, there is no output at all, so info.txt is empty and has 0 bytes

I have checked with procmon and could not find any error's

Duke-Jones commented 9 years ago

I assume you havn't a try with "nn_training.exe > info.txt" ?

The standard output is redirected in the current versions. So it is normal if you can't see anything with simple call "nn_training.exe". But if you force the redirection with "nn_training.exe > info.txt" there must be someting in the textfile. I've tested it on my computer and it works. There must be eiher the normal communication output or a error message.

If you really had tried "nn_training.exe > info.txt" and there's really no output so I've no explanation what the problem on your computer is.

Last thing which could help is a dump file - perhaps you can upload it with dropbox ?

REALDRAGNET commented 9 years ago

nn_training

REALDRAGNET commented 9 years ago

http://workupload.com/file/DTDo2qKT

here's my dump file^^

Duke-Jones commented 9 years ago

ok, it's clearer now. You don't have problems with the recognition of digits (brainerous engine) but with the tesseract engine for the recognition of words (commodities). This explains why you don't have a output when you start brainerous (nn_training.exe) - this comes a step after starting tesseract.

The error message is "Failed to initialise tesseract engine.. See https://github.com/charlesw/tesseract/wiki/Error-1 for details."

If we have a look on the explanations:

I ignore point 3 to 5 - I don't think thats the problem (at the moment) Something found out ?

REALDRAGNET commented 9 years ago

Ooops - yes that might be the problem, I remeber testing OCR engines some time ago and I still have installed Tesseract in "C:\Program Files (x86)\Tesseract-OCR\"

I will delete that old unused stuff now and report back...

Edit: "echo %TESSDATA_PREFIX%" shows me the path but I have deleted the files there is no such path anymore, seems the variable is still left from that test, I try to delete the variable and look if it works

REALDRAGNET commented 9 years ago

Ok it was that stupid env variable that was left over in the registry from when I have played with that engine...

Works now!

Thank you very much!

Duke-Jones commented 9 years ago

Great ! :-)))