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

Leo Savernik l.savernik at aon.at
Wed Sep 1 11:52:11 CEST 2010


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





--- Comment #3 from Leo Savernik <l savernik aon at>  2010-09-01 11:52:06 ---
Yes, it does. The error message looks different, and I get no bt. My Qt 
version is 4.6.2, fwiw.


okular --graphicssystem native epsdvi.dvi

KCrash: Application 'okular' crashing...
Fatal Error: Accessed global static 'KGlobalPrivate *globalData()' after 
destruction. Defined at ../../kdecore/kernel/kglobal.cpp:116
Unable to start Dr. Konqi

Then I tried

gdb okular
set args --graphicssystem native epsdvi.dvi
r

and got:


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb3dffb70 (LWP 3999)]
0x00a44bc6 in QDBusAdaptorConnector::relaySlot (this=0x8131d40,
    argv=0xb3dfb9c8) at qdbusabstractadaptor.cpp:268
268     qdbusabstractadaptor.cpp: No such file or directory.
        in qdbusabstractadaptor.cpp
(gdb) bt
#0  0x00a44bc6 in QDBusAdaptorConnector::relaySlot (this=0x8131d40,
    argv=0xb3dfb9c8) at qdbusabstractadaptor.cpp:268
#1  0x00a45564 in QDBusAdaptorConnector::qt_metacall (this=0x8131d40,
    _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0xb3dfb9c8)
    at qdbusabstractadaptor.cpp:364
#2  0x00be8c9a in QMetaObject::metacall (object=0x8131d40, cl=3017783752,
    idx=4, argv=0xb3dfb9c8) at kernel/qmetaobject.cpp:237
#3  0x00bf73d5 in QMetaObject::activate (sender=0x8136c48, m=0xcf2250,
    local_signal_index=0, argv=0xb3dfb9c8) at kernel/qobject.cpp:3293
#4  0x00bf77d3 in QObject::destroyed (this=0x8136c48, _t1=0x8136c48)
    at .moc/release-shared/moc_qobject.cpp:149
#5  0x00bf9f9a in ~QObject (this=0x8136c48, __in_chrg=<value optimized out>)
    at kernel/qobject.cpp:869
#6  0x00a44ea8 in ~QDBusAbstractAdaptor (this=0x8136c48,
    __in_chrg=<value optimized out>) at qdbusabstractadaptor.cpp:149
#7  0x0032880a in ~KBookmarkManagerAdaptor (this=0x8136c48,
    __in_chrg=<value optimized out>)
    at ../../kio/bookmarks/kbookmarkmanageradaptor_p.h:28
#8  0x00bf318f in QObjectPrivate::deleteChildren (this=0x81324f0)
    at kernel/qobject.cpp:1986
#9  0x00bfa29d in ~QObject (this=0x812c948, __in_chrg=<value optimized out>)
    at kernel/qobject.cpp:975
#10 0x00322598 in ~KBookmarkManager (this=0x812c948,
    __in_chrg=<value optimized out>)
    at ../../kio/bookmarks/kbookmarkmanager.cc:326
#11 0x0032249e in qDeleteAll<QList<KBookmarkManager*>::iterator> ()
    at /usr/include/qt4/QtCore/qalgorithms.h:322
#12 ~KBookmarkManagerList () at ../../kio/bookmarks/kbookmarkmanager.cc:53
#13 destroy () at ../../kio/bookmarks/kbookmarkmanager.cc:59
#14 0x00221fcb in ~KCleanUpGlobalStatic (this=0x3ee6ec,
    __in_chrg=<value optimized out>) at ../../kdecore/kernel/kglobal.h:62
#15 0x0189a1bf in ?? () from /lib/tls/i686/cmov/libc.so.6
#16 0x0189a22f in exit () from /lib/tls/i686/cmov/libc.so.6
#17 0x00eaf5fb in qt_xio_errhandler () at kernel/qapplication_x11.cpp:734
#18 0x005cebfa in KApplication::xioErrhandler (this=0xbffff1e0, dpy=0x8086eb0)
    at ../../kdeui/kernel/kapplication.cpp:408
