Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 752511 - [abrt] impressive-0.10.3-6.fc16: impressive.py:1435:get_href:AttributeError: PDFref instance has no attribute '__getitem__'
Summary: [abrt] impressive-0.10.3-6.fc16: impressive.py:1435:get_href:AttributeError: ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: impressive
Version: 16
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michael J Gruber
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:05f7fe8fdabf7b185d5785a2051...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-09 18:01 UTC by Vedran Miletić
Modified: 2011-12-13 19:56 UTC (History)
2 users (show)

Fixed In Version: impressive-0.10.3-7.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-10 19:32:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: smolt_data (2.59 KB, text/plain)
2011-11-09 18:01 UTC, Vedran Miletić
no flags Details
PDF that triggers the issue (111.30 KB, application/pdf)
2011-11-26 13:54 UTC, Vedran Miletić
no flags Details

Description Vedran Miletić 2011-11-09 18:01:31 UTC
libreport version: 2.0.7
abrt_version:   2.0.6
cmdline:        python /usr/lib/python2.7/site-packages/impressive.py -t Crossfade,FadeOutFadein,SlideDown,SlideLeft,SlideRight,SlideUp,SqueezeDown,SqueezeLeft,SqueezeRight,SqueezeUp /media/REPOS/d-preart-operacijski-sustav-linux.pdf
comment:        Run impressive on LuaTeX-generated PDF
event_log:      2011-11-09-19:01:03> Smolt profile successfully saved
executable:     /usr/lib/python2.7/site-packages/impressive.py
kernel:         3.1.0-7.fc16.i686
reason:         impressive.py:1435:get_href:AttributeError: PDFref instance has no attribute '__getitem__'
time:           Wed 09 Nov 2011 06:50:27 PM CET
uid:            1000
username:       vedranm

smolt_data:     Text file, 2650 bytes

backtrace:
:impressive.py:1435:get_href:AttributeError: PDFref instance has no attribute '__getitem__'
:
:Traceback (most recent call last):
:  File "/usr/lib/python2.7/site-packages/impressive.py", line 2016, in RenderThread
:    ParsePDF(pdf)
:  File "/usr/lib/python2.7/site-packages/impressive.py", line 1536, in ParsePDF
:    for page, annots in pdf.GetHyperlinks().iteritems():
:  File "/usr/lib/python2.7/site-packages/impressive.py", line 1449, in GetHyperlinks
:    a = filter(None, map(self.get_href, self.annots[page]))
:  File "/usr/lib/python2.7/site-packages/impressive.py", line 1435, in get_href
:    action = node['A']['S']
:AttributeError: PDFref instance has no attribute '__getitem__'
:
:Local variables in innermost frame:
:dest: None
:node: {'A': PDFref(60), 'F': 4, 'Border': [0, 0, 0], 'Subtype': 'Link', 'Type': 'Annot', 'Rect': [137.009, 304.156, 233.624, 333.881]}
:self: <__main__.PDFParser instance at 0xa3726ec>
:obj: 70

Comment 1 Vedran Miletić 2011-11-09 18:01:39 UTC
Created attachment 532628 [details]
File: smolt_data

Comment 2 Vedran Miletić 2011-11-19 21:54:34 UTC
Package: impressive-0.10.3-6.fc16
Architecture: i686
OS Release: Fedora release 16 (Verne)

Comment
-----
Doing a PDF presentation, probably clicking on a PDF link

Comment 3 Michael J Gruber 2011-11-21 07:22:21 UTC
Contacting upstream.

Vedran: Is this reproducible? Can you share the pdf (maybe privately)?

Comment 4 Martin Fiedler 2011-11-21 09:54:39 UTC
That's a specialty in the PDF file: It uses a reference in a place where Impressive doesn't expect one. Having a copy of such a broken PDF file would be very useful while fixing the bug, is there any chance I can get one?

Comment 5 Vedran Miletić 2011-11-26 13:54:48 UTC
Created attachment 536746 [details]
PDF that triggers the issue

Comment 6 Vedran Miletić 2011-11-26 13:55:38 UTC
Sure, it's not private. It was made by ConTeXt and LuaTeX; if it's a bug on their side, I'm pretty sure they would be willing to hear it.

Comment 7 Martin Fiedler 2011-11-28 08:03:38 UTC
I'm pretty certain that it's not a bug on ConTeXt's or LuaTeX's side. In PDF, references are allowed (almost) everywhere, it's just that Impressive's parser doesn't deal properly with them in some places.

It should fixed in upstream SVN now.

Comment 8 Fedora Update System 2011-11-28 13:47:03 UTC
impressive-0.10.3-7.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/impressive-0.10.3-7.fc16

Comment 9 Fedora Update System 2011-11-28 13:54:41 UTC
impressive-0.10.3-7.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/impressive-0.10.3-7.fc15

Comment 10 Fedora Update System 2011-11-28 14:01:33 UTC
impressive-0.10.3-7.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/impressive-0.10.3-7.fc14

Comment 11 Fedora Update System 2011-11-28 14:41:08 UTC
impressive-0.10.3-7.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/impressive-0.10.3-7.el6

Comment 12 Fedora Update System 2011-11-28 19:28:33 UTC
Package impressive-0.10.3-7.el6:
* should fix your issue,
* was pushed to the Fedora EPEL 6 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing impressive-0.10.3-7.el6'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2011-5102/impressive-0.10.3-7.el6
then log in and leave karma (feedback).

Comment 13 Fedora Update System 2011-12-10 19:32:34 UTC
impressive-0.10.3-7.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 14 Fedora Update System 2011-12-10 19:46:57 UTC
impressive-0.10.3-7.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 15 Fedora Update System 2011-12-10 19:57:53 UTC
impressive-0.10.3-7.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 16 Fedora Update System 2011-12-13 19:56:31 UTC
impressive-0.10.3-7.el6 has been pushed to the Fedora EPEL 6 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.