[Okular-devel] [okular] [Bug 248852] okular crashes on loading dvi with eps

Leo Savernik l.savernik at aon.at
Thu May 29 13:06:01 UTC 2014


https://bugs.kde.org/show_bug.cgi?id=248852

--- Comment #9 from Leo Savernik <l.savernik at aon.at> ---
I installed bitmap fonts like this. YMMV under different distributions.

dpkg-reconfigure x-server-xorg
# Select: Support bitmap fonts
apt-get install xfonts-100dpi-transcoded xfonts-75dpi-transcoded
xfonts-bolkhov-75dpi
rm /etc/fonts/conf.d/70-no-bitmaps.conf
ln -s ../conf.avail/70-yes-bitmaps.conf /etc/fonts/conf.d/70-yes-bitmaps.conf
cat <<EOF > /etc/fonts/conf.avail/71-fixed-bitmaps.conf
<?xml version="1.0"?>
 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
 <fontconfig>
 <!-- Enabled Fixed bitmap fonts -->
 <selectfont>
 <acceptfont>
 <pattern>
 <patelt name="family"><string>Fixed</string></patelt>
 </pattern>
 </acceptfont>
 </selectfont>
 </fontconfig>
EOF
ln -s ../conf.avail/71-fixed-bitmaps.conf
/etc/fonts/conf.d/71-fixed-bitmaps.conf
dpkg-reconfigure fontconfig-config fontconfig
# Restart X11 here

Here are the steps I performed to rebuild okular with the patch

mkdir okular
cd okular
apt-get source okular
sudo apt-get build-dep okular
# downloaded attachment http://bugsfiles.kde.org/attachment.cgi?id=86571 as
fix-font-threading.diff
cd kdegraphics-4.4.5
( cd okular ; patch -p1 < ../../fix-font-threading.diff )
dch -v 4:4.4.5-0ubuntu1.1-local0
dpkg-buildpackage -us -uc
cd ..

# installing
sudo dpkg -i okular_4.4.5-0ubuntu1.1-local0_i386.deb
okular-extra-backends_4.4.5-0ubuntu1.1-local0_i386.deb
kdegraphics-dbg_4.4.5-0ubuntu1.1-local0_i386.deb


Okular is still unstable. It looks like nothing changed. Here's the backtrace.
In X11 any drawing operations outside of the GUI thread are disallowed. The
DVI-renderer probably voilates that invariant.

Log output (stdout/stderr):

okular: ../../src/xcb_io.c:452: _XReply: Zusicherung »!dpy->xcb->reply_data«
nicht erfüllt.
KCrash: Application 'okular' crashing...
sock_file=/home/user/.kde/socket-local/kdeinit4__0
QSocketNotifier: Invalid socket 20 and type 'Read', disabling...

Backtrace:

Thread 4 (Thread 0xb39bab70 (LWP 14120)):
[KCrash Handler]
#6  0x009c6422 in __kernel_vsyscall ()
#7  0x02b21651 in raise () from /lib/tls/i686/cmov/libc.so.6
#8  0x02b24a82 in abort () from /lib/tls/i686/cmov/libc.so.6
#9  0x02b1a718 in __assert_fail () from /lib/tls/i686/cmov/libc.so.6
#10 0x089831d2 in _XReply (dpy=0x9f62c00, rep=0xb39b6ce0, extra=0, discard=0)
at ../../src/xcb_io.c:452
#11 0x0895cd59 in XListFonts (dpy=0x9f62c00, pattern=0xa314bc8
"-*-Helvetica-*-*-*-*-*-*-*-*-*-*-*-*", maxNames=65535, actualCount=0xb39b6df8)
at ../../src/FontNames.c:60
#12 0x01398289 in loadXlfds (reqFamily=<value optimized out>,
encoding_id=<value optimized out>) at text/qfontdatabase_x11.cpp:627
#13 0x01398b20 in load (family=..., script=<value optimized out>,
forceXLFD=true) at text/qfontdatabase_x11.cpp:1247
#14 0x01399cc5 in match (script=<value optimized out>, request=...,
family_name=..., foundry_name=..., force_encoding_id=-1, desc=0xb39b6f9c,
blacklistedFamilies=..., forceXLFD=<value optimized out>)
    at text/qfontdatabase.cpp:1362
#15 0x0139d3ff in QFontDatabase::loadXlfd (screen=0, script=0, request=...,
force_encoding_id=-1) at text/qfontdatabase_x11.cpp:1819
#16 0x0139f2ba in QFontDatabase::load (d=0xa2e36f0, script=0) at
text/qfontdatabase_x11.cpp:1969
#17 0x013775c0 in QFontPrivate::engineForScript (this=0xa2e36f0, script=0) at
text/qfont.cpp:270
#18 0x0138f017 in QFontMetricsF::leading (this=0xb39b9bc8) at
text/qfontmetrics.cpp:1188
#19 0x012a4f0a in qt_format_text (fnt=..., _r=..., tf=132, option=0x0, str=...,
brect=0x0, tabstops=0, tabarraylen=0, painter=0xa1a3d80) at
painting/qpainter.cpp:7719
#20 0x012a620a in QPainter::drawText (this=0xa1a3d80, r=..., flags=132,
str=..., br=0x0) at painting/qpainter.cpp:5788
#21 0x04dd2744 in dviRenderer::epsf_special (this=0xa1d50a8, cp=...) at
../../../../okular/generators/dvi/special.cpp:431
#22 0x04dd85ec in dviRenderer::applicationDoSpecial (this=0xa1d50a8,
cp=0xa2d9968 "PSfile=\"epsdvi.eps\" llx=0 lly=0 urx=73 ury=42 rwi=730 ") at
../../../../okular/generators/dvi/special.cpp:553
#23 0x04dc8b7e in dviRenderer::draw_part (this=0xa1d50a8,
current_dimconv=16.604400166044002, is_vfmacro=false) at
../../../../okular/generators/dvi/dviRenderer_draw.cpp:536
#24 0x04dc9c93 in dviRenderer::draw_page (this=0xa1d50a8) at
../../../../okular/generators/dvi/dviRenderer_draw.cpp:649
#25 0x04dc5e94 in dviRenderer::drawPage (this=0xa1d50a8, page=0xa1f7ad8) at
../../../../okular/generators/dvi/dviRenderer.cpp:175
#26 0x04dc24ac in dviRenderer::getText (this=0xa1d50a8, page=0xa1f7ad8) at
../../../../okular/generators/dvi/dviRenderer.cpp:264
#27 0x04dbe76e in DviGenerator::textPage (this=0xa1d3f48, page=0xa2789a0) at
../../../../okular/generators/dvi/generator_dvi.cpp:298
#28 0x097ec38a in ?? () from /usr/lib/libokularcore.so.1
#29 0x00de532e in QThreadPrivate::start (arg=0xa2bf738) at
thread/qthread_unix.cpp:248
#30 0x0070096e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#31 0x02bc4a4e in clone () from /lib/tls/i686/cmov/libc.so.6

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list