4lex4 / scantailor-advanced

ScanTailor Advanced is the version that merges the features of the ScanTailor Featured and ScanTailor Enhanced versions, brings new ones and fixes.
GNU General Public License v3.0
1.18k stars 129 forks source link

out of memory #22

Closed rmzV closed 6 years ago

rmzV commented 6 years ago

tested on v1.0.13 and v1.0.14 x64 using dewarping option on aprox 1000 pages in batch mode.. always get this error (tested on different configs 8 and 16 gb of ram)

probably this error occurs on blank pages?

4lex4 commented 6 years ago

According to your description it seems there is a memory leak somewhere in the dewarping feature. Try to use the task manager to observe STA memory usage while processing in batch mode and write down here the result of the observation.

rmzV commented 6 years ago

well.. its not going out of memory according task manager,,( its just ended up with error or even bsod(

btw is it possible to add this option on descrew page: when we use split pages tool..we have a line with split book on two pages, is it possible on descrew tool.. place pages parralel to this line (of couse this line must be vertical)

so made deskrew not on text bassis, but according on this line placement? soz for my english(

4lex4 commented 6 years ago

I won't waste any time to fix it as the whole dewarping feature is planned to be fully reworked in the version 1.1.0. See #4 for more information.

PS: For now you could use the 'Experimental' version just for dewarping with all the other options disabled. Also there is an old program called "Book Restorer v4.2.1" that has pretty good dewarping engine (probably better than that of the official old ST).

ghost commented 5 years ago

I can confirm that this also happens on Linux with 1.0.16.

Good luck with version 1.1! Thanks for your job.

Where can I find the "experimental" version?

UPD: In my case, the dewarping was only leaking on specific images, namely, almost white and empty, with a small thin line ( a trace from a pen). After I manually removed the thin lines with GIMP, no more leaks.