Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#4409 closed defect (fixed)

eps graphic preview crashes when kde4libs is installed

Reported by: ndbecker2@… Owned by: nobody@…
Priority: high Milestone:
Component: converters Version: 1.5.2
Severity: critical Keywords: crash
Cc: j.spitzmueller@…, rdieter@…, mfg@…, hudsonjr@…, mstarkey@…

Description

Description of problem:

I just installed the new texlive on F8, now lyx crashes in preview.
rpm -q lyx
lyx-1.5.2-1.fc8.x86_64

<unknown program name>(14681)/ EPSHandler::read: kimgio EPS: starting...

<unknown program name>(14681)/ seekToCodeStart: kimgio EPS: normal EPS file
<unknown program name>(14681)/ bbox: kimgio EPS BBOX: 40 51 722 576
Fatal error: you need to have a KComponentData object before
you do anything that requires it! Examples of this are config
objects, standard directories or translations.

lyx: SIGSEGV signal caught
Sorry, you have found a bug in LyX. Please read the bug-reporting instructions
in Help->Introduction and send us a bug report, if necessary. Thanks !
Bye.

Change History (28)

comment:1 by ndbecker2@…, 16 years ago

Looks like I can reproduce this by attempting to insert an EPS graphics.
Inserting a pdf doesn't seem to crash it.

comment:2 by Uwe Stöhr, 16 years ago

Keywords: crash added
Milestone: 1.5.4
Severity: majorcritical

Seems to be a Fedora 8 only problem.

comment:3 by Juergen Spitzmueller, 16 years ago

Milestone: 1.5.41.5.3

confirmed by José.

comment:4 by Juergen Spitzmueller, 16 years ago

Backtrace from José:

