Bug 231448

Summary: Crash occured when opening article on Planet KDE [QIODevice::write, ..., KPixmapCache::Private::writeData, KIconCache, .., KonqPixmapProvider::loadIcon]
Product: [Frameworks and Libraries] kdelibs Reporter: jbrsubscribe
Component: kdeuiAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED FIXED    
Severity: crash CC: andresbajotierra, asraniel, ayoze12, dario.vico, hayleyhung, konq-bugs, mpyne, mvdwerf2001, p92
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description jbrsubscribe 2010-03-20 18:51:23 UTC
Application: konqueror (4.4.1 (KDE 4.4.1) "release 227")
KDE Platform Version: 4.4.1 (KDE 4.4.1) "release 227"
Qt Version: 4.6.2
Operating System: Linux 2.6.31.12-0.1-default x86_64
Distribution: "openSUSE 11.2 (x86_64)"

-- Information about the crash:
Crashed when the article "Usability report on KMyMoney 1.0.2" on Planet KDE opened.

 -- Backtrace:
Application: Konqueror (kdeinit4), signal: Bus error
[KCrash Handler]
#5  0x00007fa166d49697 in memcpy () from /lib64/libc.so.6
#6  0x00007fa16882ea77 in ?? () from /usr/lib64/libkdeui.so.5
#7  0x00007fa1682b468c in QIODevice::write (this=0x6614b0, data=0x7fff6fa6a910 "", maxSize=<value optimized out>) at io/qiodevice.cpp:1324
#8  0x00007fa1682a148c in QDataStream::operator<< (this=0x7fff6fa6a950, i=6) at io/qdatastream.cpp:1119
#9  0x00007fa16890ff11 in KPixmapCache::Private::writeData(QString const&, QPixmap const&) () from /usr/lib64/libkdeui.so.5
#10 0x00007fa168910c5b in KPixmapCache::insert(QString const&, QPixmap const&) () from /usr/lib64/libkdeui.so.5
#11 0x00007fa16888389b in KIconCache::insert(QString const&, QPixmap const&, QString const&) () from /usr/lib64/libkdeui.so.5
#12 0x00007fa16890e058 in KIconLoader::loadIcon(QString const&, KIconLoader::Group, int, int, QStringList const&, QString*, bool) const () from /usr/lib64/libkdeui.so.5
#13 0x00007fa168916a1f in SmallIcon(QString const&, int, int, QStringList const&) () from /usr/lib64/libkdeui.so.5
#14 0x00007fa15ad98e6f in KonqPixmapProvider::loadIcon (this=<value optimized out>, icon=..., size=0) at /usr/src/debug/kdebase-4.4.1/apps/konqueror/src/konqpixmapprovider.cpp:165
#15 0x00007fa15ad99e95 in KonqPixmapProvider::pixmapFor (this=0x84c650, url=<value optimized out>, size=0) at /usr/src/debug/kdebase-4.4.1/apps/konqueror/src/konqpixmapprovider.cpp:91
#16 0x00007fa15b01ee48 in KConfigGroup::writeEntry(QString const&, QStringList const&, QFlags<KConfigBase::WriteConfigFlag>) () from /usr/lib64/libkdeinit4_konqueror.so
#17 0x00007fa15b0289f1 in KConfigGroup::writeEntry(QString const&, QStringList const&, QFlags<KConfigBase::WriteConfigFlag>) () from /usr/lib64/libkdeinit4_konqueror.so
#18 0x00007fa15b045caf in KConfigGroup::writeEntry(QString const&, QStringList const&, QFlags<KConfigBase::WriteConfigFlag>) () from /usr/lib64/libkdeinit4_konqueror.so
#19 0x00007fa16832f47f in QMetaObject::activate (sender=0x84c650, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x0) at kernel/qobject.cpp:3293
#20 0x00007fa15ad99340 in KonqPixmapProvider::notifyChange (this=0x84c650, isHost=true, hostOrURL=<value optimized out>, iconName=<value optimized out>)
    at /usr/src/debug/kdebase-4.4.1/apps/konqueror/src/konqpixmapprovider.cpp:154
#21 0x00007fa15ad994a8 in KonqPixmapProvider::qt_metacall (this=0x84c650, _c=<value optimized out>, _id=<value optimized out>, _a=0x7fff6fa6b7d0)
    at /usr/src/debug/kdebase-4.4.1/build/apps/konqueror/src/konqpixmapprovider.moc:82
