Memory leak when PDF objects are dragged around.

Bug #481459 reported by tehf0x
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Evince
Unknown
Critical
evince (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Binary package hint: evince

I have a PDF that seems to be only scanned text (can't select the text). When I try and select it anyways (look, I'm tired :-D), it seems to drag something, then evince hangs for a bit. Memory usage by evince ramps up (quickly gets up to 1gb, in less than 30 seconds), and I need to kill evince.

I can provide the specific PDF where this is happening in case there is trouble reproducing.

i'm using Karmic.

Thanks!

Gabe

Revision history for this message
jtniehof (jtniehof) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Unfortunately, we can't fix it without more information.

Please run the following command which will attach necessary information:
apport-collect 481459

You may need to install the python-launchpadlib package from the universe repository with 'sudo apt-get install python-launchpadlib'. Additionally, when prompted to give apport-collect permissions for Launchpad you will need to give it at least the ability to "Change Non-Private" data as it will be adding information to your bug report.

Please also do attach the specific PDF here ("Add an attachment" below the "Add comment" window); that would be very helpful.
Also take a look at this similar bug: https://bugs.launchpad.net/evince/+bug/379403
It is supposed to be fixed in 9.10, but sounds very similar. It would be useful to know if the test cases on that bug cause the same problems as your test case.

Changed in evince (Ubuntu):
status: New → Incomplete
Revision history for this message
tehf0x (gabe-squirrelsoup) wrote : apport-collect data

Architecture: amd64
DistroRelease: Ubuntu 9.10
Package: evince 2.28.1-0ubuntu1.1
PackageArchitecture: amd64
ProcCmdline: root=UUID=170f8d9d-f313-4ed8-b968-ed56b7eec683 ro quiet splash
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_US.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
Uname: Linux 2.6.31-14-generic x86_64
UserGroups: adm admin audio cdrom dialout lpadmin plugdev sambashare

Revision history for this message
tehf0x (gabe-squirrelsoup) wrote : Dependencies.txt
Revision history for this message
tehf0x (gabe-squirrelsoup) wrote : KernLog.txt
Revision history for this message
tehf0x (gabe-squirrelsoup) wrote : RelatedPackageVersions.txt
Revision history for this message
tehf0x (gabe-squirrelsoup) wrote : XsessionErrors.txt
Changed in evince (Ubuntu):
status: Incomplete → New
tags: added: apport-collected
Revision history for this message
tehf0x (gabe-squirrelsoup) wrote :

This is the pdf where when I inadvertently try to select text (which isn't possible), I get a significant memory leak from evince.

Revision history for this message
tehf0x (gabe-squirrelsoup) wrote :

I recall the other bug, and noticed that it seems to have gotten fixed in Karmic (thanks btw, that bug got me a lot). This doesn't actually open a new window, and I'm not even sure the image actually has the time to get dragged before compiz greys the window out. One thing is sure is that it consistently triggers a memory leak if I left-click on the document and then move the mouse.

Not sure what you meant by the 'test cases' for the other bug.

Thanks for looking into this!

jtniehof (jtniehof)
Changed in evince (Ubuntu):
status: New → Confirmed
Revision history for this message
jtniehof (jtniehof) wrote :

Wow! I can confirm that, with that PDF, a quick drag will make evince nonresponsive, peg the CPU, and start ramping up the memory usage. evince 2.28.1-0ubuntu1.1 from karmic-updates. I have visual effects disabled, so this is not simply a compiz issue.

This is also present on sid, version 2.28.1-1. The upstream git repository has a commit (f011461f, 6 Nov) labelled "fix memory leak," but I compiled from HEAD and the PDF tehf0x linked still causes the memory leak. I will try to file upstream.

Revision history for this message
tehf0x (gabe-squirrelsoup) wrote :

Great, I'll keep an eye upstream as well.

Changed in evince (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Triaged
Changed in evince:
importance: Unknown → Critical
status: Unknown → Confirmed
Revision history for this message
Daniil Bubnov (demoth-cadaver) wrote :

Heh, i opened your attachment and started playing with it, i was stupid enough to make evince eat 2.5 gigs of memory, and then system became frozen for a while.
Linux hphdx 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

Changed in evince:
status: Confirmed → Unknown
Revision history for this message
penalvch (penalvch) wrote :

This is not reproducible in Trusty.

Changed in evince (Ubuntu):
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.