document reader stays at loading while reading pdf pages

Bug #406594 reported by Ian Lowrie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Poppler
Fix Released
Medium
poppler (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: evince

Document Viewer 2.26.1
under Ubuntu 9.04/Linux 2.6.28-14-generic/GNOME 2.26.1

1. Open "Failing pdf example" (attached) using evince. First page appears with 'next'.
2a. Press 'next' - "LOADING" appears, but nothing else. repeating 'next' -> same result.
OR
2b. Press 'next' - "LOADING" appears, but nothing else. press 'previous' -> first page appears OK
OR
2c. Use pull down magnification adjustment can result in hanging also. But using Control+ or Control- seem OK (though the result looks rather ragged!)

None of 2a,b, or c were expected behaviours.

Other pdfs open OK

Same example doc opens ok in Adobe Reader 9 version 9.1.2 for linux

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
ExecutablePath: /usr/bin/evince
NonfreeKernelModules: nvidia
Package: evince 2.26.1-0ubuntu1
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: evince
Uname: Linux 2.6.28-14-generic i686

Revision history for this message
Ian Lowrie (nzukca-deactivatedaccount) wrote : document reader hangs reading pdf pages

Binary package hint: evince

Document Viewer 2.26.1
under Ubuntu 9.04/Linux 2.6.28-14-generic/GNOME 2.26.1

1. Open "Failing pdf example" (attached) using evince. First page appears with 'next'.
2a. Press 'next' - "LOADING" appears, but nothing else. repeating 'next' -> same result.
OR
2b. Press 'next' - "LOADING" appears, but nothing else. press 'previous' -> first page appears OK
OR
2c. Use pull down magnification adjustment can result in hanging also. But using Control+ or Control- seem OK (though the result looks rather ragged!)

None of 2a,b, or c were expected behaviours.

Other pdfs open OK

Same example doc opens ok in Adobe Reader 9 version 9.1.2 for linux

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
ExecutablePath: /usr/bin/evince
NonfreeKernelModules: nvidia
Package: evince 2.26.1-0ubuntu1
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: evince
Uname: Linux 2.6.28-14-generic i686

Revision history for this message
Ian Lowrie (nzukca-deactivatedaccount) wrote :
Revision history for this message
Pedro Villavicencio (pedro) wrote :

errors on the command line are: Error (21192): Invalid symbol number in JBIG2 text region ; seems to be a poppler issue, reassigning.

affects: evince (Ubuntu) → poppler (Ubuntu)
summary: - document reader hangs reading pdf pages
+ document reader stays at loading while reading pdf pages
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks for your bug report. This bug has been reported to the developers of the software. You can track it and make comments here: https://bugs.freedesktop.org/show_bug.cgi?id=23025

Changed in poppler (Ubuntu):
assignee: nobody → Ubuntu Desktop Bugs (desktop-bugs)
importance: Undecided → Low
status: New → Triaged
Changed in poppler:
status: Unknown → Confirmed
Revision history for this message
In , Albert Astals Cid (aacid) wrote :

The pdf has a stream we fail to decode properly and enter almost an infinite loop.

Revision history for this message
In , David Benjamin (davidben) wrote :

Created an attachment (id=29194)
Correctly set the value of symCodeLen

JBIG2Stream had an off-by-one error. It was computing symCodeLen incorrectly. (1+floor vs ceil). This patch should fix it.

Did I mention this mistake was hard to find? I had the spec in one hand, JBIG2Stream.cc in the other...

Revision history for this message
In , David Benjamin (davidben) wrote :

Actually, should symCodeLen = 0 if they sum to 1? The spec doesn't say anything about it, but I suspect decoder->readBits(0) is going to be confused. Are they supposed to add up to always add to more? poppler should probably cleanly reject the file in that case.

Someone who actually knows how JBIG2 works?

Revision history for this message
In , Albert Astals Cid (aacid) wrote :

Well, you patch fixes 3 files and regresses none here so i'll take it as good for the moment. I've commited it so i'm closing the bug

Changed in poppler:
status: Confirmed → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :

the bug has been fixed upstream now

Changed in poppler (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Sebastien Bacher (seb128) wrote :

the bug is fixed in karmic and lucid

Changed in poppler (Ubuntu):
status: Fix Committed → Fix Released
Changed in poppler:
importance: Unknown → Medium
Changed in poppler:
importance: Medium → Unknown
Changed in poppler:
importance: Unknown → Medium
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.