GNOME Bugzilla – Bug 669017
evince: blank djvu pages appear black
Last modified: 2013-01-10 11:56:40 UTC
As reported downstream to: https://bugs.gentoo.org/show_bug.cgi?id=367373 Page 14 of attached file can be used to test this behavior
The file is too big to attach :s It's in: http://www.2shared.com/file/exnz7tJ-/The_Varangians_of_Byzantium.html
Thanks for taking the time to report this bug. However, you are using version 2.32 which is too old and not supported anymore. GNOME developers are no longer working on that version, so unfortunately there will not be any bug fixes for the version that you use. By upgrading to a newer version of GNOME you could receive bug fixes and new functionality. You may need to upgrade your Linux distribution to obtain a newer version of GNOME. Please feel free to reopen this bug if the problem still occurs with version 3.2 or 3.0 of GNOME.
*** Bug 650198 has been marked as a duplicate of this bug. ***
(In reply to comment #2) > Thanks for taking the time to report this bug. > However, you are using version 2.32 which is too old and not supported anymore. This bug is still present in evince-3.2.1
Created attachment 233128 [details] [review] Patch The following patch solves the issue. If the page is empty, ddjvu_page_render does nothing and since the format is RGB24, the page gets black. Thus, we render a white page when ddjvu_page_render returns FALSE
Review of attachment 233128 [details] [review]: Looks good to me, please check my comments before pushing. ::: backend/djvu/djvu-document.c @@ +373,3 @@ djvu_document->d_format, rowstride, pixels); You need to reindent these lines too. @@ +385,1 @@ cairo_surface_mark_dirty (surface); If the surface data hasn't been modified by djvulibre you don't need to mark it as dirty, so you can move this to an else branch of the previous if.
Comment on attachment 233128 [details] [review] Patch pushed to master as commit f644cad4d7819e9b97cbc93a32c7ab9d60f4196c
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.