Bug 284464

Summary: when refreshing pdf, included graphics displayed wrong
Product: [Applications] okular Reporter: Yngve Levinsen <yngve>
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED FIXED    
Severity: normal CC: Martin.vGagern
Priority: NOR    
Version: 0.13.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 4.7.3
Attachments: correct rendering
wrong rendering after refresh
pdf that reproduce the issue

Description Yngve Levinsen 2011-10-19 12:50:36 UTC
Created attachment 64702 [details]
correct rendering

Version:           0.13.2 (using KDE 4.7.2) 
OS:                Linux

This looks like it happened after recent upgrade of poppler, but I cannot say for sure (now using version ). When I open a pdf everything is rendered correctly. When I refresh the page (F5) however, the figures (included images) look very weird. Figures are perhaps not the right word, but what I am talking about are included images in a latex document which is then converted using pdflatex (\includegraphics). It looks like this only happens for vector graphics (the png figures look fine). It also happens for some figures I have created using tikz. I will attach two screenshots showing correct and wrong rendering.

Reproducible: Always

Steps to Reproduce:
Open a pdf which has vector graphics, click refresh.

Actual Results:  
Graphics look bad

Expected Results:  
Graphics look as before

OS: Linux (x86_64) release 3.0-ARCH
Compiler: gcc
Comment 1 Yngve Levinsen 2011-10-19 12:51:06 UTC
Created attachment 64703 [details]
wrong rendering after refresh
Comment 2 Yngve Levinsen 2011-10-19 12:52:00 UTC
Ah, sorry, I forgot to insert my poppler version. It is 0.18.0.
Comment 3 Albert Astals Cid 2011-10-19 13:00:52 UTC
Attach a pdf file to reproduce the issue.
Comment 4 Yngve Levinsen 2011-10-19 13:10:47 UTC
Created attachment 64704 [details]
pdf that reproduce the issue

Wow, fast response! Certainly, no problem. The file attached reproduces the problem for me.
Comment 5 Albert Astals Cid 2011-10-19 13:46:34 UTC
Git commit eb705417fac06ad7a29b9f05f00c825ded886334 by Albert Astals Cid.
Committed on 19/10/2011 at 15:44.
Pushed by aacid into branch 'KDE/4.7'.

Do not assume pdfdoc hints won't change

Since sometimes we even change the pdfdoc pointer itself ;-)
This was working previously by pure luck (read bug in poppler :D)
BUGS: 284464
FIXED-IN: 4.7.3

M  +1    -5    generators/poppler/generator_pdf.cpp

http://commits.kde.org/okular/eb705417fac06ad7a29b9f05f00c825ded886334
Comment 6 Albert Astals Cid 2011-10-19 13:47:37 UTC
Git commit fc58c9824ffa1fd3e75bcc2bae98388c9ff4bedd by Albert Astals Cid.
Committed on 19/10/2011 at 15:44.
Pushed by aacid into branch 'master'.

Do not assume pdfdoc hints won't change

Since sometimes we even change the pdfdoc pointer itself ;-)
This was working previously by pure luck (read bug in poppler :D)
BUGS: 284464
FIXED-IN: 4.7.3
(cherry picked from commit eb705417fac06ad7a29b9f05f00c825ded886334)

M  +1    -5    generators/poppler/generator_pdf.cpp

http://commits.kde.org/okular/fc58c9824ffa1fd3e75bcc2bae98388c9ff4bedd
Comment 7 Yngve Levinsen 2011-10-19 13:50:32 UTC
I'm sorry, did you already find AND solve the bug? This must be a new record or something, I'm hugely impressed! :)

Keep up all the great work!
Comment 8 Albert Astals Cid 2011-10-19 17:02:31 UTC
Yes, it was an easy fix, don't expect everything you report to be fixed so fast ;-)

Thanks for reporting the issue.
Comment 9 Albert Astals Cid 2011-10-20 10:14:37 UTC
*** Bug 284533 has been marked as a duplicate of this bug. ***