/lib/libc.so.6[0x73dac1]
/lib/libc.so.6(cfree+0x90)[0x7410f0]
/usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0xbf46f1]
/home/jamatos/lyx/stable/lyx-1.5.x/src/lyx[0x8998167]
/home/jamatos/lyx/stable/lyx-1.5.x/src/lyx[0x8997f2c]
/home/jamatos/lyx/stable/lyx-1.5.x/src/lyx[0x89474cd]
/home/jamatos/lyx/stable/lyx-1.5.x/src/lyx[0x894e60a]
/home/jamatos/lyx/stable/lyx-1.5.x/src/lyx[0x894e90e]
/home/jamatos/lyx/stable/lyx-1.5.x/src/lyx[0x8964987]
/home/jamatos/lyx/stable/lyx-1.5.x/src/lyx[0x8964dab]
/home/jamatos/lyx/stable/lyx-1.5.x/src/lyx[0x8964d82]
/home/jamatos/lyx/stable/lyx-1.5.x/src/lyx[0x8961cc6]
/home/jamatos/lyx/stable/lyx-1.5.x/src/lyx[0x8961cfc]
/lib/libc.so.6(exit+0xee)[0x70063e]
/usr/lib/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x9c)[0x6cdc43c]
/usr/lib/libQtCore.so.4(_Z6qFatalPKcz+0x68)[0x6cdc4f8]
/usr/lib/libkdecore.so.5(_ZN7KGlobal13mainComponentEv+0xb3)[0xec16a3]
/usr/lib/kde4/plugins/imageformats/kimg_eps.so[0x1f094c]
/usr/lib/libQtGui.so.4(_ZN12QImageReader4readEP6QImage+0x173)[0x6fd6003]
/usr/lib/libQtGui.so.4(_ZN12QImageReader4readEv+0x37)[0x6fd65c7]
/usr/lib/libQtGui.so.4(_ZN6QImage4loadERK7QStringPKc+0x6b)[0x6fca80b]
/home/jamatos/lyx/stable/lyx-1.5.x/src/lyx[0x886f647]
/home/jamatos/lyx/stable/lyx-1.5.x/src/lyx[0x893044d]
/home/jamatos/lyx/stable/lyx-1.5.x/src/lyx[0x8930966]
/home/jamatos/lyx/stable/lyx-1.5.x/src/lyx[0x8930f88]
/home/jamatos/lyx/stable/lyx-1.5.x/src/lyx[0x8930fcb]
/home/jamatos/lyx/stable/lyx-1.5.x/src/lyx[0x893bd6e]
/home/jamatos/lyx/stable/lyx-1.5.x/src/lyx[0x893d932]
/home/jamatos/lyx/stable/lyx-1.5.x/src/lyx[0x80b13d3]
/home/jamatos/lyx/stable/lyx-1.5.x/src/lyx[0x80cc944]
/home/jamatos/lyx/stable/lyx-1.5.x/src/lyx[0x8697983]
/home/jamatos/lyx/stable/lyx-1.5.x/src/lyx[0x86ea0c0]
/usr/lib/libQtCore.so.4(_ZN7QObject5eventEP6QEvent+0x115)[0x6d94745]
/usr/lib/libQtGui.so.4
(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0x180)[0x6f47ac0]
/usr/lib/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0xa9)
[0x6f4da09]
/home/jamatos/lyx/stable/lyx-1.5.x/src/lyx[0x86f0548]
/usr/lib/libQtCore.so.4
(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x6b)[0x6d8675b]
/usr/lib/libQtCore.so.4[0x6da9fdd]
/usr/lib/libQtCore.so.4[0x6da7740]
/lib/libglib-2.0.so.0(g_main_context_dispatch+0x17c)[0x4cb05c]
/lib/libglib-2.0.so.0[0x4ce49f]
/lib/libglib-2.0.so.0(g_main_context_iteration+0x65)[0x4cea05]
/usr/lib/libQtCore.so.4
(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x58)
[0x6da7ca8]
/usr/lib/libQtGui.so.4[0x6fc0fe5]
/usr/lib/libQtCore.so.4
(_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE+0x31)
[0x6d85c81]
/usr/lib/libQtCore.so.4
(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0x7c)[0x6d85d8c]
/usr/lib/libQtCore.so.4(_ZN16QCoreApplication4execEv+0xaa)[0x6d8813a]
/usr/lib/libQtGui.so.4(_ZN12QApplication4execEv+0x27)[0x6f470c7]
/home/jamatos/lyx/stable/lyx-1.5.x/src/lyx[0x86ef572]
/home/jamatos/lyx/stable/lyx-1.5.x/src/lyx[0x82d0264]
/home/jamatos/lyx/stable/lyx-1.5.x/src/lyx(_ZN9QListView10paintEventEP11QPaintEvent+0x51e)
[0x80694be]
/lib/libc.so.6(libc_start_main+0xe0)[0x6ea390]
/home/jamatos/lyx/stable/lyx-1.5.x/src/lyx(_ZN11QListWidget9dropEventEP10QDropEvent+0x2d1)
[0x8069331]
======= Memory map: ========
00110000-00111000 r-xp 00110000 00:00 0 [vdso]
00111000-00128000 r-xp 00000000 fd:00 17467093 /usr/lib/libaudio.so.2.4
00128000-00129000 rwxp 00016000 fd:00 17467093 /usr/lib/libaudio.so.2.4
00129000-00133000 r-xp 00000000 fd:00 2327171 /lib/libnss_files-2.7.so
00133000-00134000 r-xp 00009000 fd:00 2327171 /lib/libnss_files-2.7.so
00134000-00135000 rwxp 0000a000 fd:00 2327171 /lib/libnss_files-2.7.so
00135000-00137000 r-xp 00000000 fd:00 17545332 /usr/lib/gconv/UTF-16.so
00137000-00138000 r-xp 00001000 fd:00 17545332 /usr/lib/gconv/UTF-16.so
00138000-00139000 rwxp 00002000 fd:00 17545332 /usr/lib/gconv/UTF-16.so
00139000-0013e000 r-xp 00000000 fd:00
164032 /usr/lib/qt4/plugins/imageformats/libqgif.so
0013e000-0013f000 rwxp 00004000 fd:00
164032 /usr/lib/qt4/plugins/imageformats/libqgif.so
0013f000-00147000 r-xp 00000000 fd:00
164036 /usr/lib/qt4/plugins/imageformats/libqjpeg.so
00147000-00148000 rwxp 00007000 fd:00
164036 /usr/lib/qt4/plugins/imageformats/libqjpeg.so
00148000-00169000 r-xp 00000000 fd:00 17472861 /usr/lib/libjpeg.so.62.0.0
00169000-0016a000 rwxp 00020000 fd:00 17472861 /usr/lib/libjpeg.so.62.0.0
0016a000-0016f000 r-xp 00000000 fd:00
164041 /usr/lib/qt4/plugins/imageformats/libqmng.so
0016f000-00170000 rwxp 00004000 fd:00
164041 /usr/lib/qt4/plugins/imageformats/libqmng.so
00170000-001d8000 r-xp 00000000 fd:00 17472865 /usr/lib/libmng.so.1.0.0
001d8000-001db000 rwxp 00067000 fd:00 17472865 /usr/lib/libmng.so.1.0.0
001db000-001de000 r-xp 00000000 fd:00
164043 /usr/lib/qt4/plugins/imageformats/libqsvg.so
001de000-001df000 rwxp 00002000 fd:00
164043 /usr/lib/qt4/plugins/imageformats/libqsvg.so
001df000-001e3000 r-xp 00000000 fd:00
164048 /usr/lib/qt4/plugins/imageformats/libqtiff.so
001e3000-001e4000 rwxp 00003000 fd:00
164048 /usr/lib/qt4/plugins/imageformats/libqtiff.so
001e4000-001eb000 r-xp 00000000 fd:00
17505111 /usr/lib/kde4/plugins/imageformats/kimg_dds.so
001eb000-001ec000 rwxp 00006000 fd:00
17505111 /usr/lib/kde4/plugins/imageformats/kimg_dds.so
001ec000-001f3000 r-xp 00000000 fd:00
17505113 /usr/lib/kde4/plugins/imageformats/kimg_eps.so
001f3000-001f4000 rwxp 00006000 fd:00
17505113 /usr/lib/kde4/plugins/imageformats/kimg_eps.so
001f4000-001f8000 r-xp 00000000 fd:00
17505115 /usr/lib/kde4/plugins/imageformats/kimg_exr.so
001f8000-001f9000 rwxp 00004000 fd:00
17505115 /usr/lib/kde4/plugins/imageformats/kimg_exr.so
001fc000-00200000 r-xp 00000000 fd:00 2327416 /lib/libgthre
Program received signal SIGABRT, Aborted.
[Switching to Thread -1208838448 (LWP 22136)]
0x00110402 in
kernel_vsyscall ()
(gdb) pplatex: Copy data to 1lyxpreview.dvi