#19 0x005cec36 in kde_xio_errhandler (dpy=0x8086eb0)
    at ../../kdeui/kernel/kapplication.cpp:125
#20 0x01c6ec16 in _XIOError (dpy=0x812a8c0) at ../../src/XlibInt.c:3138
#21 0x01c771a1 in _XReply (dpy=0x8086eb0, rep=0xb3dfbce0, extra=0, discard=0)
    at ../../src/xcb_io.c:522
#22 0x01c50d59 in XListFonts (dpy=0x8086eb0,
    pattern=0x82bdf08 "-*-Helvetica-*-*-*-*-*-*-*-*-*-*-*-*", maxNames=65535,
    actualCount=0xb3dfbdf8) at ../../src/FontNames.c:60
#23 0x01094289 in loadXlfds (reqFamily=<value optimized out>,
    encoding_id=<value optimized out>) at text/qfontdatabase_x11.cpp:627
#24 0x01094b20 in load (family=..., script=<value optimized out>,
    forceXLFD=true) at text/qfontdatabase_x11.cpp:1247
#25 0x01095cc5 in match (script=<value optimized out>, request=...,
    family_name=..., foundry_name=..., force_encoding_id=-1, desc=0xb3dfbf9c,
    blacklistedFamilies=..., forceXLFD=<value optimized out>)
    at text/qfontdatabase.cpp:1362
#26 0x010993ff in QFontDatabase::loadXlfd (screen=0, script=0, request=...,
    force_encoding_id=-1) at text/qfontdatabase_x11.cpp:1819
#27 0x0109b2ba in QFontDatabase::load (d=0x83890d8, script=0)
    at text/qfontdatabase_x11.cpp:1969
#28 0x010735c0 in QFontPrivate::engineForScript (this=0x83890d8, script=0)
    at text/qfont.cpp:270
#29 0x0108b017 in QFontMetricsF::leading (this=0xb3dfebc8)
    at text/qfontmetrics.cpp:1188
#30 0x00fa0f0a in qt_format_text (fnt=..., _r=..., tf=132, option=0x0,
    str=..., brect=0x0, tabstops=0, tabarraylen=0, painter=0x833ae58)
    at painting/qpainter.cpp:7719
#31 0x00fa220a in QPainter::drawText (this=0x833ae58, r=..., flags=132,
    str=..., br=0x0) at painting/qpainter.cpp:5788
#32 0x026c3547 in dviRenderer::epsf_special (this=0x82ebfd0, cp=...)
    at ../../../../okular/generators/dvi/special.cpp:425
#33 0x026c95ec in dviRenderer::applicationDoSpecial (this=0x82ebfd0,
    cp=0x8323900 "PSfile=\"epsdvi.eps\" llx=0 lly=0 urx=73 ury=42 rwi=730 ")
    at ../../../../okular/generators/dvi/special.cpp:546
#34 0x026b9b0e in dviRenderer::draw_part (this=0x82ebfd0,
    current_dimconv=16.604400166044002, is_vfmacro=false)
    at ../../../../okular/generators/dvi/dviRenderer_draw.cpp:536
#35 0x026bac23 in dviRenderer::draw_page (this=0x82ebfd0)
    at ../../../../okular/generators/dvi/dviRenderer_draw.cpp:649
#36 0x026b6e24 in dviRenderer::drawPage (this=0x82ebfd0, page=0x8349f38)
    at ../../../../okular/generators/dvi/dviRenderer.cpp:175
#37 0x026b343c in dviRenderer::getText (this=0x82ebfd0, page=0x8349f38)
    at ../../../../okular/generators/dvi/dviRenderer.cpp:264
#38 0x026af6fe in DviGenerator::textPage (this=0x82ecfc8, page=0x833abb8)
    at ../../../../okular/generators/dvi/generator_dvi.cpp:298
#39 0x024abf4a in Okular::TextPageGenerationThread::run (this=0xb3e00468)
    at ../../okular/core/generator_p.cpp:103
