simple-scan allocates memory for one page (possibly a lot) on startup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Simple Scan |
Fix Released
|
Low
|
Unassigned |
Bug Description
1. Begin a scan at a high resolution. Observe memory usage.
2. Kill simple-scan (using "killall simple-scan" from a terminal)
3. Restart simple-scan. Observe memory usage.
4. Lower resolution (Documents → Preferences) and begin a new scan. Observe memory usage.
I ran into this problem after (ambitiously) trying to scan a full A4 page at 1200 dpi on a machine with only 1 GB RAM (bad idea). Once memory usage hit ~97%, I gave up and killed the application.
However, everytime I would restart it afterwards, it would *immediately* grab almost as much memory. I tried clearing the contents of ~/.cache/
The memory usage didn't drop until I performed steps 3 and 4 as explained above.
$ apt-cache policy simple-scan
simple-scan:
Installed: 1.0.3-0ubuntu1
Candidate: 1.0.3-0ubuntu1
Version table:
*** 1.0.3-0ubuntu1 0
500 http://
100 /var/lib/
1.0.2-0ubuntu1 0
500 http://
summary: |
- Memory usage high after a kill/restart + simple-scan allocates memory for one page (possibly a lot) on startup |
This is due to the blank page that is created when simple-scan starts - it uses the dimensions of the last scanned page. Simple Scan should be smarter and not allocate any memory for this page.
(the last page dimensions are stored in gconf)