Bug 1147619

Summary: evince search leaks memory
Product: [Fedora] Fedora Reporter: Jason Merrill <jason>
Component: evinceAssignee: Marek Kašík <mkasik>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 20CC: mkasik
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: evince-3.10.3-2.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-11-25 15:29:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jason Merrill 2014-09-29 15:19:16 UTC
Description of problem:

Doing a search in evince increases its memory footprint significantly.  Performing another search does not release the memory for the previous search, so evince just keeps growing and growing until closed.

Version-Release number of selected component (if applicable):

evince-3.10.3-1.fc20.x86_64

How reproducible:

Always

Steps to Reproduce:
1. Open some large PDF (I noticed this looking at the C++ standard)
2. ps u | grep evince
3. In evince, search for a word that occurs frequently
4. ps u | grep evince
5. Notice that evince is using much more memory
6. In evince, search for a word that never occcurs
7. ps u | grep evince
8. Notice that evince is using slightly more memory
9. In evince, search for the first word again
10. ps u | grep evince

Actual results:

The evince process grows with each search.

Expected results:

The process should not grow after the first search, since the subsequent searches are no larger.

Additional info:

Comment 1 Marek Kašík 2014-11-19 14:41:35 UTC
Hi,

I've backported a patch which fixes the leak. Thank you for reporting this.

Regards

Marek

Comment 2 Fedora Update System 2014-11-19 14:42:35 UTC
evince-3.10.3-2.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/evince-3.10.3-2.fc20

Comment 3 Fedora Update System 2014-11-20 23:00:52 UTC
Package evince-3.10.3-2.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing evince-3.10.3-2.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-15454/evince-3.10.3-2.fc20
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2014-11-25 15:29:34 UTC
evince-3.10.3-2.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Jason Merrill 2014-11-26 02:43:02 UTC
Much better, thanks!