Bug 679067

Summary: [abrt] pdfshuffler-0.5-2.fc14: pdf.py:651:read:ValueError: too many values to unpack
Product: [Fedora] Fedora Reporter: Lofton Alley <nobodie0>
Component: pdfshufflerAssignee: Fabian Affolter <mail>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 14CC: dlopes, galtgendo, larryoleary, mail
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:c52aa67c
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-04 09:33:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Lofton Alley 2011-02-21 13:40:49 UTC
abrt version: 1.1.17
architecture: x86_64
cmdline: /usr/bin/python /usr/bin/pdfshuffler
component: pdfshuffler
executable: /usr/bin/pdfshuffler
kernel: 2.6.35.11-83.fc14.x86_64
package: pdfshuffler-0.5-2.fc14
reason: pdf.py:651:read:ValueError: too many values to unpack
release: Fedora release 14 (Laughlin)
time: 1298295502
uid: 500

backtrace
-----
pdf.py:651:read:ValueError: too many values to unpack

Traceback (most recent call last):
  File "/usr/bin/pdfshuffler", line 411, in choose_export_pdf_name
    self.export_to_file(file_out)
  File "/usr/bin/pdfshuffler", line 432, in export_to_file
    pdfdoc_inp = PdfFileReader(file(pdfdoc.copyname, 'rb'))
  File "/usr/lib/python2.7/site-packages/pyPdf/pdf.py", line 277, in __init__
    self.read(stream)
  File "/usr/lib/python2.7/site-packages/pyPdf/pdf.py", line 651, in read
    offset, generation = line[:16].split(" ")
ValueError: too many values to unpack

Local variables in innermost frame:
cnt: 0
stream: <open file '/tmp/tmpYMc9c5pdfshuffler/02_StudentLES1.pdf', mode 'rb' at 0x1989540>
self: <pyPdf.pdf.PdfFileReader object at 0x19bc910>
startxref: 3879238
num: 1
x: 'x'
line: '0000000009 0000 n\n00'
ref: 'ref\n'
size: 6

How to reproduce
-----
1.Created PDF by importing in gui, 
2.Clicked on export> crash
3.

Comment 1 Lofton Alley 2011-02-21 13:43:33 UTC
Package: pdfshuffler-0.5-2.fc14
Architecture: x86_64
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1.Created PDF by importing in gui, 
2.Clicked on export> crash
3.

Comment 2 Duane Lopes 2011-02-27 15:36:11 UTC
Package: pdfshuffler-0.5-2.fc14
Architecture: x86_64
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1.
2.
3.
Imported 3 PDF documents created by Simple Scan.  File 1 had 4 pages, file 2 had 2 pages, and file 3 had 2 pages.  Tried to export entire document of 8 pages.

Comment 3 Fabian Affolter 2011-06-04 09:33:22 UTC
An update to 0.5.1 was provided. Please restest and reopen this bug if the problem still occurs.

Comment 4 Fabian Affolter 2011-06-24 20:04:17 UTC
*** Bug 715427 has been marked as a duplicate of this bug. ***

Comment 5 Rafał Mużyło 2011-08-24 20:37:35 UTC
For a reason, I doubt any reasonable change in pdfshuffler would help.

The problem - in a way - lies in pyPDF, or more exactly in Simple Scan producing corrupted pdf files.

See my comment in http://bugs.gentoo.org/show_bug.cgi?id=380429 for a complete explanation. Anyone having a launchpad account should feel free to i.e. comment in https://bugs.launchpad.net/simple-scan/+bug/662144.