Bug 30892 - Infinite loop in TextOutputDev
Summary: Infinite loop in TextOutputDev
Status: RESOLVED MOVED
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
: 42830 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-10-15 05:17 UTC by Adrian Johnson
Modified: 2018-08-21 11:08 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
The PDF file (13.57 KB, application/pdf)
2010-10-15 05:23 UTC, Adrian Johnson
Details

Description Adrian Johnson 2010-10-15 05:17:34 UTC
The attached PDF appears to have an infinite loop in TextOutputDev when using the cairo backend. A git bisect shows the commit that introduced this bug to be:


commit 5b0f2355d55a5104820fd0bf16b4e76b25959de4
Author: Carlos Garcia Campos <carlosgc@gnome.org>
Date:   Sun Dec 14 11:49:00 2008 +0100

    [glib] Use TextPage instead of TextOutputDev when cairo is enabled
Comment 1 Adrian Johnson 2010-10-15 05:23:13 UTC
Created attachment 39466 [details]
The PDF file
Comment 2 Albert Astals Cid 2010-10-15 14:40:24 UTC
Not a cairo problem, pdftotext exhibits the same behaviour (Adobe Reader does the same btw), the file seems to have a huge amount of whitespace that just confuses the hell out of the code that "sorts" teh characters
Comment 3 Albert Astals Cid 2011-03-30 11:21:26 UTC
It's not an infinite loop either, it's just that the code is bad and takes forever to run (i.e. it should eventually finish)
Comment 4 Brad Hards 2011-03-30 13:43:46 UTC
I guess "forever" is a figure of speech in this context: It will take a long time, but will complete.
Comment 5 Albert Astals Cid 2011-03-30 13:59:05 UTC
Yeah Brad is right :D, sorry about saying it is not infinite and then saying it runs forever :D
Comment 6 narinder 2011-11-11 11:30:25 UTC
*** Bug 42830 has been marked as a duplicate of this bug. ***
Comment 7 GitLab Migration User 2018-08-21 11:08:52 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/533.


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.