Evince crashes; Embedded font file is not a stream

Bug #36747 reported by Eric Feliksik
28
Affects Status Importance Assigned to Milestone
Poppler
Invalid
Medium
poppler (Ubuntu)
Fix Released
Medium
Ubuntu Desktop Bugs

Bug Description

Open the file attached. Go to page 2. Hit ctrl+a.

Evince crashes. The commandline-output is a mix of these errors:

Error: Embedded font file is not a stream
Error: Couldn't find a font for '(unnamed)'

Revision history for this message
Eric Feliksik (milouny) wrote : pdf document

The document that makes evince crash. Select page 2.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for your bug. I've forwarded it upstream: https://bugs.freedesktop.org/show_bug.cgi?id=6458

Changed in evince:
assignee: nobody → desktop-bugs
status: Unconfirmed → Confirmed
Revision history for this message
In , Sebastien Bacher (seb128) wrote :

That bug has been opened on
https://launchpad.net/distros/ubuntu/+source/evince/+bug/36747

"Open the file attached. Go to page 2. Hit ctrl+a.

Evince crashes. The commandline-output is a mix of these errors:

Error: Embedded font file is not a stream
Error: Couldn't find a font for '(unnamed)'

http://librarian.launchpad.net/1841466/IN3510_5.2.pdf
The document that makes evince crash. Select page 2."

Revision history for this message
In , Sebastien Bacher (seb128) wrote :
Download full text (3.3 KiB)

Backtrace of the crash:

(gdb) r IN3510_5.2.pdf
Starting program: /usr/bin/evince IN3510_5.2.pdf
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1229207872 (LWP 28782)]
[New Thread -1230894160 (LWP 28786)]
Error: Embedded font file is not a stream
Error: Couldn't find a font for '(unnamed)'
Error: Couldn't find a font for '(unnamed)'
Error: Couldn't find a font for '(unnamed)'
Error: Couldn't find a font for '(unnamed)'
Error: Couldn't find a font for '(unnamed)'
Error: Embedded font file is not a stream
Error: Couldn't find a font for '(unnamed)'
Error: Couldn't find a font for '(unnamed)'
Error: Couldn't find a font for '(unnamed)'
Error: Couldn't find a font for '(unnamed)'
Error: Couldn't find a font for '(unnamed)'

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1229207872 (LWP 28782)]
GooString (this=0x85c5cd0, str=0x878389a) at GooString.h:50
50 int getLength() { return length; }
Current language: auto; currently c++
(gdb) bt
#0 GooString (this=0x85c5cd0, str=0x878389a) at GooString.h:50
#1 0xb7936ab8 in SplashFontSrc::setFile (this=0x844c468, file=0x878389a,
    del=142096538) at GooString.h:38
#2 0xb7890682 in SplashOutputDev::updateFont (this=0x8432058, state=0x85cd648)
    at SplashOutputDev.cc:1017
#3 0xb790ca9a in TextSelectionPainter::visitWord (this=0xbf9423d4,
    word=0x85dff20, begin=0, end=4, selection=0xbf9422c8)
    at TextOutputDev.cc:3363
#4 0xb790ccba in TextWord::visitSelection (this=0x85dff20,
    visitor=0xbf9423d4, selection=0xbf9422c8) at TextOutputDev.cc:3400
#5 0xb790cee8 in TextLine::visitSelection (this=0x85dfbc8,
    visitor=0xbf9423d4, selection=0xbf9422c8) at TextOutputDev.cc:3438
#6 0xb7912790 in TextBlock::visitSelection (this=0x846e7d0,
    visitor=0xbf9423d4, selection=0xbf942360) at TextOutputDev.cc:3510
#7 0xb7912948 in TextPage::visitSelection (this=0x85e7858,
    visitor=0xbf9423d4, selection=0xbf942578) at TextOutputDev.cc:3583
#8 0xb7913e8c in TextPage::drawSelection (this=0x85e7858, out=0x878389a,
    scale=544.45186188734351, rotation=142096538, selection=0x878389a,
    glyph_color=0x878389a, box_color=0x878389a) at TextOutputDev.cc:3596
#9 0xb7913ef8 in TextOutputDev::drawSelection (this=0x878389a, out=0x878389a,
    scale=544.45186188734351, rotation=142096538, selection=0x878389a,
    glyph_color=0x878389a, box_color=0x878389a) at TextOutputDev.cc:4180
#10 0xb79890e5 in poppler_page_render_selection ()
---Type <return> to continue, or q <return> to quit---
   from /usr/lib/libpoppler-glib.so.1
#11 0x080929f3 in pdf_selection_render_selection ()
#12 0x0809047c in ev_selection_render_selection ()
#13 0x0806a6e8 in ev_pixbuf_cache_get_selection_pixbuf ()
#14 0x0806eeac in ev_view_can_zoom_out ()
#15 0xb72b5540 in _gtk_marshal_BOOLEAN__BOXED (closure=0x812f1e0,
    return_value=0xbf9429c0, n_param_values=2, param_values=0xbf942abc,
    invocation_hint=0xbf9429ac, marshal_data=0xbf942dac) at gtkmarshalers.c:83
#16 0xb6e0816f in g_type_class_meta_marshal ()
   from /usr/lib/libgobject-2.0.so.0
#17 0xb6e0879f in g_closure_invoke () from /usr/lib/libgobject-2...

Read more...

Revision history for this message
In , Albert Astals Cid (aacid) wrote :

Seems more a TextSelectionPainter problem for me

Revision history for this message
Martin Pitt (pitti) wrote :

Can you please upgrade to this version of the poppler library and check again?

 poppler (0.5.1-0ubuntu7) dapper; urgency=low
 .
   * Add debian/patches/003_refcount.patch: Fix reference counting. Thanks to
     Gary Coady for the patch! Closes: LP#24970

Revision history for this message
Eric Feliksik (milouny) wrote :

Unfortunately libpoppler1 version 0.5.1-0ubuntu7 does *not* fix the issue.

Changed in poppler:
status: Unconfirmed → Confirmed
Revision history for this message
Eric Feliksik (milouny) wrote :

Problem apparently resolved in poppler 0.6

Changed in poppler:
status: Confirmed → Fix Released
Revision history for this message
In , Brad Hards (bradh) wrote :

Doesn't appear to crash with evince (using 0.5.4), or with top-of-tree head.

The Ubuntu bug-tracker (see original report for link) for bug36747 also contains a comment that it appears to work with 0.6.

I'm closing this for now - please reopen if you can reproduce this problem

Changed in poppler:
status: Confirmed → Invalid
Changed in poppler:
importance: Unknown → Medium
Changed in poppler:
importance: Medium → Unknown
Changed in poppler:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.