#22 0x00007fa16832f47f in QMetaObject::activate (sender=0x84c650, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff6fa6b7d0) at kernel/qobject.cpp:3293
#23 0x00007fa15ada1ee9 in OrgKdeFavIconInterface::iconChanged (this=0x7fa158a550c0, _t1=true, _t2=<value optimized out>, _t3=<value optimized out>)
    at /usr/src/debug/kdebase-4.4.1/build/apps/konqueror/src/favicon_interface.moc:105
#24 0x00007fa15ada225a in OrgKdeFavIconInterface::qt_metacall (this=0x84c650, _c=InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff6fa6bb50)
    at /usr/src/debug/kdebase-4.4.1/build/apps/konqueror/src/favicon_interface.moc:86
#25 0x00007fa15ad99450 in KonqPixmapProvider::qt_metacall (this=0x7fa158a550c0, _c=1873193232, _id=4, _a=0x6000000) at /usr/src/debug/kdebase-4.4.1/build/apps/konqueror/src/konqpixmapprovider.moc:76
#26 0x00007fa166752148 in QDBusConnectionPrivate::deliverCall (this=<value optimized out>, object=<value optimized out>, msg=<value optimized out>, metaTypes=..., slotIdx=<value optimized out>)
    at qdbusintegrator.cpp:904
#27 0x00007fa16675eb4f in QDBusCallDeliveryEvent::placeMetaCall (this=<value optimized out>, object=<value optimized out>) at qdbusintegrator_p.h:101
#28 0x00007fa16832cd19 in QObject::event (this=0x84c650, e=0x153fe70) at kernel/qobject.cpp:1248
#29 0x00007fa1674f37b4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#30 0x00007fa1674f789a in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#31 0x00007fa1687ef456 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#32 0x00007fa16831b4bc in QCoreApplication::notifyInternal (this=0x7fff6fa6c780, receiver=0x84c650, event=0x153fe70) at kernel/qcoreapplication.cpp:704
#33 0x00007fa16831eb5d in sendEvent (event=<value optimized out>, receiver=<value optimized out>) at kernel/qcoreapplication.h:215
#34 QCoreApplicationPrivate::sendPostedEvents (event=<value optimized out>, receiver=<value optimized out>) at kernel/qcoreapplication.cpp:1345
#35 0x00007fa168343973 in sendPostedEvents () at kernel/qcoreapplication.h:220
#36 postEventSourceDispatch () at kernel/qeventdispatcher_glib.cpp:276
#37 0x00007fa1635a54d3 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#38 0x00007fa1635a5cb0 in ?? () from /usr/lib64/libglib-2.0.so.0
#39 0x00007fa1635a5f4d in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#40 0x00007fa168343eaf in QEventDispatcherGlib::processEvents (this=0x6188d0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#41 0x00007fa167592fee in ?? () from /usr/lib64/libQtGui.so.4
#42 0x00007fa16831a8a2 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#43 0x00007fa16831aadc in QEventLoop::exec (this=0x7fff6fa6c570, flags=...) at kernel/qeventloop.cpp:201
#44 0x00007fa16831ee0b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#45 0x00007fa15b06c9eb in kdemain () from /usr/lib64/libkdeinit4_konqueror.so
#46 0x00000000004073b8 in _start ()

Reported using DrKonqi
Comment 1 Dario Andres 2010-03-20 19:45:18 UTC
- Does the application crash again if you repeat the situation you described ?
Regards
Comment 2 Dario Andres 2010-04-04 17:34:48 UTC
*** Bug 233229 has been marked as a duplicate of this bug. ***
Comment 3 Dario Andres 2010-04-08 15:00:07 UTC
*** Bug 233699 has been marked as a duplicate of this bug. ***
Comment 4 hayleyhung 2010-04-08 15:09:26 UTC
It's a really strange thing. 
I started having problems yesterday and rebooting a few times didn't solve the problem. Then I tried just logging into KDE and each time I tried, it would refresh the screen and go straight back to the login screen. I tried logging into gnome instead and there was an error saying I'd run out of disk space, and sure enough, / was completely full. The strange thing is that this was one of the first things I checked and before I booted up the previous time, there was 2.1 gb of free space. I cleared up some space and it seems to be working again. But I can't figure out what suddenly used up all that space while rebooting my machine. The only thing I have been using that might have filled up space is backintime, which I have just started using. The backups are all stored on a completely different partition but I did set up a new directory to be backed up yesterday.. which was pretty huge. At some point, I heard lots of hard disk activity. I'm not sure how backintime does the initial file transfer .. but this could be one possible explanation for the constant crashing. Now I've got back to 1 gb of free space, it's all going ok again.. for the time being.
Comment 5 Dario Andres 2010-04-08 15:16:36 UTC
From bug 233700:
-- Information about the crash:
I was trying to switch on desktop effects. Desktop effects seem really unstable
- they were on before I switched off my machine but when I restarted, desktop
effects switched off. When I restarted, the system was also acting slowly. I
tried to start system settings a few times but the cursor bounced with no
response. Finally when system settings was able to start, I enabled desktop
effects, it crashed.

 -- Backtrace:
#6  memcpy () at ../sysdeps/i386/i686/memcpy.S:100
#7  0x02fc0886 in (anonymous namespace)::KPCMemoryDevice::writeData
(this=0x95ffcb0, data=0x941b7c0 "", len=809) at /usr/include/bits/string3.h:52
#8  0x07bb45ff in QIODevice::write (this=0x95ffcb0, data=0x941b7c0 "",
maxSize=809) at io/qiodevice.cpp:1324
#9  0x07ba0631 in QDataStream::writeRawData (this=0xbfce82f4, s=0x941b7c0 "",
len=809) at io/qdatastream.cpp:1353
#10 0x07ba093b in QDataStream::writeBytes (this=0xbfce82f4, s=0x941b7c0 "",
len=809) at io/qdatastream.cpp:1337
#11 0x07b2c43b in operator<< (out=..., ba=...) at tools/qbytearray.cpp:2671
#12 0x02fc2a0a in KPixmapCache::Private::writeData (this=0x8cd2918, key=...,
pix=...) at /usr/src/debug/kdelibs-4.4.1/kdeui/util/kpixmapcache.cpp:1475
#13 0x02fc623f in KPixmapCache::insert (this=0x8cd2758, key=..., pix=...) at
/usr/src/debug/kdelibs-4.4.1/kdeui/util/kpixmapcache.cpp:1438
#14 0x02f1130c in KIconCache::insert (this=0x8cd2758, key=..., pix=...) at
/usr/src/debug/kdelibs-4.4.1/kdeui/icons/kiconcache.cpp:298
#15 0x02f119b2 in KIconCache::insert (this=0x8cd2758, key=..., pix=...,
path=...) at /usr/src/debug/kdelibs-4.4.1/kdeui/icons/kiconcache.cpp:285
#16 0x02f085f4 in KIconLoader::loadIcon (this=0x8ca7108, _name=...,
group=Desktop, size=<value optimized out>, state=<value optimized out>,
overlays=..., path_store=0x0, canReturnNull=false)
    at /usr/src/debug/kdelibs-4.4.1/kdeui/icons/kiconloader.cpp:1273
#17 0x02f008a7 in KIconEngine::pixmap (this=0x8f2ab90, size=..., mode=Active,
state=Off) at /usr/src/debug/kdelibs-4.4.1/kdeui/icons/kiconengine.cpp:119
#18 0x06a7d0e7 in QIcon::pixmap (this=0xbfce9a78, size=..., mode=Active,
state=Off) at image/qicon.cpp:669
Comment 6 Dario Andres 2010-04-08 15:17:36 UTC
*** Bug 233700 has been marked as a duplicate of this bug. ***
Comment 7 Beat Wolf 2010-05-18 09:16:11 UTC
*** Bug 238005 has been marked as a duplicate of this bug. ***
Comment 8 Beat Wolf 2010-05-18 09:16:38 UTC
Relevant part of the backtrace of the other bugreport:
#5  memcpy () at ../sysdeps/x86_64/memcpy.S:267
#6  0x00007f6de6a0a797 in writeData (this=0x33f0fd0, 
    data=0x3b31c68