#40 0x00ae132e in QThreadPrivate::start (arg=0xb3e00468)
    at thread/qthread_unix.cpp:248
#41 0x01dc796e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#42 0x01938a4e in clone () from /lib/tls/i686/cmov/libc.so.6


After that I tried

gdb okular
set args --graphicssystem raster epsdvi.dvi
r

Which resulted in the same backtrace as above.

After that I tried

gdb okular
set args --graphicssystem doesnotexist epsdvi.dvi
r

resulting in

Program received signal SIGABRT, Aborted.
[Switching to Thread 0xb42f4b70 (LWP 4042)]
0x0012d422 in __kernel_vsyscall ()
(gdb) bt
#0  0x0012d422 in __kernel_vsyscall ()
#1  0x01895651 in raise () from /lib/tls/i686/cmov/libc.so.6
#2  0x01898a82 in abort () from /lib/tls/i686/cmov/libc.so.6
#3  0x0188e718 in __assert_fail () from /lib/tls/i686/cmov/libc.so.6
#4  0x01c771d2 in _XReply (dpy=0x8086ee0, rep=0xb42f0ce0, extra=0, discard=0)
    at ../../src/xcb_io.c:452
#5  0x01c50d59 in XListFonts (dpy=0x8086ee0,
    pattern=0xb3635b00 "-*-Helvetica-*-*-*-*-*-*-*-*-*-*-*-*", maxNames=65535,
    actualCount=0xb42f0df8) at ../../src/FontNames.c:60
#6  0x01094289 in loadXlfds (reqFamily=<value optimized out>,
    encoding_id=<value optimized out>) at text/qfontdatabase_x11.cpp:627
#7  0x01094b20 in load (family=..., script=<value optimized out>,
    forceXLFD=true) at text/qfontdatabase_x11.cpp:1247
#8  0x01095cc5 in match (script=<value optimized out>, request=...,
    family_name=..., foundry_name=..., force_encoding_id=-1, desc=0xb42f0f9c,
    blacklistedFamilies=..., forceXLFD=<value optimized out>)
    at text/qfontdatabase.cpp:1362
#9  0x010993ff in QFontDatabase::loadXlfd (screen=0, script=0, request=...,
    force_encoding_id=-1) at text/qfontdatabase_x11.cpp:1819
#10 0x0109b2ba in QFontDatabase::load (d=0xb3614700, script=0)
    at text/qfontdatabase_x11.cpp:1969
#11 0x010735c0 in QFontPrivate::engineForScript (this=0xb3614700, script=0)
    at text/qfont.cpp:270
#12 0x0108b017 in QFontMetricsF::leading (this=0xb42f3bc8)
    at text/qfontmetrics.cpp:1188
#13 0x00fa0f0a in qt_format_text (fnt=..., _r=..., tf=132, option=0x0,
    str=..., brect=0x0, tabstops=0, tabarraylen=0, painter=0xb360dff0)
    at painting/qpainter.cpp:7719
#14 0x00fa220a in QPainter::drawText (this=0xb360dff0, r=..., flags=132,
    str=..., br=0x0) at painting/qpainter.cpp:5788
#15 0x026c3547 in dviRenderer::epsf_special (this=0x82978a8, cp=...)
    at ../../../../okular/generators/dvi/special.cpp:425
#16 0x026c95ec in dviRenderer::applicationDoSpecial (this=0x82978a8,
    cp=0xb3604ad0 "PSfile=\"epsdvi.eps\" llx=0 lly=0 urx=73 ury=42 rwi=730 ")
    at ../../../../okular/generators/dvi/special.cpp:546
#17 0x026b9b0e in dviRenderer::draw_part (this=0x82978a8,
    current_dimconv=16.604400166044002, is_vfmacro=false)
    at ../../../../okular/generators/dvi/dviRenderer_draw.cpp:536
#18 0x026bac23 in dviRenderer::draw_page (this=0x82978a8)
    at ../../../../okular/generators/dvi/dviRenderer_draw.cpp:649
