From Evince: https://bugzilla.gnome.org/show_bug.cgi?id=706567 A summary of the comments: ---------------- When viewing the attached PDF and scrolling to the end, evince shows the following warnings on the console (but continues to function properly without apparent rendering issues): {{{ *** BUG *** In pixman_region32_init_rect: Invalid rectangle passed Set a breakpoint on '_pixman_log_error' to debug *** BUG *** In pixman_region32_init_rect: Invalid rectangle passed Set a breakpoint on '_pixman_log_error' to debug }}} A PDF test case (8.8MB) is in http://media.zweitausendeins.de/download/?pdf/merkheft/271%2FMH271_interaktiv.pdf ----------------- The ouput of gdb shows a corrupted rectangle: $2 = {extents = {x1 = 501, y1 = 479, x2 = 483, y2 = 504}, data = 0x7bae00} (gdb) print *region->data $3 = {size = 8105376, numRects = 8106176} (gdb) print region->data $4 = (pixman_region32_data_t *) 0x7bae00 (gdb) print *(region->data) $5 = {size = 8105376, numRects = 8106176} ----------------- Finally Carlos said: It's a poppler bug actually that is giving us incorrect rectangles as selection region. That document is a challenge for poppler, it contains vertical text and even inclined text. Poppler doesn't support it, it assumes that all characters in a line are at the same yMin - yMax range. So, there are several approaches to solve/workaround the issue. We can check rectangles are valid in evince and ignore the invalid ones, maybe showing a warning, but I think it would be better to do it in poppler, either poppler glib or directly in TextOutputDev.
I also noticed this error with a different PDF, evince prints the error 6 times: https://bettercrypto.org/static/applied-crypto-hardening.pdf
Hi, I've been hit by this problem recently. I've prepared patch and attached it here: https://bugs.freedesktop.org/show_bug.cgi?id=16619. Marek
Created attachment 96232 [details] small PDF sample that triggers the message
Also have the same issue, I splitted the page on a PDF that generate an invalid rectangle in evince to attach a reproducer. (seems the PDF is simpler, no rotated text, but schemas are involved) Data from poppler are: (In evince) Breakpoint 2, create_region_from_poppler_region (region=region@entry=0x78e840, scale=scale@entry=1) at ev-poppler.cc:2091 (gdb) p rectangle $5 = (PopplerRectangle *) 0x78ea80 (gdb) p *rectangle $6 = {x1 = 341, y1 = 236, x2 = 339, y2 = 244} And this rectangle generate a negative width and led to Invalid rectangle passed. Thanks, Vincent.
Created attachment 107904 [details] Other reproducer Attached file mentionned in comment upward.
It looks like this bug is fixed with Poppler 0.34.0 and Evince 3.18.0. Another reproducer was: http://ctan.mirrorcatalogs.com/macros/latex/contrib/leaflet/leaflet-manual.pdf
Confirming the statement from Sébastien, the bug seems to be already fixed in poppler-0.30. Since I hadn’t reported the bug originally and I’m not a developer, I’m not closing the bug. But I think it would be a good idea to do that.
Created attachment 124017 [details] triggers for 0.42 version I have these pachages installed on ArchLinux: extra/poppler 0.42.0-1 [installed] extra/poppler-glib 0.42.0-1 [installed] extra/poppler-qt5 0.42.0-1 [installed] extra/evince 3.20.0-2 (gnome) [installed] And the attached file, page 25, triggers this bug.
I still can reproduce this with poppler 0.44 in current Debian Testing. Reproduced with attachment 96232 [details] and attachment 107904 [details]. Used lastest version of Atril (fork of Evince).
Created attachment 127420 [details] yet another reproducer for this bug Uploaded one more reproducer PDF for this. Taken from https://bugzilla.redhat.com/1199329.
The error message doesn’t appear with evince-3.26 and poppler-0.57 when opening the three attachments or the url. I guess this report may be closed (after confirmation).
I can still reproduce it with poppler 0.62 in Ubuntu 18.04. 3 of 4 attachments here trigger it.
(In reply to Pablo Rodríguez from comment #11) > The error message doesn’t appear with evince-3.26 and poppler-0.57 when > opening the three attachments or the url. > > I guess this report may be closed (after confirmation). Hi, do you use upstream versions of poppler and evince? (we have the patch from https://bugs.freedesktop.org/show_bug.cgi?id=16619#c1 in Fedora)
(In reply to Marek Kasik from comment #13) > (In reply to Pablo Rodríguez from comment #11) > > The error message doesn’t appear with evince-3.26 and poppler-0.57 when > > opening the three attachments or the url. > > > > I guess this report may be closed (after confirmation). > > Hi, do you use upstream versions of poppler and evince? (we have the patch > from https://bugs.freedesktop.org/show_bug.cgi?id=16619#c1 in Fedora) I’m using the versions shipped with Fedora. This seems to explain everything.
-- 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/164.
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.