GNOME Bugzilla – Bug 310306
Crashes with failed assertion: file ev-page-cache.c: line 187 (_ev_page_cache_new): assertion failed
Last modified: 2005-08-17 14:32:33 UTC
Distribution: Fedora Core release 4 (Stentz) Package: evince Severity: critical Version: GNOME2.10.0 0.3.x Gnome-Distributor: Red Hat, Inc Synopsis: Crashes with failed assertion: file ev-page-cache.c: line 187 (_ev_page_cache_new): assertion failed Bugzilla-Product: evince Bugzilla-Component: general Bugzilla-Version: 0.3.x BugBuddy-GnomeVersion: 2.0 (2.10.0) Description: Description of the crash: Evince crashes when opening a particualar pdf file: ** ERROR **: file ev-page-cache.c: line 187 (_ev_page_cache_new): assertion failed: (page_cache->uniform_width > 0 && page_cache->uniform_height > 0) Steps to reproduce the crash: 1. evince /tmp/saffron_output_29BD.pdf Expected Results: Not crash How often does this happen? Always Additional Information: PDF was obtained from: http://gecko.dynalivery.com/geckoresults.asp?fname=http%3A%2F%2Fwww.bbc.com&outputType=1&footer=Powered+By+Mozilla+Gecko+%26+Dynalivery+Saffron but thats dynamic, so I'll attach the file. I suspect that the PDF is invalid since its too small to really be the BBC home page... Debugging Information: Backtrace was generated from '/usr/bin/evince' Using host libthread_db library "/lib/libthread_db.so.1". [Thread debugging using libthread_db enabled] [New Thread -1209088320 (LWP 11045)] [New Thread -1211216976 (LWP 11046)] 0x002ae402 in ?? ()
+ Trace 61715
Thread 1 (Thread -1209088320 (LWP 11045))
------- Bug moved to this database by unknown@gnome.bugs 2005-07-14 02:23 UTC -------
Created attachment 49137 [details] crashing pdf
According to simple-dup-finder this is a unique stack trace.
FWIW, acrobat complains that the document can't be opened because it has no pages.
Created attachment 49198 [details] [review] Proposed patch I think we might have errors in page cache creation function, not the only errors handled by this assert. And the right way to find this errors - pass GError to page cache creation. So I propose the following patch.
If I remember correctly Bryan didnt want to handle this case (no pages) with an error dialog but by simply not showing any page. I think part of the code is handling that correctly, because it used to work...
I think we decided on showing no pages instead of an error dialog.
*** Bug 310948 has been marked as a duplicate of this bug. ***
Rejecting patch since an error dialog is not what we want.
Fixed, though it looks mildly weird. I wonder if the dialog makes more sense. You can bring up the properties, though, so that's cool.
*** Bug 313698 has been marked as a duplicate of this bug. ***