sharkboyto / nao

NVDA advanced OCR
GNU General Public License v3.0
20 stars 9 forks source link

Unexpected behaviours with invalid files #22

Closed CyrilleB79 closed 2 years ago

CyrilleB79 commented 2 years ago

Bugfixes or improvements are needed when running Nao on invalid files. For example, create an empty .txt file and change its extension to various supported file types. Then run Nao.

Here ar the results:

.pdf

The recognizing in progress dialog is briefly opened. But no error message is heard. Looking at the log, it seems that an error message is issued by Nao, but it is interrupted by Explorer taking focus again when the regognition progress dialog closes. Thus the error message cannot be heard.

.jpg

An error window opens but the beep indicating recognition progress continues to be heard, when this window shows up and even when the window is closed. NVDA restart is needed to stop it.

.tiff

An error window shows up. However, when you press OK, the recognition progress dialog that has remained behind takes the focus. It never closes unless you clic "Cancel".

Others

Not tested. But I think that invalid files of any type should be tested. Invalid viles can be created in case of download issue for example.

Thanks.