[Bug 525441] Re: Reduce memory usage
If simple-scan is unable to load the cached data it should give the user the option to abandon the cached auto-save data on successive attempts. Currently it just tries and crashes repeatedly due to lack of memory. At a minimum: Console output indicating an attempt to load the cache and its location would've been helpful in solving the issue. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/525441 Title: Reduce memory usage To manage notifications about this bug go to: https://bugs.launchpad.net/simple-scan/+bug/525441/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 525441] Re: Reduce memory usage
This issue is still not fixed on 3.14.0-ubuntu1. When scanning I see the same behaviour as ametedinov describes in #8 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/525441 Title: Reduce memory usage To manage notifications about this bug go to: https://bugs.launchpad.net/simple-scan/+bug/525441/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 525441] Re: Reduce memory usage
I monitored my memory usage during a scanning job (60+ pages) and I observed the following: On the machine where the scan was performed I have 1GB of RAM. Each new scanned page (in color at 300ppi) increased my RAM usage by ~30MB. This process continued until my memory usage reached ~850MB. After this point, each new scanned page added caused my SWAP usage to increase by ~30MB. >From the aforementioned explanation the following beneficial >conclusion/workaround can be stated: If worried that you will run out of free memory make your swap partition as large as necessary. When the used memory reaches 85%, the raw scanned images are kept on the swap partition. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/525441 Title: Reduce memory usage To manage notifications about this bug go to: https://bugs.launchpad.net/simple-scan/+bug/525441/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 525441] Re: Reduce memory usage
** Changed in: simple-scan (Ubuntu) Status: Fix Released => Confirmed ** Changed in: simple-scan Status: Fix Released => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/525441 Title: Reduce memory usage To manage notifications about this bug go to: https://bugs.launchpad.net/simple-scan/+bug/525441/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 525441] Re: Reduce memory usage
Then i need to reopen, as i already confirmed it with a later version then 2.31.90.1. Back then it was relative easy to crash Simple Scan but just keep on scanning. Unfortunaly i am not able to reset the status to confirmed or triaged , could someone help out? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/525441 Title: Reduce memory usage To manage notifications about this bug go to: https://bugs.launchpad.net/simple-scan/+bug/525441/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 525441] Re: Reduce memory usage
In comment #1 Robert said he fixed it in 2.31.90.1 -- Closing as the memory usage in 2.31.90.1 is much reduced. Please re-open if it appears unreasonable! -- I changed the status for Ubuntu when that version hit the archives. Probably the situation just improved somewhat, but the issue was not fixed thoroughly. Feel free to reopen! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/525441 Title: Reduce memory usage To manage notifications about this bug go to: https://bugs.launchpad.net/simple-scan/+bug/525441/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 525441] Re: Reduce memory usage
@Micheal: just before i go trough the rather long testing procedure (scanning many pages with a slow scanner takes rather hours than minutes) i want to ask you: What change did fix this bug and are you really certain it is fixed at least by the version currently in precise? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/525441 Title: Reduce memory usage To manage notifications about this bug go to: https://bugs.launchpad.net/simple-scan/+bug/525441/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 525441] Re: Reduce memory usage
Actually, I don't think this bug is fixed at all. When scanning text documents (at 300 dpi), around 15 pages consumes about 500 to 900 MB of memory. If I continue scanning, eventually the program will run out of memory, and crash, therefore all the work will be lost. Furthermore, sometimes the crash happens while saving, which is the point when the memory usage peaks, getting an increase of some hundred MBs. So, saving frequently does not eases the problem. Finally, neither deleting pages, nor clicking on the button "Start a new document" free any memory. That memory is also not reused. The only way of being able to scan more pages, is closing the program and opening a new instance. Therefore, this is just a huge memory leak. My workaround for the time being is just to scan documents in batches of 15 pages, saving into different pdf files, closing the program and opening it again, and then merge the different files with pdftk: pdftk inputfile1.pdf inputfile2.pdf inputfilen.pdf cat ouput outputfile.pdf -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/525441 Title: Reduce memory usage -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 525441] Re: Reduce memory usage
** Changed in: simple-scan (Ubuntu) Status: New => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/525441 Title: Reduce memory usage -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 525441] Re: Reduce memory usage
oops somehow i am not able to reopen it for simple-scan as a project. -- Reduce memory usage https://bugs.launchpad.net/bugs/525441 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 525441] Re: Reduce memory usage
Memory usage is still a concern. On 2.32 the app crashed on scanning about 80 pages due to too low memory: GLib-ERROR **: /build/buildd/glib2.0-2.24.1/glib/gmem.c:137: failed to allocate 26779794 bytes aborting... Aborted I did it on a machine with 1 GB RAM, before starting Simple Scan memory usage was 290 MB and did not start something else during scanning. After revaluating it on a machine with 4 GB i noticed that the saving process to PDF will always take another bunch of MB on the RAM, but it won't free it after finishing! This means that every saving will increase that amount of RAM usage and you can't get rid of without restarting Simple Scan. How comes that? The main problem with high memory usage is that users will loose all there scans when no free RAM is left (as my case shows it's not too hard to reach that point). There should be some sort of checking on the amount of free RAM and when it get's too low users should get a warning, so that they can save there scans before crashing. Of course this means that there need to be enough RAM for the saving process. ** Also affects: simple-scan (Ubuntu) Importance: Undecided Status: New -- Reduce memory usage https://bugs.launchpad.net/bugs/525441 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs