Bug 303479 - does not display dvi file correctly (signs in formulas are absent)
Summary: does not display dvi file correctly (signs in formulas are absent)
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: DVI backend (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-13 14:31 UTC by Nikolai Iorgov
Modified: 2012-07-15 17:07 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
File which is displayed incorrectly (372 bytes, application/x-dvi)
2012-07-13 14:31 UTC, Nikolai Iorgov
Details
attachment-16610-0.html (1.49 KB, text/html)
2012-07-13 14:55 UTC, Nikolai Iorgov
Details
attachment-16610-1.dat (1 bytes, multipart/alternative)
2012-07-13 14:55 UTC, Nikolai Iorgov
Details
Screenshot_of_xdvik.png (24.09 KB, image/png)
2012-07-13 14:55 UTC, Nikolai Iorgov
Details
Screenshot_of_Okular.png (52.77 KB, image/png)
2012-07-13 14:55 UTC, Nikolai Iorgov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nikolai Iorgov 2012-07-13 14:31:01 UTC
Created attachment 72499 [details]
File which is displayed incorrectly

Okular does not display the minus sign in the formula, but xdvik displays
(the sign should be):

\documentclass{article}
\begin{document}
$e^{-i\pi}$
\end{document}
Comment 1 Albert Astals Cid 2012-07-13 14:38:31 UTC
Created attachment 72502 [details]
attachment-16610-0.html

Works for me. Can you attach a screenshot of what you get?
Comment 2 Nikolai Iorgov 2012-07-13 14:55:25 UTC
Fri, 13 Jul 2012 14:38:31 +0000 от Albert Astals Cid <tsdgeos@terra.es>:
 
  
  
https://bugs.kde.org/show_bug.cgi?id=303479

Albert Astals Cid <tsdgeos@terra.es> changed:

           What |Removed |Added
----------------------------------------------------------------------------
                 CC| |tsdgeos@terra.es

--- Comment #1 from Albert Astals Cid <tsdgeos@terra.es> ---
Works for me. Can you attach a screenshot of what you get?
Comment 3 Nikolai Iorgov 2012-07-13 14:55:26 UTC
Created attachment 72503 [details]
attachment-16610-1.dat
Comment 4 Nikolai Iorgov 2012-07-13 14:55:26 UTC
Created attachment 72504 [details]
Screenshot_of_xdvik.png
Comment 5 Nikolai Iorgov 2012-07-13 14:55:26 UTC
Created attachment 72505 [details]
Screenshot_of_Okular.png
Comment 6 Albert Astals Cid 2012-07-13 15:01:53 UTC
Which okular version are you using?
Comment 7 Nikolai Iorgov 2012-07-13 15:05:55 UTC
DVI Backend
Version 0.3.4
Using KDE Development Platform 4.8.4 (4.8.4)

under Gnome 3.2.1 (if it is important) 

Fri, 13 Jul 2012 15:01:53 +0000 от Albert Astals Cid <tsdgeos@terra.es>:
>  
> 
>   
>   
> https://bugs.kde.org/show_bug.cgi?id=303479
> 
>  --- Comment #6 from Albert Astals Cid <tsdgeos@terra.es> ---
>  Which okular version are you using?
> 
>  -- 
>  You are receiving this mail because:
>  You reported the bug.
>
Comment 8 Nikolai Iorgov 2012-07-13 15:10:41 UTC
Also I made a bug report that Okular is crashing while closing
(maybe it is related to the bug under consideration)


Fri, 13 Jul 2012 15:01:53 +0000 от Albert Astals Cid <tsdgeos@terra.es>:
 
  
  
https://bugs.kde.org/show_bug.cgi?id=303479

--- Comment #6 from Albert Astals Cid <tsdgeos@terra.es> ---
Which okular version are you using?
Comment 9 Nikolai Iorgov 2012-07-13 16:55:52 UTC
I think I have found deeper reason of the problem:

In the properties of the file (in Okular) I found (in Font Tab)

Name : "cmsy7, 100%" 
Type : TeX Free Type-handled 
File:  The font /usr/share/texmf/fonts/type1/bluesky/cm/cmsy7.pfb could be opened and read, but its font format is unsupported

When I changed the fonts to larger, the problem with displaying "-" disappeared.
Moreover, another bug I reported today disappeared: crashing of Okular while closing or returning to Editor (Kile).

Thus the question: why the problem with the font leads to crashing Okular?


Fri, 13 Jul 2012 15:01:53 +0000 от Albert Astals Cid <tsdgeos@terra.es>:
 
  
  
https://bugs.kde.org/show_bug.cgi?id=303479

--- Comment #6 from Albert Astals Cid <tsdgeos@terra.es> ---
Which okular version are you using?
Comment 10 Albert Astals Cid 2012-07-13 17:35:51 UTC
"When I changed the fonts to larger", you mean in the dvi file, not that you zoom, right?
Comment 11 Nikolai Iorgov 2012-07-13 17:44:36 UTC
yes.
Comment 12 Albert Astals Cid 2012-07-13 17:58:07 UTC
Which fedora version are you running?

Can you write the md5sum of /usr/share/texmf/fonts/type1/bluesky/cm/cmsy7.pfb?

Are you running your fedora version fully updated?
Comment 13 Nikolai Iorgov 2012-07-13 18:09:17 UTC
Fedora 16 fully updated

md5sum gives:
8e734115ec391395a9327eb0ddf82a04  /usr/share/texmf/fonts/type1/bluesky/cm/cmsy7.pfb
Comment 14 Fabio D'Urso 2012-07-13 18:46:15 UTC
Fedora 16 here too, but i get fe52d379879bc0313debe81e97969908 (#okular: it's the same as tosky's).
Package: texlive-texmf-fonts-2007-40.fc15

Does   yum reinstall texlive-texmf-fonts   help?
Comment 15 Fabio D'Urso 2012-07-13 23:31:22 UTC
(In reply to comment #14)
> Fedora 16 here too
Seems I've forgotten what my OS version is. Sorry, I'm running fedora 15.
My package is: texlive-texmf-fonts-2007-40.fc15
Yours should be: texlive-texmf-fonts-2007-40.fc16
Since in tosky's fc16 it has the same checksum as in my fc15, I suppose that cmsy7.pfb is the same in both packages and the checksum I wrote is still valid.
Comment 16 Nikolai Iorgov 2012-07-14 08:55:01 UTC
I obtained:

.....

Running Transaction
 Installing : texlive-texmf-fonts-2007-40.fc16.noarch 1/1 
Error unpacking rpm package texlive-texmf-fonts-2007-40.fc16.noarch
error: unpacking of archive failed on file /usr/share/texmf/fonts/type1/bluesky/cm/cmssi17.pfb: cpio: rename
 Verifying : texlive-texmf-fonts-2007-40.fc16.noarch 1/1
Failed:
 texlive-texmf-fonts.noarch 0:2007-40.fc16
Comment 17 Luigi Toscano 2012-07-14 10:52:52 UTC
(In reply to comment #16)
> Running Transaction
>  Installing : texlive-texmf-fonts-2007-40.fc16.noarch 1/1 
> Error unpacking rpm package texlive-texmf-fonts-2007-40.fc16.noarch
> error: unpacking of archive failed on file
> /usr/share/texmf/fonts/type1/bluesky/cm/cmssi17.pfb: cpio: rename
>  Verifying : texlive-texmf-fonts-2007-40.fc16.noarch 1/1
> Failed:
>  texlive-texmf-fonts.noarch 0:2007-40.fc16
Looks like something is wrong with that file. 
Can you please try to completely remove it (maybe with --nodeps) and reinstall it again? Maybe you could also clean the yum cache (yum clean all), as the copy in cache could be corrupted.

Alternatively you could try to download (and install) the file again from here:
http://koji.fedoraproject.org/koji/buildinfo?buildID=272797

Anyway, I would say that this is NOTABUG; the other one (crash on exit, 303472) of course is a bug.
Comment 18 Nikolai Iorgov 2012-07-14 12:15:40 UTC
I removed fonts together with all dependent files, clean the yum cache and reinstalled TeX.
Now all is OK (including stable exiting from Okular).

Thanks for all.

P.S. I saved the corrupted font file (its length is much shorter than of length of new file) if it will be needed to reproduce crash of Okular.
Comment 19 Luigi Toscano 2012-07-14 12:43:31 UTC
(In reply to comment #18)
> P.S. I saved the corrupted font file (its length is much shorter than of
> length of new file) if it will be needed to reproduce crash of Okular.
I was able to reproduce the issue as well by injecting garbage in that file; just to be sure, please attach it to the other bug. Thanks for caring about Okular! 

I'm moving the substate of this bug to INVALID as it was not really a bug (i.e. the "-" was not shown because the font was not available).
Comment 20 Albert Astals Cid 2012-07-15 16:14:58 UTC
Agreed with Luigi this is not our bug, but you should probably open a bug into fedora bug tracker and investigate why the font got corrupted in the first place
Comment 21 Nikolai Iorgov 2012-07-15 16:47:04 UTC
Now I agree of course that the corrupted fonts it is not a bug of Okular. But initially it was not obvious for me that it is a problem with fonts:
strange displaying of formulas (which was not happened before in simple formulas with usual fonts)
together with crashing Okular (with Kile!) when I return to Editor (Kile) to check the formulas. All this was too strange for me
and I decided that all this is a bug of Okular.

About opening a bug in fedora:
 I do not know is it a bug. I can not say when this problem have arisen.
Maybe it was happened because I killed a relevant process some time ago.
With so small information I am not sure that it is possible to trace a bug (if it is a bug).