Bug 208677

Summary: KDE4 application using KHTML crash when run in a KDE3 environment (or sometimes if kdelibs3 is installed) [qFatal, khtml::CSSStyleSelector::loadDefaultStyle, khtml::CSSStyleSelector::init]
Product: [Applications] konqueror Reporter: jos poortvliet <jospoortvliet>
Component: khtmlAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: a.kupcov, aiacovitti, andresbajotierra, jospoortvliet, julius.schwartzenberg, praveen, veresp
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description jos poortvliet 2009-09-27 12:12:19 UTC
Application that crashed: ktorrent
Version of the application: 3.2.3
KDE Version: 4.3.1 (KDE 4.3.1)
Qt Version: 4.5.2
Operating System: Linux 2.6.30-ARCH i686

 -- Backtrace:
Application: KTorrent (ktorrent), signal: Aborted
[KCrash Handler]
#6  0xb7f0f424 in __kernel_vsyscall ()
#7  0xb653c411 in raise () from /lib/libc.so.6
#8  0xb653dc12 in abort () from /lib/libc.so.6
#9  0xb7de87b7 in bt::QtMessageOutput () from /usr/lib/libbtcore.so.11
#10 0xb717eda5 in qt_message_output () from /usr/lib/libQtCore.so.4
#11 0xb717eede in qFatal () from /usr/lib/libQtCore.so.4
#12 0xb101ee16 in khtml::CSSStyleSelector::loadDefaultStyle () from /usr/lib/libkhtml.so.5
#13 0xb101f1bf in khtml::CSSStyleSelector::init () from /usr/lib/libkhtml.so.5
#14 0xb102cee8 in khtml::CSSStyleSelector::CSSStyleSelector () from /usr/lib/libkhtml.so.5
#15 0xb0ec87bc in DOM::DocumentImpl::attach () from /usr/lib/libkhtml.so.5
#16 0xb0e6029e in KHTMLPart::begin () from /usr/lib/libkhtml.so.5
#17 0xb0e76617 in KHTMLPart::htmlError () from /usr/lib/libkhtml.so.5
#18 0xb0e78712 in KHTMLPart::showError () from /usr/lib/libkhtml.so.5
#19 0xb0e5f38b in KHTMLPart::slotFinished () from /usr/lib/libkhtml.so.5
#20 0xb0e86685 in KHTMLPart::qt_metacall () from /usr/lib/libkhtml.so.5
#21 0xb13c391a in kt::HTMLPart::qt_metacall () from /usr/lib/kde4/ktsearchplugin.so
#22 0xb728b9ac in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#23 0xb728c5e2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#24 0xb7440a93 in KJob::result () from /usr/lib/libkdecore.so.5
#25 0xb7440f19 in KJob::emitResult () from /usr/lib/libkdecore.so.5
#26 0xb7b272c0 in KIO::SimpleJob::slotFinished () from /usr/lib/libkio.so.5
#27 0xb7b277da in KIO::TransferJob::slotFinished () from /usr/lib/libkio.so.5
#28 0xb7b25063 in KIO::SimpleJob::slotError () from /usr/lib/libkio.so.5
#29 0xb7bdd468 in KIO::SchedulerPrivate::createSlave () from /usr/lib/libkio.so.5
#30 0xb7bde8ba in KIO::SchedulerPrivate::startJobDirect () from /usr/lib/libkio.so.5
#31 0xb7bde910 in KIO::SchedulerPrivate::startStep () from /usr/lib/libkio.so.5
#32 0xb7bdebbe in KIO::Scheduler::qt_metacall () from /usr/lib/libkio.so.5
#33 0xb728b9ac in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#34 0xb728c5e2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#35 0xb72c5a87 in QTimer::timeout () from /usr/lib/libQtCore.so.4
#36 0xb729105e in QTimer::timerEvent () from /usr/lib/libQtCore.so.4
#37 0xb7285b5f in QObject::event () from /usr/lib/libQtCore.so.4
#38 0xb68af994 in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#39 0xb68b707c in QApplication::notify () from /usr/lib/libQtGui.so.4
#40 0xb78a043a in KApplication::notify () from /usr/lib/libkdeui.so.5
#41 0xb7275fcb in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#42 0xb72a379e in ?? () from /usr/lib/libQtCore.so.4
#43 0xb72a0780 in ?? () from /usr/lib/libQtCore.so.4
#44 0xb5af1d98 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#45 0xb5af53e0 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#46 0xb5af5513 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#47 0xb72a06cc in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#48 0xb694d6c5 in ?? () from /usr/lib/libQtGui.so.4
#49 0xb7274579 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#50 0xb72749ca in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#51 0xb7276e3f in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#52 0xb68af817 in QApplication::exec () from /usr/lib/libQtGui.so.4
#53 0x08065b78 in main ()

