Re: [Nix-dev] Okular Rendering issues

2016-08-19 Thread Roland Koebler
On Wed, Aug 17, 2016 at 07:43:32PM -0500, laverne wrote:
> I'm running KDE on NixOS 16.03. I use Okular as my PDF viewer and have a PDF 
> that is not rendering correctly. I have tried both okular-15.12.3 (Okular 
> 0.24.2) and okular-4.14.3 (Okular 0.20.3). Some PDFs render fine, but I have 
> attached one that does not. The white ovals along the left-hand side should 
> have text in them and each of the arrows should have a number by them. If I 
> upload this file to Google Drive, the text is visible. They also display fine 
> under Okular 0.22.0 Fedora 22.
> 
> Can others confirm this behavior? Does it seem like a NixOS specific bug or 
> should it be reported upstream?
I can give some results from non-NixOS: 

1. Debian Jessie + Okular:
   -> worked

   $ okular --version
   Qt: 4.8.6
   KDE Development Platform: 4.14.2
   Okular: 0.20.2

   libpoppler46:amd64  0.26.5-2+deb8u1

2. Debian Jessie + Nix + okular-4.14.3 from nixpkgs.kde4.okular,
   Debian Jessie + Nix + okular-16.04.03 from nixpkgs.kde5.okular

   Did not work at all: (a) okular cannot open any file and
   (b) okular turns the audio-mixer to 100% (wtf?) and plays an error-sound

   So, Nix okular-packages seem to be completely broken when used on
   non-NixOS.

   Error-message of okular when trying to open some PDF:

okular(32461)/kdecore (trader): KMimeTypeTrader: couldn't find service type 
"okular/Generator" 
Please ensure that the .desktop file for it is installed; then run 
kbuildsycoca4. 
okular(32461)/okular (app) Okular::Document::openDocument: No plugin for 
mimetype '"text/plain"'.
okular(32461)/kdecore (trader): KMimeTypeTrader: couldn't find service type 
"okular/Generator" 
Please ensure that the .desktop file for it is installed; then run 
kbuildsycoca4. 
okular(32461)/okular (app) Okular::Document::openDocument: No plugin for 
mimetype '"text/plain"'.
okular(32461) KMimeTypePrivate::ensureXmlDataLoaded: Missing  field in 
"text/plain.xml" 


regards
Roland
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Okular Rendering issues

2016-08-18 Thread Nikolay Amiantov
On 08/18/2016 06:05 PM, laverne wrote:
> 
> 
>  On Thu, 18 Aug 2016 03:58:02 -0500 Nikolay Amiantov  wrote  
>> The bug also shows on zathura with poppler (a PDF renderer engine that 
>> is used in okular, too) backend, but mupdf (another engine) doesn't have 
>> it. This seems like a poppler's bug. If you say that Fedora doesn't have 
>> it then either they have a different version or custom patches (which we 
>> can try to use), or something different is going on... 
> 
> Ah, right. It looks like both versions of Okular are built against poppler 
> version
>  0.36 , but fedora 22 uses 0.30. This is most likely the place where the bug 
> lies
>  so my best bet is to attempt to get the latest stable version of Poppler 
> (0.46 !) 
> built.
> 
> - Laverne 
> 
> 

I have tried with poppler 0.46.0 today and unfortunately it doesn't fix
the problem. You can get the patch as part of
https://github.com/NixOS/nixpkgs/pull/17819. I feel that's because this
PDF has some strange embedded font because zathura prints those errors:

error: freetype: cannot load font: invalid argument
error: cannot load embedded font (7 0 R)
warning: ignored error when loading embedded font; attempting to load
system font

when using mupdf, and spams "some font thing failed" when using poppler.

-- 
Nikolay.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Okular Rendering issues

2016-08-18 Thread laverne


 On Thu, 18 Aug 2016 03:58:02 -0500 Nikolay Amiantov  wrote  
>The bug also shows on zathura with poppler (a PDF renderer engine that 
>is used in okular, too) backend, but mupdf (another engine) doesn't have 
>it. This seems like a poppler's bug. If you say that Fedora doesn't have 
>it then either they have a different version or custom patches (which we 
>can try to use), or something different is going on... 

Ah, right. It looks like both versions of Okular are built against poppler 
version
 0.36 , but fedora 22 uses 0.30. This is most likely the place where the bug 
lies
 so my best bet is to attempt to get the latest stable version of Poppler (0.46 
!) 
built.

- Laverne 

___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Okular Rendering Issues [Was: Evince Rendering issues]

2016-08-17 Thread laverne

Ugg, correcting subject.
 On Wed, 17 Aug 2016 19:43:32 -0500 laverne 
wrote  
 > Hi, 
 >  
 > I'm running KDE on NixOS 16.03. I use Okular as my PDF viewer and have a PDF 
 > that is not rendering correctly. I have tried both okular-15.12.3 (Okular 
 > 0.24.2) and okular-4.14.3 (Okular 0.20.3). Some PDFs render fine, but I have 
 > attached one that does not. The white ovals along the left-hand side should 
 > have text in them and each of the arrows should have a number by them. If I 
 > upload this file to Google Drive, the text is visible. They also display 
 > fine under Okular 0.22.0 Fedora 22. 
 >  
 > Can others confirm this behavior? Does it seem like a NixOS specific bug or 
 > should it be reported upstream? 
 >  
 > Thanks, 
 > Laverne Schrock 
 >  
 > ___ 
 > nix-dev mailing list 
 > nix-dev@lists.science.uu.nl 
 > http://lists.science.uu.nl/mailman/listinfo/nix-dev 
 > 
 > 


___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev