Bug 591051 - Evince cannot be opened in preview mode
Summary: Evince cannot be opened in preview mode
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: evince
Version: 6.0
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Marek Kašík
QA Contact: desktop-bugs@redhat.com
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-05-11 10:20 UTC by Vladimir Benes
Modified: 2010-07-02 19:04 UTC (History)
1 user (show)

(edit)
Clone Of:
(edit)
Last Closed: 2010-07-02 19:04:37 UTC


Attachments (Terms of Use)
evince window after --preview option used (18.68 KB, image/png)
2010-05-11 10:55 UTC, Vladimir Benes
no flags Details
relative path patch (561 bytes, patch)
2010-05-12 12:30 UTC, Marek Kašík
no flags Details | Diff

Description Vladimir Benes 2010-05-11 10:20:48 UTC
Description of problem:
If I run evince with --preview option from command line I see this error:
evince-previewer:3193): EvinceDocument-CRITICAL **: ev_document_factory_get_document: assertion `uri != NULL' failed

** (evince-previewer:3193): CRITICAL **: ev_previewer_window_set_document: assertion `EV_IS_DOCUMENT (document)' failed

Picture of Evince attached

Version-Release number of selected component (if applicable):
evince-2.28.2-6.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1.in terminal execute: evince --preview your_pdf.pdf

  
Actual results:
error in terminal and just Loading... sign in evince window

Expected results:
correct preview of pdf file

Additional info:

Comment 1 RHEL Product and Program Management 2010-05-11 10:33:05 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.

Comment 2 Vladimir Benes 2010-05-11 10:55:34 UTC
Created attachment 413092 [details]
evince window after --preview option used

Comment 3 Marek Kašík 2010-05-12 12:30:46 UTC
Created attachment 413413 [details]
relative path patch

Hi,

I see the problem now. The evince-previewer (evince --preview) doesn't expand gi
ven relative path to an absolute path before converting it to an URI. Attached is a small patch which fixes this.

Regards

Marek

Comment 4 Vladimir Benes 2010-05-12 16:13:20 UTC
verified on x86_64
now it shows preview correctly..

Comment 6 Vladimir Benes 2010-06-09 12:47:54 UTC
VERIFIED:
evince-2.28.2-12.el6 works as expected

Comment 7 releng-rhel@redhat.com 2010-07-02 19:04:37 UTC
Red Hat Enterprise Linux Beta 2 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.


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