Reported using DrKonqi
Comment 1 jos poortvliet 2009-09-27 12:37:53 UTC
KTorrent crashed when I booted up my computer and it was automatically restored by session management. The only unusual thing was that network was offline.
Comment 2 Dario Andres 2009-09-27 13:54:03 UTC
@Jos: this looks related to bug 192419 / bug 157850 (some KDEDIR KDE3/KDE4 mismatch causing khtml to load an incompatible file from a KDE3 dir...). Did you changed something in your environment vars ? It is strange that this happens when running a KDE4 app like KTorrent3.
Thanks
Comment 3 Joris Guisson 2009-10-15 19:54:25 UTC
Reassigning to kdelibs, IMHO khtml shouldn't crap out when there is a version problem with some default css file.
Comment 4 Joris Guisson 2010-06-12 10:13:05 UTC
*** Bug 241516 has been marked as a duplicate of this bug. ***
Comment 5 Alexander Kupcov 2010-11-04 20:55:30 UTC
Created attachment 53137 [details]
New crash information added by DrKonqi

ktorrent (4.0.4) on KDE Platform 4.5.2 (KDE 4.5.2) using Qt 4.7.0

I used ktorrent 4.0.3 in Fedora 13, and also 14 release.
 I have updated ktorrent 4.0.4 from fedora test repository - the error also is shown after start.

-- Backtrace (Reduced):
#10 0x0377408d in bt::QtMessageOutput (type=QtFatalMsg, msg=0x11db1b08 "!!!!!!! ERROR !!!!!!! - KHTML default stylesheet version mismatch. Aborting. Check your installation. File used was: /usr/share/kde4/apps/khtml/css/html4.css. Expected STYLE_VERSION 1\n") at /usr/src/debug/libktorrent-1.0.3/src/util/log.cpp:307
[...]
[...]
[...]
#14 0x08a85108 in khtml::CSSStyleSelector::loadDefaultStyle (s=0x1041e2c8, doc=0x11bb7368) at /usr/src/debug/kdelibs-4.5.2/khtml/css/cssstyleselector.cpp:407
#15 0x08a855af in khtml::CSSStyleSelector::init (this=0x127c0d40, _settings=0x1041e2c8, doc=0x11bb7368) at /usr/src/debug/kdelibs-4.5.2/khtml/css/cssstyleselector.cpp:336
#16 0x08a95012 in khtml::CSSStyleSelector::CSSStyleSelector (this=0x127c0d40, doc=0x11bb7368, userStyleSheet=..., styleSheets=0x112cdce0, url=..., _strictParsing=true) at /usr/src/debug/kdelibs-4.5.2/khtml/css/cssstyleselector.cpp:235
#17 0x0892ea2d in DOM::DocumentImpl::attach (this=0x11bb7368) at /usr/src/debug/kdelibs-4.5.2/khtml/xml/dom_docimpl.cpp:1519
Comment 6 Dario Andres 2010-12-14 14:37:41 UTC
[Comment from a bug triager]
I'm going to use this bug report as a new master as some applications keep crashing on some builds.

From bug 243251:
-- Information about the crash:
When I try to run KMail from KDE4 in KDE3, I see this in my terminal:
!!!!!!! ERROR !!!!!!! - KHTML default stylesheet version mismatch. Aborting.
Check your installation. File used was:
/opt/kde3/share/apps/khtml/css/html4.css. Expected STYLE_VERSION 1

*** KMail got signal 6 (Crashing)

It seems there are some issues with environment settings when running certain
KDE4 apps inside KDE3.

It should be possible to run KDE3 and KDE4 apps side by side in either
environment transparantly.

The crash can be reproduced every time.
Comment 7 Dario Andres 2010-12-14 14:37:51 UTC
*** Bug 226817 has been marked as a duplicate of this bug. ***
Comment 8 Dario Andres 2010-12-14 14:37:54 UTC
*** Bug 243251 has been marked as a duplicate of this bug. ***
Comment 9 Christoph Feck 2012-02-22 13:30:28 UTC
*** Bug 294500 has been marked as a duplicate of this bug. ***
Comment 10 Andrea Iacovitti 2014-12-20 07:17:38 UTC

*** This bug has been marked as a duplicate of bug 192419 ***