Status: New
Owner: ----
New issue 1498 by
gpapado...@gmail.com: When creating searchable pdf, file
contents are not flushed and file handle is not released
https://code.google.com/p/tesseract-ocr/issues/detail?id=1498
What steps will reproduce the problem?
1. Use tesseract 3.04
2. In file api/tesseractmain.cpp add a sleep before the program exits. For
example:
....
fprintf(stdout, "DONE\n");
sleep(60);
fprintf(stdout, "EXITING\n");
PERF_COUNT_END
return 0; // Normal exit
}
3. Run tesseract to create a searchable pdf. On a different console,
monitor the result. For example:
> tail -f result.pdf
What is the expected output? What do you see instead?
After DONE is printed, some of the contents of the searchable pdf are
written on file result.pdf. The expected result is that the whole pdf
content up to the last EOF is written to the file and the file is properly
closed. However this only happens when after EXIT is printed, when the
program finally exits.
Please use labels and text to provide additional information.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings