After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 171588 - should give better diagnosis of documents with no pages
should give better diagnosis of documents with no pages
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: general
git master
Other other
: High critical
: 0.10
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-03-25 14:45 UTC by r.oak
Modified: 2008-06-16 17:53 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
the file which causes the crash (322 bytes, application/pdf)
2005-07-20 03:38 UTC, Brent Smith (smitten)
Details

Description r.oak 2005-03-25 14:45:08 UTC
Distribution: Fedora Core release 3 (Heidelberg)
Package: gpdf
Severity: normal
Version: GNOME2.8.0 unspecified
Gnome-Distributor: Red Hat, Inc
Synopsis: gpdf crashes when given the following PDF
Bugzilla-Product: gpdf
Bugzilla-Component: general
Bugzilla-Version: unspecified
BugBuddy-GnomeVersion: 2.0 (2.8.0)
Description:
Description of the crash:
(gpdf:12751): Bonobo-CRITICAL **: file bonobo-control-frame.c: line 539
(bonobo_control_frame_control_deactivate): assertion
`frame->priv->control != CORBA_OBJECT_NIL' failed


Steps to reproduce the crash:
1. attempt to view a certain file
2. 
3. 

Expected Results:
An error dialog informing me that the file is not well-formed?

How often does this happen?
every time!

Additional Information:
Here's the file in binary form...

[richard@biostar music]$ od -x test.pdf
0000000 5025 4644 312d 322e 250a ecc7 a28f 330a
0000020 3020 6f20 6a62 3c0a 203c 542f 7079 2065
0000040 502f 6761 7365 2f20 694b 7364 5b20 5d0a
0000060 2f20 6f43 6e75 2074 0a30 3e3e 650a 646e
0000100 626f 0a6a 2031 2030 626f 0a6a 3c3c 542f
0000120 7079 2065 432f 7461 6c61 676f 2f20 6150
0000140 6567 2073 2033 2030 0a52 3e3e 650a 646e
0000160 626f 0a6a 2032 2030 626f 0a6a 3c3c 502f
0000200 6f72 7564 6563 2872 4e47 2055 6847 736f
0000220 7374 7263 7069 2074 2e37 3730 3e29 653e
0000240 646e 626f 0a6a 7278 6665 300a 3420 300a
0000260 3030 3030 3030 3030 2030 3536 3335 2035
0000300 2066 300a 3030 3030 3030 3630 2038 3030
0000320 3030 2030 206e 300a 3030 3030 3030 3131
0000340 2036 3030 3030 2030 206e 300a 3030 3030
0000360 3030 3130 2035 3030 3030 2030 206e 740a
0000400 6172 6c69 7265 3c0a 203c 532f 7a69 2065
0000420 2034 522f 6f6f 2074 2031 2030 2052 492f
0000440 666e 206f 2032 2030 0a52 3e3e 730a 6174
0000460 7472 7278 6665 310a 3636 250a 4525 464f
0000500 000a
0000501




------- Bug moved to this database by unknown@bugzilla.gnome.org 2005-03-25 09:45 -------


Unknown platform unknown. Setting to default platform "Other".
Unknown milestone "unknown" in product "gpdf".
   Setting to default milestone for this product, '---'
The original reporter of this bug does not have
   an account here. Reassigning to the person who moved
   it here, unknown@bugzilla.gnome.org.
   Previous reporter was r.oak@nospam.btopenworld.com.
Setting to default status "UNCONFIRMED".
Setting qa contact to the default for this product.
   This bug either had no qa contact or an invalid one.

Comment 1 Brent Smith (smitten) 2005-07-20 03:31:57 UTC
Man generating that file was a PITA. (od switches the endianness)

anyway here is the backtrace against gpdf 2.10.0:

(gpdf:22071): Bonobo-CRITICAL **: bonobo_control_frame_control_deactivate:
assertion `frame->priv->control != CORBA_OBJECT_NIL' failed

Backtrace was generated from '/usr/libexec/gnome-pdf-viewer'

(no debugging symbols found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".
(no debugging symbols found)
`system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols.
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1223629120 (LWP 22073)]
0xffffe410 in __kernel_vsyscall ()

Thread 1 (Thread -1223629120 (LWP 22073))

  • #0 __kernel_vsyscall
  • #1 __waitpid_nocancel
    from /lib/tls/libpthread.so.0
  • #2 libgnomeui_module_info_get
    from /usr/lib/libgnomeui-2.so.0
  • #3 <signal handler called>
  • #4 gpdf_thumbnails_view_new
  • #5 g_child_watch_add
    from /usr/lib/libglib-2.0.so.0
  • #6 g_main_depth
    from /usr/lib/libglib-2.0.so.0
  • #7 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #8 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #9 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #10 bonobo_main
    from /usr/lib/libbonobo-2.so.0
  • #11 bonobo_generic_factory_main_timeout
    from /usr/lib/libbonobo-2.so.0
  • #12 bonobo_generic_factory_main
    from /usr/lib/libbonobo-2.so.0
  • #13 main
  • #0 __kernel_vsyscall

Comment 2 Brent Smith (smitten) 2005-07-20 03:38:08 UTC
Created attachment 49438 [details]
the file which causes the crash

here is the file that was generated from the submitter's report
Comment 3 Brent Smith (smitten) 2005-07-20 03:42:17 UTC
stack trace is unique according to simple-dup-finger, marking new.

note that this also causes evince 0.3.2 to crash, I will be filing a bug
for that shortly as well...
Comment 4 Luis Villa 2005-07-20 03:45:52 UTC
Brent, if it causes poppler and gpdf to crash, the right thing to do is file a
bug against 'poppler' (the pdf library, culled from xpdf) in
bugzilla.freedesktop.org.
Comment 5 Luis Villa 2005-07-20 03:49:21 UTC
'causes evince and gpdf to crash', I meant.
Comment 6 Brent Smith (smitten) 2005-07-20 19:08:09 UTC
The error I get from acroread 7.0 is "The file cannot be opened because there
are no pages".
Comment 7 Olav Vitters 2006-01-29 01:11:14 UTC
Gpdf is no longer maintained, closing WONTFIX. Please use Evince for your pdf
viewing needs.

http://www.gnome.org/projects/evince/
Comment 8 Zack Weinberg 2006-01-29 18:30:35 UTC
evince 0.5.0 does not crash, but what it does do is unhelpful - it pops up its normal display, but with a gray box where the content area should be, all the controls grayed out, and "of 0" next to the page number type-in box.  It is not immediately obvious from this that the PDF has no content.  It should instead display some sort of diagnostic - I recommend something like firefox 1.5's nice in-the-page server error displays.  (So, for instance, the content area could have the yellow ! sign and the words "This PDF has no content.")

Recommend reopening, reassigning to evince, retitling "need more helpful diagnosis of PDFs with no pages."
Comment 9 Guilherme de Siqueira Pastore 2006-01-29 22:48:15 UTC
Done by someone else, and I've just fixed the title. Thanks.
Comment 10 Wouter Bolsterlee (uws) 2006-10-23 19:28:02 UTC
Would showing an error dialog be a good idea?
Comment 11 Zack Weinberg 2007-02-02 23:56:40 UTC
IMO this is not an error demanding the user's immediate attention.  Per comment #8, my recommendation is to display some sort of message in the content area, where the user will see it the next time they look at the window, but will not be bothered by it until then.
Comment 12 Carlos Garcia Campos 2008-06-16 17:53:31 UTC
Fixed in svn trunk now.