#19 0x026b6e24 in dviRenderer::drawPage (this=0x82978a8, page=0xb3600ae8)
    at ../../../../okular/generators/dvi/dviRenderer.cpp:175
#20 0x026b343c in dviRenderer::getText (this=0x82978a8, page=0xb3600ae8)
    at ../../../../okular/generators/dvi/dviRenderer.cpp:264
#21 0x026af6fe in DviGenerator::textPage (this=0x82eca50, page=0x833e7d0)
    at ../../../../okular/generators/dvi/generator_dvi.cpp:298
#22 0x024abf4a in Okular::TextPageGenerationThread::run (this=0x8344748)
    at ../../okular/core/generator_p.cpp:103
#23 0x00ae132e in QThreadPrivate::start (arg=0x8344748)
    at thread/qthread_unix.cpp:248
#24 0x01dc796e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#25 0x01938a4e in clone () from /lib/tls/i686/cmov/libc.so.6

Here's another one I received with using graphicssystem native

X Error: BadIDChoice (invalid resource ID chosen for this connection) 14
  Major opcode: 53 (X_CreatePixmap)
  Resource id:  0x54000be
X Error: BadIDChoice (invalid resource ID chosen for this connection) 14
  Extension:    148 (RENDER)
  Minor opcode: 4 (RenderCreatePicture)
  Resource id:  0x54000bf
okular: ../../src/xcb_io.c:249: process_responses: Assertion `(((long) (dpy-
>last_request_read) - (long) (dpy->request)) <= 0)' failed.
Program received signal SIGABRT, Aborted.
0x0012d422 in __kernel_vsyscall ()
#0  0x0012d422 in __kernel_vsyscall ()
#1  0x01895651 in raise () from /lib/tls/i686/cmov/libc.so.6
#2  0x01898a82 in abort () from /lib/tls/i686/cmov/libc.so.6
#3  0x0188e718 in __assert_fail () from /lib/tls/i686/cmov/libc.so.6
#4  0x01c76a8d in process_responses (dpy=0x8086eb0,
    wait_for_first_event=<value optimized out>, current_error=0x0,
    current_request=0) at ../../src/xcb_io.c:249
#5  0x01c77356 in _XEventsQueued (dpy=0x8086eb0, mode=2)
    at ../../src/xcb_io.c:263
#6  0x01c5fadf in XEventsQueued (dpy=0x8086eb0, mode=2)
    at ../../src/Pending.c:44
#7  0x00eee305 in x11EventSourceCheck (s=0x80765e8)
    at kernel/qguieventdispatcher_glib.cpp:87
#8  0x01efe799 in g_main_context_check () from /lib/libglib-2.0.so.0
#9  0x01eff0ce in ?? () from /lib/libglib-2.0.so.0
#10 0x01eff4b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#11 0x00c0f60f in QEventDispatcherGlib::processEvents (this=0x805eb60,
    flags=...) at kernel/qeventdispatcher_glib.cpp:414
#12 0x00eee135 in QGuiEventDispatcherGlib::processEvents (this=0x805eb60,
    flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#13 0x00be2059 in QEventLoop::processEvents (this=0xbffff0e4, flags=DWARF-2 
expression error: DW_OP_reg operations must be used either alone or in 
conjuction with DW_OP_piece.
)
    at kernel/qeventloop.cpp:149
#14 0x00be24aa in QEventLoop::exec (this=0xbffff0e4, flags=...)
    at kernel/qeventloop.cpp:201
#15 0x00be669f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#16 0x00e2e577 in QApplication::exec () at kernel/qapplication.cpp:3579
#17 0x0804ef09 in main (argc=4, argv=0xbffff3d4)
    at ../../../okular/shell/main.cpp:82


Interestingly, sometimes the Diagram is displayed before the program freezes 
(in gdb), and sometimes okular doesn't even crash.

Seems pretty fscked up.

I may note that the eps contains text in Helvetica which is a bitmap font on 
my system. Two of the traces hint this might be the source of trouble.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Okular-devel mailing list