Okular does not show pdf documents anymore. All other types of document are shown correctly. When launched from a terminal in debug mode I have the following informations: okular(20856): BEGIN: Loading backend This backend is only for XRandR 1.1, your version is: 1 . 4 okular(20856) BackendLoader::init: Skipping "XRandR 1.1" backend okular(20856) BackendLoader::init: Loading "XRandR" backend okular(20856): END__: Loading backend [Took: 0.038s] okular(20856) Okular::Utils::realDpi: Found widget at output # 83 okular(20856) Okular::Utils::realDpi: Output DPI is QSizeF(inf, inf) followed by several lines like: okular(20856)/okular (app) Okular::Document::requestPixmaps: request observer=0x29d62e8 832x-2147483648@0 Reproducible: Always Steps to Reproduce: 1. Open a pdf document. 2. 3. Actual Results: The document is not displayed and the status bar shows the size to be a NaN. I attach a screenshot illustarting the problem.
Created attachment 85814 [details] Screenshot illustrating the problem.
Do you know how to recompile okular? Would you able to compile it adding kDebug() << "Output size is " << szMM; after the line QSize szMM = selectedOutput->sizeMm(); in core/utils.cpp ?
I just recompiled master () which has the patch you asked me to apply. Here is the output on the command line: okular(14783): BEGIN: Loading backend This backend is only for XRandR 1.1, your version is: 1 . 4 okular(14783) BackendLoader::init: Skipping "XRandR 1.1" backend okular(14783) BackendLoader::init: Loading "XRandR" backend okular(14783): END__: Loading backend [Took: 0.038s] okular(14783) Okular::Utils::realDpi: Found widget at output # 83 okular(14783) Okular::Utils::realDpi: Output size is QSize(0, 0) okular(14783) Okular::Utils::realDpi: Output DPI is QSizeF(inf, inf)
I'm compiling from master (8ee72f).
Thanks this is useful :)
One more thing, can you please run kscreen-console bug on a terminal and attach the output?
Created attachment 85895 [details] Output of "kscreen-console bug"
I just added the output you requested. Something else that might help and that I had not noticed before: the file preview widget in kile (okular based) is working perfectly fine. The document preview in kbibtex (also okular based), however, simply does not work. I hope this information helps.
Git commit a7f3a1ac37af94af5078051ceb5b310fb93194ed by Albert Astals Cid. Committed on 02/04/2014 at 22:42. Pushed by aacid into branch 'KDE/4.13'. Protect us against broken drivers/screens Some drivers screens return 0x0 as their screen size so we can't use it to calculate the dpi Related: bug 332494 FIXED-IN: 4.13.0 M +17 -9 core/utils.cpp http://commits.kde.org/okular/a7f3a1ac37af94af5078051ceb5b310fb93194ed