"\360\232\217^7\312\335\247\343zu\222\036\235\253\377\246q\310\330\301\305e\214\067\234=.\207\n\030\063\261\206\306\332#\t\370\304\325M\020\215O\275<\337[{\026\343]o~\225p\260\205\r\255\177\267\334ihH\324\377-\271\257\t\365\352\224\336\254\235\017\244\235S\360Y\344JlM\344\360gL\310\234\030\207\\k=B_D\326\244\372cg\361\\\371\352\253\257\356r6\231\334\065>\035\226\256\237z\374\277]k\303|\226\315=s\265\266\267\364l\025\271\276\234\275:\311\071\253Yzt\266.\322Z\244u\310x!\311\312\030s\354\237\204:\024aO\262A!c\\!\263\016l\006\237&6\325\362in\276\365r\373z9\236\345p\264"..., 
    len=10944) at /usr/include/bits/string3.h:52
#7  0x00007f6de63d6417 in QIODevice::write (this=0x33f0fd0, data=0x3b30d38 "",
maxSize=10944) at io/qiodevice.cpp:1324
#8  0x00007f6de63c249a in QDataStream::writeRawData (this=<value optimized
out>, 
    s=0x3b31c68
"\360\232\217^7\312\335\247\343zu\222\036\235\253\377\246q\310\330\301\305e\214\067\234=.\207\n\030\063\261\206\306\332#\t\370\304\325M\020\215O\275<\337[{\026\343]o~\225p\260\205\r\255\177\267\334ihH\324\377-\271\257\t\365\352\224\336\254\235\017\244\235S\360Y\344JlM\344\360gL\310\234\030\207\\k=B_D\326\244\372cg\361\\\371\352\253\257\356r6\231\334\065>\035\226\256\237z\374\277]k\303|\226\315=s\265\266\267\364l\025\271\276\234\275:\311\071\253Yzt\266.\322Z\244u\310x!\311\312\030s\354\237\204:\024aO\262A!c\\!\263\016l\006\237&6\325\362in\276\365r\373z9\236\345p\264"..., 
    len=10944) at io/qdatastream.cpp:1353
#9  0x00007f6de63c2706 in QDataStream::writeBytes (this=0x7fffdc0efc30,
s=0x3b30d38 "", len=10944) at io/qdatastream.cpp:1337
#10 0x00007f6de6a0c6d0 in KPixmapCache::Private::writeData (this=0x232f800,
key=<value optimized out>, pix=<value optimized out>) at
../../kdeui/util/kpixmapcache.cpp:1477
#11 0x00007f6de6a0fccb in KPixmapCache::insert (this=0x233ba90, key=...,
pix=...) at ../../kdeui/util/kpixmapcache.cpp:1440
#12 0x00007f6ddeedbb3e in Plasma::ThemePrivate::scheduledCacheUpdate
(this=0x2318ce0) at ../../plasma/theme.cpp:242
#13 0x00007f6ddeedfd0a in Plasma::Theme::qt_metacall (this=0x22f5130,
_c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffdc0eff20)
at ./theme.moc:111
#14 0x00007f6de6456e3f in QMetaObject::activate (sender=0x23334a0, m=<value
optimized out>, local_signal_index=<value optimized out>, argv=0x372) at
kernel/qobject.cpp:3293
#15 0x00007f6de6453a63 in QObject::event (this=0x23334a0, e=0x7fffdc0f0670) at
kernel/qobject.cpp:1212
#16 0x00007f6de55e022c in QApplicationPrivate::notify_helper (this=0x2227530,
receiver=0x23334a0, e=0x7fffdc0f0670) at kernel/qapplication.cpp:4300
#17 0x00007f6de55e66fb in QApplication::notify (this=0x21f14b0,
receiver=0x23334a0, e=0x7fffdc0f0670) at kernel/qapplication.cpp:4183
#18 0x00007f6de698b526 in KApplication::notify (this=0x21f14b0,
receiver=0x23334a0, event=0x7fffdc0f0670) at
../../kdeui/kernel/kapplication.cpp:302
Comment 9 Michael Pyne 2010-05-19 00:07:48 UTC
Either it's a bug in KPixmapCache (used by Plasma::Theme) or the cache is corrupt. To "fix" a corrupt cache just delete it.
i.e. rm /var/tmp/kdecache-$USER/kpc/*.{index,data}

If the bug is in KPixmapCache then it is fixed for KDE SC 4.5, as Plasma::Theme no longer uses KPixmapCache. The fix is unfortunately far too invasive to backport to KDE 4.4.
Comment 10 Urs Wolfer 2010-07-11 16:22:59 UTC
*** Bug 244228 has been marked as a duplicate of this bug. ***
Comment 11 Peter Penz 2010-08-06 12:33:10 UTC
*** Bug 230364 has been marked as a duplicate of this bug. ***