Bug 576039 - [abrt] crash in pdfshuffler-0.4.2-2.fc12: pdf.py:593:readObjectHeader:ValueError: invalid literal for int() with base 10: ''
Summary: [abrt] crash in pdfshuffler-0.4.2-2.fc12: pdf.py:593:readObjectHeader:ValueEr...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: pdfshuffler
Version: 12
Hardware: i686
OS: Linux
low
medium
Target Milestone: ---
Assignee: Fabian Affolter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:b503e44e
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-23 04:00 UTC by Larry O'Leary
Modified: 2010-03-30 02:07 UTC (History)
1 user (show)

Fixed In Version: pdfshuffler-0.5-1.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-03-30 02:07:57 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.22 KB, text/plain)
2010-03-23 04:00 UTC, Larry O'Leary
no flags Details

Description Larry O'Leary 2010-03-23 04:00:15 UTC
abrt 1.0.8 detected a crash.

architecture: i686
cmdline: /usr/bin/python /usr/bin/pdfshuffler
component: pdfshuffler
executable: /usr/bin/pdfshuffler
kernel: 2.6.32.9-70.fc12.i686.PAE
package: pdfshuffler-0.4.2-2.fc12
reason: pdf.py:593:readObjectHeader:ValueError: invalid literal for int() with base 10: ''
release: Fedora release 12 (Constantine)

backtrace
-----
pdf.py:593:readObjectHeader:ValueError: invalid literal for int() with base 10: ''

Traceback (most recent call last):
  File "/usr/bin/pdfshuffler", line 415, in export_pdf
    current_page = pdf_input[nfile-1].getPage(npage-1)
  File "/usr/lib/python2.6/site-packages/pyPdf/pdf.py", line 353, in getPage
    self._flatten()
  File "/usr/lib/python2.6/site-packages/pyPdf/pdf.py", line 499, in _flatten
    catalog = self.trailer["/Root"].getObject()
  File "/usr/lib/python2.6/site-packages/pyPdf/generic.py", line 466, in __getitem__
    return dict.__getitem__(self, key).getObject()
  File "/usr/lib/python2.6/site-packages/pyPdf/generic.py", line 165, in getObject
    return self.pdf.getObject(self).getObject()
  File "/usr/lib/python2.6/site-packages/pyPdf/pdf.py", line 546, in getObject
    idnum, generation = self.readObjectHeader(self.stream)
  File "/usr/lib/python2.6/site-packages/pyPdf/pdf.py", line 593, in readObjectHeader
    return int(idnum), int(generation)
ValueError: invalid literal for int() with base 10: ''

Local variables in innermost frame:
generation: ''
idnum: '1'
self: <pyPdf.pdf.PdfFileReader object at 0x8ad5dec>
obj: '0 o'
stream: <open file '/tmp/tmp1MR2LSpdfshuffler/01_My PDF File.pdf', mode 'rb' at 0x8adf340>

comment
-----
After clicking "Save" nothing seemed to happen except for the Crash Detection.  In other words, the Save As dialog remained open.  Clicking Canel/Save had no affect.  I had to click the close icon on the window's title bar.  Once the Save Dialog was closed, I had to click "Quit" to exit pdfshuffler.

Also note my page size is 7.96 x 3.50 inch for both pages.

How to reproduce
-----
1.Start pdfshuffler
2.Drag first single page PDF file /home/me/Desktop/My PDF File.pdf to PDF-Shuffler window
3.Drag second single page PDF file /home/me/Desktop/AnotherPDF.pdf to PDF-Shuffler window
4.Click "Export PDF..."
5.Give save as name of /home/me/Desktop/MyNewPDF.pdf
6.Click "Save"

Comment 1 Larry O'Leary 2010-03-23 04:00:17 UTC
Created attachment 401930 [details]
File: backtrace

Comment 2 Fabian Affolter 2010-03-28 11:06:13 UTC
For A4 it works...I'm able to save the new pdf file.  At the moment I can't test it with other paper formats.

There is a pending update for pdfshuffler-0.5.

Comment 3 Fedora Update System 2010-03-28 11:06:20 UTC
pdfshuffler-0.5-1.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/pdfshuffler-0.5-1.fc12

Comment 4 Fedora Update System 2010-03-30 02:07:49 UTC
pdfshuffler-0.5-1.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.