Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1358172

Summary: gnome-documents seems to be unable interpret DVI files.
Product: Red Hat Enterprise Linux 7 Reporter: Michal Odehnal <modehnal>
Component: gnome-documentsAssignee: Debarshi Ray <debarshir>
Status: CLOSED WONTFIX QA Contact: Desktop QE <desktop-qa-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.5CC: debarshir, jkoten, mkrajnak, tpelka
Target Milestone: rcKeywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1593832 (view as bug list) Environment:
Last Closed: 2020-02-12 13:59:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Test DVI file.
none
journalctl.log
none
g-s gone
none
evince none

Description Michal Odehnal 2016-07-20 08:47:15 UTC
Created attachment 1181963 [details]
Test DVI file.

Description of problem:
Gnome-documents cannot interpret DVI files.

Version-Release number of selected component (if applicable):
gnome-documents-3.14.3-3.el7.x86_64


How reproducible:
100%

Steps to Reproduce:
1.Get test file from attachments, or make a DVI file.
2.Open gnome-documents.
3.Open DVI file.

Actual results:
Documents shows lots of unknown characters.

Expected results:
File opens normally with right content.

Additional info:

Comment 1 Martin Krajnak 2018-02-02 12:49:30 UTC
Maybe we should re-think support for this type of files. It haven;t been working for years and more importantly we just found out that opening the affected file blocks the entire gnome-shell session.

Comment 2 Michal Odehnal 2018-02-02 12:58:43 UTC
Created attachment 1390143 [details]
journalctl.log

This is what journalctl log show while the test is run.

Comment 3 Martin Krajnak 2018-02-02 13:12:26 UTC
Created attachment 1390145 [details]
g-s gone

Just note that to obtain logs provided by Michal you have to wait up to 10 minutes and also the vm is eating 95% of cpu and 80% of 4096 MB of memory resources gnome-shell panel is gone, but process is running

Comment 4 Martin Krajnak 2018-06-07 13:45:09 UTC
I just found out, that .dvi files are working in gnome-documents as charm but I had to install evince-dvi.rpm which enables support for dvi files for both evince and gnome-documents.

Since the DVI file format is listed as a supported format here:
https://help.gnome.org/users/gnome-documents/stable/formats.html.en
I think that it should have evince-dvi.rpm as a dependency in the same manner as it has dependency on libreofficekit for displaying libreoffice documents.

The secondary problem is that evince-dvi has around ~170 dependencies, most of them are TexLive packages which might be unnecessary package overhead for people who will not use DVI format. For that case I would consider at least something like helper message which will tell the user to install additional package (evince-dvi) if he requires .dvi support. 

What do you think Debarshi, what solution will be better ? Should we try t osolve it here or propose upstream ?

Comment 5 Debarshi Ray 2018-06-07 16:02:31 UTC
Oh, sorry, I forgot about this bug. Yes, you need the specific evince backends for the MIME type you want to render. Although, it's strange that it blocks the entire session that way. Does evince also do that?

The evince-dvi subpackage shows up as an add-on for evince in gnome-software.  I don't know if it can also be made to show as a gnome-documents add-on.

Comment 6 Martin Krajnak 2018-06-07 16:16:23 UTC
Created attachment 1448785 [details]
evince

Well, without that addon evince is acting the same way as gnome-documents, it shows the message that the application cannot handle the file.
My point is that from the user perspective, there is no clear way to know that the addon needs to be installed. I found out about the addon thanks to comment in stack overflow thread, otherwise I would think that it is a bug ...

Comment 7 Debarshi Ray 2018-06-08 09:15:24 UTC
Thanks for the screenshot!

Other than showing up as an add-on, the error messages can also be improved to let the user know that there might be some missing backends that can be installed. Maybe that can help?

As for evince, does it also block the session when it fails to load the file?

Comment 8 Martin Krajnak 2018-06-08 09:21:35 UTC
Ah, sorry I forgot about my comment, the session is not blocked anymore at least on I can confirm that for RHEL 7.5 and Fedora 28, so that is not an issue anymore.

Comment 9 Martin Krajnak 2018-06-25 14:19:39 UTC
Btw there is upstream issue regarding this (8 years old :O): 
https://gitlab.gnome.org/GNOME/evince/issues/150

Comment 10 Michal Odehnal 2018-06-26 10:23:14 UTC
Not reproducible with gnome-documents-3.28.1-1.el7.x86_64 and evince-dvi-3.28.2-4.el7.x86_64. Without evince-dvi package I can still reproduce but that is expected I suppose.

Comment 11 Michal Odehnal 2018-06-26 10:34:41 UTC
As Martin suggested the package evince-dvi should be listed as dependency, and installed together with gnome-documents as user has no information about this package missing. So while this is not exactly a bug, its an issue that ought to be solved. Reopening.

Comment 12 Debarshi Ray 2020-02-11 17:42:53 UTC
RHEL 7 is approaching its Extended Life Cycle Support phase; and GNOME Documents is only weakly maintained upstream. Given the non-critical nature of this bug, it's not fit for RHEL 7 anymore, and GNOME Documents isn't part of RHEL 8.