Bug 54945

Summary: High consume of resources when keeping a text selected in a PDF
Product: poppler Reporter: Germán Poo-Caamaño <gpoo+bfdo>
Component: cairo backendAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: PDF test case

Description Germán Poo-Caamaño 2012-09-14 22:05:36 UTC
Created attachment 67188 [details]
PDF test case

This bug was reported in GNOME Bugzilla, it seems it was also reported in Red Hat's Bugzilla.

The PDF attached has Type3 fonts.  When the text is selected (and it is kept selected), the consumption of memory increases notoriously.  It depends on scale of the render, though.

For instance, using poppler-glib-demo (master b72c02d1a), with scale 2.0, selecting randomly text for a couple of times and leaving the selection there, it can consume 1GB of memory quickly.

It could be related to https://bugs.freedesktop.org/show_bug.cgi?id=54939.  However, how fast increase the use of memory depends of the file.  So, I am not sure.

The GNOME Bug is https://bugzilla.gnome.org/show_bug.cgi?id=581657#c3
(Notice that there are 2 issues discussed in that bug).
Comment 1 Germán Poo-Caamaño 2013-03-22 22:41:21 UTC
The patch https://bugs.freedesktop.org/show_bug.cgi?id=61042 also solves the issue on this bug.  So, I marking this a duplicated of Bug 61042.

*** This bug has been marked as a duplicate of bug 61042 ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.