(gdb) bt
#0 0x00110402 in kernel_vsyscall ()
#1 0x006fd690 in raise () from /lib/libc.so.6
#2 0x006fef91 in abort () from /lib/libc.so.6
#3 0x007359eb in
libc_message () from /lib/libc.so.6
#4 0x0073dac1 in _int_free () from /lib/libc.so.6
#5 0x007410f0 in free () from /lib/libc.so.6
#6 0x00bf46f1 in operator delete () from /usr/lib/libstdc++.so.6
#7 0x08998167 in
gnu_norm::list<boost::shared_ptr<lyx::support::ForkedProcess>,
std::allocator<boost::shared_ptr<lyx::support::ForkedProcess> > >::erase
(this=0x8cabc38,
position={_M_node = 0xa0ece50})

at /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ext/new_allocator.h:94
#8 0x08997f2c in lyx::support::ForkedcallsController::kill (this=0x8cabc38,
pid=22185, tolerance=0)
at /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/debug/list:262
#9 0x089474cd in stop (this=0xa0ed1ac) at PreviewLoader.cpp:393
#10 0x0894e60a in ~Impl (this=0xa077210) at PreviewLoader.cpp:432
#11 0x0894e90e in ~PreviewLoader (this=0x0)
at ../../boost/boost/checked_delete.hpp:34
#12 0x08964987 in
boost::detail::sp_counted_impl_p<lyx::graphics::PreviewLoader>::dispose
(this=0x0) at ../../boost/boost/checked_delete.hpp:34
#13 0x08964dab in std::_Rb_tree<lyx::Buffer const*, std::pair<lyx::Buffer
const* const, boost::shared_ptr<lyx::graphics::PreviewLoader> >,
std::_Select1st<std::pair<lyx::Buffer const* const,
boost::shared_ptr<lyx::graphics::PreviewLoader> > >, std::less<lyx::Buffer
const*>, std::allocator<std::pair<lyx::Buffer const* const,
boost::shared_ptr<lyx::graphics::PreviewLoader> > > >::_M_erase
(this=0x9863ae8,

x=0xa03aaf0) at ../../boost/boost/detail/sp_counted_base_gcc_x86.hpp:145

#14 0x08964d82 in std::_Rb_tree<lyx::Buffer const*, std::pair<lyx::Buffer
const* const, boost::shared_ptr<lyx::graphics::PreviewLoader> >,
std::_Select1st<std::pair<lyx::Buffer const* const,
boost::shared_ptr<lyx::graphics::PreviewLoader> > >, std::less<lyx::Buffer
const*>, std::allocator<std::pair<lyx::Buffer const* const,
boost::shared_ptr<lyx::graphics::PreviewLoader> > > >::_M_erase
(this=0x9863ae8,

x=0x999f778)

