Bug 6458

Summary: Evince crashes; Embedded font file is not a stream
Product: poppler Reporter: Sebastien Bacher <seb128>
Component: splash backendAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: high    
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Sebastien Bacher 2006-04-01 22:44:55 UTC
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."
Comment 1 Sebastien Bacher 2006-04-01 22:45:21 UTC
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.0.so.0
#18 0xb6e179d8 in signal_emit_unlocked_R () from /usr/lib/libgobject-2.0.so.0
#19 0xb6e18856 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
Comment 2 Albert Astals Cid 2006-04-01 23:38:13 UTC
Seems more a TextSelectionPainter problem for me
Comment 3 Brad Hards 2007-12-25 19:58:36 UTC
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

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.