GNOME Bugzilla – Bug 300094
Reload is broken
Last modified: 2005-04-15 23:39:53 UTC
Open a PDF document, press CTRL+R: document is not displayed anymore, you have a grey window and these errors on stdout: ** (evince:3623): CRITICAL **: PopplerPage* poppler_document_get_page(PopplerDocument*, int): assertion `0 <= index && index < poppler_document_get_n_pages (document)' failed ** (evince:3623): CRITICAL **: void pdf_document_thumbnails_get_dimensions(EvDocumentThumbnails*, int, int, gint*, gint*): assertion `poppler_page != NULL' failed ** (evince:3623): CRITICAL **: ev_page_cache_get_size: assertion `page >= 0 && page < page_cache->n_pages' failed ** (evince:3623): CRITICAL **: ev_pixbuf_cache_set_page_range: assertion `start_page >= 0 && start_page < ev_page_cache_get_n_pages (page_cache)' failed ** (evince:3623): CRITICAL **: ev_page_cache_get_page_label: assertion `page >= 0 && page < page_cache->n_pages' failed (evince:3623): Gtk-CRITICAL **: gtk_entry_set_text: assertion `text != NULL' failed ** (evince:3623): CRITICAL **: ev_page_cache_get_page_label: assertion `page >= 0 && page < page_cache->n_pages' failed (evince:3623): Gtk-CRITICAL **: gtk_entry_set_text: assertion `text != NULL' failed ** (evince:3623): CRITICAL **: ev_page_cache_get_size: assertion `page >= 0 && page < page_cache->n_pages' failed ** (evince:3623): CRITICAL **: ev_pixbuf_cache_set_page_range: assertion `start_page >= 0 && start_page < ev_page_cache_get_n_pages (page_cache)' failed ** (evince:3623): CRITICAL **: ev_page_cache_get_size: assertion `page >= 0 && page < page_cache->n_pages' failed ** (evince:3623): CRITICAL **: ev_page_cache_get_size: assertion `page >= 0 && page < page_cache->n_pages' failed
Created attachment 45139 [details] [review] Patch to CVS Is your original document has 1 page? That error should be reproduced only with 1-page documents. Anyhow, this patch should fix the problem.
Created attachment 45140 [details] [review] Patch to CVS Is your original document has 1 page? That error should be reproduced only with 1-page documents. Anyhow, this patch should fix the problem.
Yes, I think it was a one page document. I've tested the patch and it works for me. Although I still have a few critical errors: ** (evince:19249): CRITICAL **: PopplerPage* poppler_document_get_page(PopplerDocument*, int): assertion `0 <= index && index < poppler_document_get_n_pages (document)' failed ** (evince:19249): CRITICAL **: void pdf_document_thumbnails_get_dimensions(EvDocumentThumbnails*, int, int, gint*, gint*): assertion `poppler_page != NULL' failed ** (evince:19249): CRITICAL **: PopplerPage* poppler_document_get_page(PopplerDocument*, int): assertion `0 <= index && index < poppler_document_get_n_pages (document)' failed ** (evince:19249): CRITICAL **: void pdf_document_thumbnails_get_dimensions(EvDocumentThumbnails*, int, int, gint*, gint*): assertion `poppler_page != NULL' failed
Sorry, can you more presizely describe what you are doing to get errors? What is the sequence of you actions? Of course, I assume you have patch applied.
*** Bug 300233 has been marked as a duplicate of this bug. ***
Created attachment 45149 [details] [review] Updated patch
I should say that I applied your patch against 0.2.0 because I couldn't manage to compile from CVS. I also tried your updated patch against 0.20 and I now have these errors when I open the document (evince <doc.pdf>) or reload it with Ctrl-R: ** (evince:4848): CRITICAL **: PopplerPage* poppler_document_get_page(PopplerDocument*, int): assertion `0 <= index && index < poppler_document_get_n_pages (document)' failed ** (evince:4848): CRITICAL **: void pdf_document_thumbnails_get_dimensions(EvDocumentThumbnails*, int, int, gint*, gint*): assertion `poppler_page != NULL' failed
I can't reproduce it neither with 0.2.0 nor with recent CVS. Patch is already commited. Can you attach problematic document and describe the way you get warnings?
Created attachment 45169 [details] Test document The errors occur when I open the document using "evince joy_spring_bes.pdf", with 0.2.0 with the updated patch applied.
I can confirm this with CVS HEAD: When opening or reloading a 1-page pdf file, the warnings that Laurent mentioned are printed. Doesn't happen with documents that have more than one page, though.
Thanks, this is really 1-page problem. Will fix it soon.
Should be fixed in CVS