at /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_tree.h:1264
#15 0x08961cc6 in ~Previews (this=0x8caba00)
at /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_tree.h:578
#16 0x08961cfc in tcf_0 () at Previews.cpp:35
#17 0x0070063e in exit () from /lib/libc.so.6
#18 0x06cdc43c in qt_message_output () from /usr/lib/libQtCore.so.4
#19 0x06cdc4f8 in qFatal () from /usr/lib/libQtCore.so.4
#20 0x00ec16a3 in KGlobal::mainComponent () from /usr/lib/libkdecore.so.5
#21 0x001f094c in ?? () from /usr/lib/kde4/plugins/imageformats/kimg_eps.so
#22 0x06fd6003 in QImageReader::read () from /usr/lib/libQtGui.so.4
#23 0x06fd65c7 in QImageReader::read () from /usr/lib/libQtGui.so.4
#24 0x06fca80b in QImage::load () from /usr/lib/libQtGui.so.4
#25 0x0886f647 in lyx::graphics::QLImage::load_impl (this=0x986ce50,
filename=@0x95e6624) at QLImage.cpp:165
#26 0x0893044d in lyx::graphics::CacheItem::Impl::loadImage (this=0x95e65f0) at
GraphicsImage.h:178
#27 0x08930966 in lyx::graphics::CacheItem::Impl::convertToDisplayFormat
(this=0x95e65f0) at GraphicsCacheItem.cpp:419
#28 0x08930f88 in lyx::graphics::CacheItem::Impl::startLoading (this=0x95e65f0)
at GraphicsCacheItem.cpp:219
#29 0x08930fcb in lyx::graphics::CacheItem::startLoading (this=0xa08e748) at
GraphicsCacheItem.cpp:157
#30 0x0893bd6e in lyx::graphics::LoaderQueue::loadNext (this=0x8cab8c0) at
LoaderQueue.cpp:48
#31 0x0893d932 in
boost::detail::function::void_function_obj_invoker0<boost::_bi::bind_t<void,
boost::_mfi::mf0<void, lyx::graphics::LoaderQueue>,
boost::_bi::list1<boost::_bi::value<lyx::graphics::LoaderQueue*> > >,
void>::invoke (function_obj_ptr=@0xa0236c8)
at ../../boost/boost/bind/mem_fn_template.hpp:49
#32 0x080b13d3 in boost::function0<void, std::allocator<void> >::operator()
(this=0xa0236c4) at ../../boost/boost/function/function_template.hpp:692
#33 0x080cc944 in boost::signal0<void, boost::last_value<void>, int,
std::less<int>, boost::function<void ()(), std::allocator<void> > >::operator()
(this=0x8cab92c)

at ../boost/boost/signals/signal_template.hpp:119

#34 0x08697983 in lyx::Timeout::emit (this=0x8cab92c) at Timeout.cpp:54
#35 0x086ea0c0 in lyx::qtTimeout::timerEvent (this=0xa0267d8)
at ../../../src/frontends/Timeout.h:75
#36 0x06d94745 in QObject::event () from /usr/lib/libQtCore.so.4
#37 0x06f47ac0 in QApplicationPrivate::notify_helper ()
from /usr/lib/libQtGui.so.4
#38 0x06f4da09 in QApplication::notify () from /usr/lib/libQtGui.so.4
#39 0x086f0548 in lyx::frontend::GuiApplication::notify (this=0x95be6e8,
receiver=0xa0267d8, event=0xbfdd3e68) at GuiApplication.cpp:254
#40 0x06d8675b in QCoreApplication::notifyInternal ()
from /usr/lib/libQtCore.so.4
#41 0x06da9fdd in ?? () from /usr/lib/libQtCore.so.4
#42 0x06da7740 in ?? () from /usr/lib/libQtCore.so.4
#43 0x004cb05c in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#44 0x004ce49f in ?? () from /lib/libglib-2.0.so.0
#45 0x004cea05 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#46 0x06da7ca8 in QEventDispatcherGlib::processEvents ()
from /usr/lib/libQtCore.so.4
#47 0x06fc0fe5 in ?? () from /usr/lib/libQtGui.so.4
#48 0x06d85c81 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#49 0x06d85d8c in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#50 0x06d8813a in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#51 0x06f470c7 in QApplication::exec () from /usr/lib/libQtGui.so.4
#52 0x086ef572 in lyx::frontend::GuiApplication::exec (this=0x95be6e8) at
GuiApplication.cpp:175
---Type <return> to continue, or q <return> to quit---
#53 0x082d0264 in lyx::LyX::exec (this=0xbfdd4a6c, argc=@0xbfdd4aa0,
argv=0xbfdd4b24) at LyX.cpp:480
#54 0x080694be in main (argc=1, argv=Cannot access memory at address 0x567c
) at main.cpp:48

comment:5 by Juergen Spitzmueller, 16 years ago

Cc: j.spitzmueller@… added

/usr/lib/kde4/plugins/imageformats/kimg_eps.so[0x1f094c]

