Stefan Weil

Results 1220 comments of Stefan Weil

@dmigowski, at which point of the output do you expect (currently missing) flushing? Completely unbuffered output is very inefficient and usually not a good solution.

I have several comments: 1. What will be the effect of throwing exceptions for C applications and other applications which depend on the C API? 2. This PR changes the...

@kba, @bertsky, please open issues for reproducable examples of failing assertions.

> 1. What will be the effect of throwing exceptions for C applications and other applications which depend on the C API? Meanwhile I did some tests on macOS and...

> Other productive use cases invole Tesseract as a library, where it is absolutely vital that the application can do its own error handling (instead of getting itself killed from...

There is also an exception if `/usr/share/tessdata` is a file. Just try `touch /usr/share/tessdata` and run the test again.

> I added global `catch(std::exception)` and `catch (...)` into tesseract main() not so long ago. I know. That's the reason why @bertsky's code now only prints an error message with...

@jobermayr, do you really get a crash? Or is it a C++ exception (which is not a crash)?

> @kba will provide an easily reproducable example of such failing assertions. (My current case is more special / harder to reconstruct.) > @kba, @bertsky, please open issues for reproducable...

> $ crow > terminate called after throwing an instance of 'std::filesystem::__cxx11::filesystem_error' > what(): filesystem error: recursive directory iterator cannot open directory: No such file or directory [/usr/share/tessdata/] > Abgebrochen...