This is suspicious: the kimg_eps library from the unstable kde4 is used here,
and in fact the error comes from kimg. It could be that KDE3 and KDE4 are
clashing here, or maybe kimg from KDE4 is just not yet stable enough.

What happens if you uninstall KDE4?

comment:6 by José Matos, 16 years ago

Cc: rdieter@… added

Adding Rex to the fun here. :-)

comment:7 by ndbecker2@…, 16 years ago

It looks like removing kdelibs4 fixes it.

comment:8 by Juergen Spitzmueller, 16 years ago

Resolution: invalid
Status: newclosed

Then this is not our bug. Please report to however is responsible at Fedora.
For the time being, I'm gonna add a note to the RELEASE_NOTES. Therefore,
please report back if the issue has been resolved.

comment:10 by rdieter@…, 16 years ago

Issue resolved, update to kde-3.96.2 helped.

comment:11 by Juergen Spitzmueller, 16 years ago

Issue resolved, update to kde-3.96.2 helped.

Very good. I added this information to the RELEASE_NOTES:
http://www.lyx.org/trac/changeset/22112

comment:12 by rdieter@…, 16 years ago

Nevermind, reported recanted, and is still seeing intermitent crashes:
https://bugzilla.redhat.com/show_bug.cgi?id=410391#c11

comment:13 by anand@…, 16 years ago

On opensuse 10.3 x86_64 with kdelibs4-3.97.1-6.5, I have the exact same problem.
lyx-1.5.3 crashes when the .lyx file contains an .eps file. Removing kdelibs4
(which removes about 58 other kde4 packages) solves the problem.

comment:14 by Juergen Spitzmueller, 16 years ago

Cc: hudsonjr@… added

comment:15 by Juergen Spitzmueller, 16 years ago

* #4519 has been marked as a duplicate of this bug. *

comment:16 by Juergen Spitzmueller, 16 years ago

Milestone: 1.5.3
Resolution: invalid
Status: closedreopened
Summary: crash in 1.5.2 (graphic preview) after installing texlive on Fedora F8eps graphic preview crashes when kde4libs is installed

comment:17 by Juergen Spitzmueller, 16 years ago

Reopening. Even if this is not our bug, it is an unresolved conflict between
LyX and KDE 4, and people get bitten by it.

(It's still an issue with KDE 4.0; reproduced on OpenSuse 10.3 x64)

comment:18 by Juergen Spitzmueller, 16 years ago

Cc: mstarkey@… added

comment:19 by Juergen Spitzmueller, 16 years ago

* #4520 has been marked as a duplicate of this bug. *

comment:20 by Juergen Spitzmueller, 16 years ago

I've submitted a bug report to the KDE folks now:
https://bugs.kde.org/show_bug.cgi?id=156957

comment:21 by Juergen Spitzmueller, 16 years ago

Apparently, the bug has been fixed in kdelibs:
http://websvn.kde.org/?view=rev&revision=768782

I assume the fix will be included in KDE 4.0.1. Leaving the report opened
unless we can verify it's fixed.

comment:22 by Juergen Spitzmueller, 16 years ago

Resolution: fixed
Status: reopenedclosed

quoting https://bugs.kde.org/show_bug.cgi?id=156957#c5 :


[...]

Qt uses the QImageIO Plugins for rendering images. Since KDE installs
such a plugin for the EPS format, every Qt application picks that plugin
as well. Unfortunately in KDE4 the EPS plugin used a class which is only
available in applications which use KApplication instead of
QApplication, so the plugin asserted and Lyx was terminated.


I've fixed that issue in trunk and the KDE4.0 branch (will be part of
4.0.1 release) now by using only Qt classes in the EPS plugin.

[...]

comment:23 by anand@…, 16 years ago

On opensuse 10.3 x86_64, I have kdelibs4-4.0.1-3.1 installed and I no longer get
a crash in lyx-1.5.3 when previewing eps images (with preview turned on).

comment:24 by Uwe Stöhr, 16 years ago

Cc: mfg@… added

comment:25 by Uwe Stöhr, 16 years ago

* #4540 has been marked as a duplicate of this bug. *

comment:26 by José Matos, 16 years ago

I can confirm that updating to 4.0.1 fixes all the problems for Fedora 8 and 9
(to be).

It is nice to see this fixed. :-)

Thanks to Jürgen for reporting the bug upstreams. :-)

comment:27 by mfg@…, 16 years ago

kubuntu 7.10 i686 I also confirm that updating to kde4 4.0.1 fixes the problem

comment:28 by Richard Heck, 10 years ago

Component: convertorsconverters
Note: See TracTickets for help on using tickets.