Bug 182026 (KPC-mmap) - [Fixed in KDE SC 4.4.2 and 4.5] KRunner crashes / Plasma crashes when changing Theme (in KPixmapCache::Private::mmapFile()) [..., KPixmapCache::Private::init, KPixmapCache::discard, KPixmapCache::deleteCache, Plasma::ThemePrivate::discardCache]
Summary: [Fixed in KDE SC 4.4.2 and 4.5] KRunner crashes / Plasma crashes when changin...
Status: RESOLVED FIXED
Alias: KPC-mmap
Product: kdelibs
Classification: Unmaintained
Component: kdeui (show other bugs)
Version: 4.1
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Michael Pyne
URL:
Keywords:
: 188951 203794 218560 223784 225191 227165 227483 228371 228495 229191 229256 229354 229372 229536 229639 229650 229655 229726 229782 229868 229914 229943 229948 229968 230073 230081 230103 230119 230169 230174 230216 230221 230280 230281 230338 230345 230347 230368 230449 230528 230545 230584 230643 230731 230743 230759 230809 230875 230883 230904 230923 230973 231013 231059 231069 231085 231103 231134 231158 231160 231169 231189 231198 231248 231249 231412 231414 231471 231494 231515 231520 231529 231568 231579 231590 231604 231605 231614 231757 231806 231825 231964 231980 231987 232006 232075 232077 232119 232147 232168 232251 232258 232350 232393 232410 232459 232501 232611 232707 233127 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-01-26 21:54 UTC by Jonathan Thomas
Modified: 2010-04-03 02:54 UTC (History)
27 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Kludge to at least try to more sanely discard the cache (5.10 KB, patch)
2010-02-25 06:10 UTC, Michael Pyne
Details
New crash information added by DrKonqi (4.33 KB, text/plain)
2010-03-03 23:47 UTC, Tom Kijas
Details
New crash information added by DrKonqi (13.72 KB, text/plain)
2010-03-04 02:00 UTC, Craig Magina
Details
New crash information added by DrKonqi (3.91 KB, text/plain)
2010-03-09 09:19 UTC, Raul Metsma
Details
New crash information added by DrKonqi (5.71 KB, text/plain)
2010-03-11 17:29 UTC, Jon Nelson
Details
New crash information added by DrKonqi (5.15 KB, text/plain)
2010-03-11 17:33 UTC, Jon Nelson
Details
New crash information added by DrKonqi (6.22 KB, text/plain)
2010-03-12 03:27 UTC, Alessandro Ghersi
Details
New crash information added by DrKonqi (4.14 KB, text/plain)
2010-03-13 00:59 UTC, markm999
Details
New crash information added by DrKonqi (30.26 KB, text/plain)
2010-03-13 12:35 UTC, Unknown
Details
New crash information added by DrKonqi (4.93 KB, text/plain)
2010-03-14 18:30 UTC, Jorge Martinez
Details
New crash information added by DrKonqi (12.77 KB, text/plain)
2010-03-15 19:55 UTC, Lukas Dolezal
Details
New crash information added by DrKonqi (7.75 KB, text/plain)
2010-03-17 15:47 UTC, Gunther Piez
Details
New crash information added by DrKonqi (3.48 KB, text/plain)
2010-03-18 15:18 UTC, David Rankin
Details
New crash information added by DrKonqi (5.06 KB, text/plain)
2010-03-19 09:16 UTC, Diego
Details
Multi monitor desktop showing panel colours corruption (165.79 KB, image/jpeg)
2010-03-19 09:25 UTC, Diego
Details
My multi monitor configuration. (53.31 KB, image/png)
2010-03-19 09:33 UTC, Diego
Details
New crash information added by DrKonqi (4.23 KB, text/plain)
2010-03-20 10:45 UTC, Davide Rondini
Details
New crash information added by DrKonqi (3.34 KB, text/plain)
2010-03-21 07:28 UTC, Anni
Details
New crash information added by DrKonqi (4.66 KB, text/plain)
2010-03-21 21:21 UTC, An00biS
Details
New crash information added by DrKonqi (7.96 KB, text/plain)
2010-03-28 10:31 UTC, Petar Petrov
Details
New crash information added by DrKonqi (3.82 KB, text/plain)
2010-03-29 08:00 UTC, xandry
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Thomas 2009-01-26 21:54:38 UTC
Version:            (using KDE 4.1.96)
OS:                Linux
Installed from:    Ubuntu Packages

This bug was originally reported at https://launchpad.net/bugs/321281

The user reported a KRunner crash in KPixmapCache::Private::mmapFile() with the following backtrace:

#0  0xb7ada591 in KPixmapCache::Private::mmapFile (this=0x9020590, 
    filename=@0x90205a4, info=0x90205d0, newsize=126341120)
    at /build/buildd/kde4libs-4.1.96/kdeui/util/kpixmapcache.cpp:486
	indexMem = <value optimized out>
	__PRETTY_FUNCTION__ = "bool KPixmapCache::Private::mmapFile(const QString&, KPixmapCache::Private::MmapInfo*, int)"
#1  0xb7adb3eb in KPixmapCache::Private::mmapFiles (this=0x9020590)
    at /build/buildd/kde4libs-4.1.96/kdeui/util/kpixmapcache.cpp:419
	cacheLimit = <value optimized out>
#2  0xb7adb003 in KPixmapCache::Private::init (this=0x9020590)
    at /build/buildd/kde4libs-4.1.96/kdeui/util/kpixmapcache.cpp:1046
	__PRETTY_FUNCTION__ = "void KPixmapCache::Private::init()"
#3  0xb7ade1ea in KPixmapCache::discard (this=0x96869f8)
    at /build/buildd/kde4libs-4.1.96/kdeui/util/kpixmapcache.cpp:1269
	indexFile = {static null = {<No data fields>}, static shared_null = {
    ref = {_q_value = 9922}, alloc = 0, size = 0, data = 0xb6c959ba, 
    clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, 
    reserved = 0, array = {0}}, static shared_empty = {ref = {
      _q_value = 192}, alloc = 0, size = 0, data = 0xb6c959ce, clean = 0, 
    simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, 
    reserved = 0, array = {0}}, d = 0x95ebea0, static codecForCStrings = 0x0}
	dataFile = {static null = {<No data fields>}, static shared_null = {
    ref = {_q_value = 9922}, alloc = 0, size = 0, data = 0xb6c959ba, 
    clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, 
    reserved = 0, array = {0}}, static shared_empty = {ref = {
      _q_value = 192}, alloc = 0, size = 0, data = 0xb6c959ce, clean = 0, 
    simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, 
    reserved = 0, array = {0}}, d = 0x9026440, static codecForCStrings = 0x0}
#4  0xb7ade8b0 in KPixmapCache::deleteCache (name=@0xbfd23cc8)
    at /build/buildd/kde4libs-4.1.96/kdeui/util/kpixmapcache.cpp:1247
	d = (KPixmapCache::Private *) 0x9020590
	_container_ = {c = {{p = {static shared_null = {ref = {
            _q_value = 7051}, alloc = 0, begin = 0, end = 0, sharable = 1, 
          array = {0x0}}, d = 0x8f579c0}, d = 0x8f579c0}}, brk = 0, i = {
    i = 0x8f579d8}, e = {i = 0x8f579dc}}
#5  0xb7d7735b in Plasma::ThemePrivate::discardCache (this=0x8fc4560, 
    recreateElementsCache=true)
    at /build/buildd/kde4libs-4.1.96/plasma/theme.cpp:191
	svgElementsFile = {static null = {<No data fields>}, 
  static shared_null = {ref = {_q_value = 9922}, alloc = 0, size = 0, 
    data = 0xb6c959ba, clean = 0, simpletext = 0, righttoleft = 0, 
    asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, 
  static shared_empty = {ref = {_q_value = 192}, alloc = 0, size = 0, 
    data = 0xb6c959ce, clean = 0, simpletext = 0, righttoleft = 0, 
    asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0xb7a52e50, 
  static codecForCStrings = 0x0}
#6  0xb7d77784 in Plasma::ThemePrivate::compositingChanged (this=0x8fc4560)
    at /build/buildd/kde4libs-4.1.96/plasma/theme.cpp:178
No locals.
#7  0xb7d7bfbe in Plasma::Theme::qt_metacall (this=0x8fe6198, 
    _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbfd23dc8)
    at /build/buildd/kde4libs-4.1.96/obj-i486-linux-gnu/plasma/theme.moc:100
No locals.
#8  0xb6bc4c10 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#9  0xb6bc5992 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#10 0xb7acc3b7 in KSelectionWatcher::lostOwner (this=0x9037c00)
    at /build/buildd/kde4libs-4.1.96/obj-i486-linux-gnu/kdeui/kmanagerselection.moc:142
No locals.
#11 0xb7acc78b in KSelectionWatcher::filterEvent (this=0x9037c00, 
    ev_P=0xbfd2430c)
    at /build/buildd/kde4libs-4.1.96/kdeui/util/kmanagerselection.cpp:478
No locals.
#12 0xb7acdcf7 in KSelectionWatcher::Private::x11Event (this=0x9023c40, 
    ev_P=0xbfd2430c)
    at /build/buildd/kde4libs-4.1.96/kdeui/util/kmanagerselection.cpp:394
No locals.
#13 0xb7a522f9 in KApplication::x11EventFilter (this=0x8f07368, 
    _event=0xbfd2430c)
    at /build/buildd/kde4libs-4.1.96/kdeui/kernel/kapplication.cpp:946
	_container_ = {c = {{p = {static shared_null = {ref = {
            _q_value = 7051}, alloc = 0, begin = 0, end = 0, sharable = 1, 
          array = {0x0}}, d = 0x8fa2820}, d = 0x8fa2820}}, brk = 0, i = {
    i = 0x8fa283c}, e = {i = 0x8fa2840}}
#14 0xb70d7a8e in ?? () from /usr/lib/libQtGui.so.4
#15 0xb70e84f5 in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
#16 0xb71137ea in ?? () from /usr/lib/libQtGui.so.4
#17 0xb56dbbf8 in IA__g_main_context_dispatch (context=0x8f17a98)
    at /build/buildd/glib2.0-2.19.5/glib/gmain.c:1814
No locals.
#18 0xb56df2a3 in g_main_context_iterate (context=0x8f17a98, block=1, 
    dispatch=1, self=0x8f1d968)
    at /build/buildd/glib2.0-2.19.5/glib/gmain.c:2448
	max_priority = 2147483647
	timeout = 26704
	some_ready = 1
	nfds = 9
	allocated_nfds = <value optimized out>
	fds = (GPollFD *) 0x95fdb68
	__PRETTY_FUNCTION__ = "g_main_context_iterate"
#19 0xb56df461 in IA__g_main_context_iteration (context=0x8f17a98, 
    may_block=1) at /build/buildd/glib2.0-2.19.5/glib/gmain.c:2511
	retval = <value optimized out>
#20 0xb6bda628 in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#21 0xb7112ee5 in ?? () from /usr/lib/libQtGui.so.4
#22 0xb6bae6ba in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#23 0xb6bae87a in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#24 0xb6bb0f35 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#25 0xb70786f7 in QApplication::exec () from /usr/lib/libQtGui.so.4
#26 0xb7eb752c in kdemain (argc=1, argv=0xbfd246f4)
    at /build/buildd/kdebase-workspace-4.1.96/krunner/main.cpp:57
	aboutData = {d = 0x8ef7798}
	app = (class KRunnerApp *) 0x8f07368
	rc = 0
#27 0x08048712 in main (argc=50348254, argv=0x49)
    at /build/buildd/kdebase-workspace-4.1.96/obj-i486-linux-gnu/krunner/krunner_dummy.cpp:3
No locals.



Unfortunately, the user does not know when or how this crash occurred. If the backtrace is not sufficient for ascertaining the cause of the crash, please just close it since no more info will/can be gathered. I am forwarding this bug because it would be better to take the chance that this can be solved rather than to give it a 100% chance of never being fixed by not forwarding it. Thanks for making desktop linux rock!
Comment 1 Jonathan Thomas 2009-02-01 21:48:07 UTC
A crash with the same backtrace has been reported downstream. This time it was triggered by restoring Kopete from the system tray. (https://launchpad.net/bugs/323345)
Comment 2 Michael Pyne 2009-05-29 06:07:01 UTC
SVN commit 974349 by mpyne:

Remove usage of pointer aliasing from KPixmapCache.  Fixes bug 182026, will be in KDE 4.3.

CCBUG:182026


 M  +13 -13    kpixmapcache.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=974349
Comment 3 Michael Pyne 2009-05-29 06:11:49 UTC
This bugfix could possibly be important enough to sneak into 4.2.4 -> marking as blocker, will email Release Team to let them add or not as desired.
Comment 4 Michael Pyne 2009-05-29 16:09:30 UTC
SVN commit 974498 by mpyne:

Backport invalid aliasing crash for for KPixmapCache to 4.2 branch.

This may possibly make it to 4.2.4 but that's up to release team as it's
past tagging date.

BUG:182026


 M  +13 -13    kpixmapcache.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=974498
Comment 5 Jonathan Thomas 2009-08-18 16:39:17 UTC
We are getting reports of this crash in KDE 4.3.0.
Comment 6 Jonathan Thomas 2009-10-13 18:56:23 UTC
We are now getting duplicates of this most every day, even with KDE 4.3.2. :(
Comment 7 Michael Pyne 2009-10-14 02:34:32 UTC
First off, I hate our current cache.

Second, are these duplicates with this same backtrace or is it yet another crash bug?
Comment 8 Jonathan Thomas 2009-10-14 02:38:52 UTC
The most common report is that this occurred while toggling desktop effects. They seem to all have virtually the same backtrace. You can take a look for yourself; maybe I'm missing something:

.
Thread 1 (process 1504):
#0  0x00f5d96f in KPixmapCache::Private::mmapFile (this=0x8a55c90, 
    filename=@0x8a55ca0, info=0x8a55cc0, newsize=33656832)
    at ../../kdeui/util/kpixmapcache.cpp:482
	__PRETTY_FUNCTION__ = "bool KPixmapCache::Private::mmapFile(const QString&, KPixmapCache::Private::MmapInfo*, int)"
	indexMem = <value optimized out>
#1  0x00f60b23 in KPixmapCache::Private::mmapFiles (this=0x8a55c90)
    at ../../kdeui/util/kpixmapcache.cpp:410
	cacheLimit = <value optimized out>
#2  0x00f606be in KPixmapCache::Private::init (this=0x8a55c90)
    at ../../kdeui/util/kpixmapcache.cpp:1046
	__PRETTY_FUNCTION__ = "void KPixmapCache::Private::init()"
#3  0x00f60e92 in KPixmapCache::discard (this=0x8b96f78)
    at ../../kdeui/util/kpixmapcache.cpp:1269
	indexFile = {static null = {<No data fields>}, static shared_null = {
    ref = {_q_value = 5778}, alloc = 0, size = 0, data = 0x80532ca, 
    clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, 
    reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 75}, 
    alloc = 0, size = 0, data = 0x3c046e, clean = 0, simpletext = 0, 
    righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {
      0}}, d = 0x8cbb2b0, static codecForCStrings = 0x0}
	dataFile = {static null = {<No data fields>}, static shared_null = {
    ref = {_q_value = 5778}, alloc = 0, size = 0, data = 0x80532ca, 
    clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, 
    reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 75}, 
    alloc = 0, size = 0, data = 0x3c046e, clean = 0, simpletext = 0, 
    righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {
      0}}, d = 0x8cd49d0, static codecForCStrings = 0x0}
#4  0x00f61575 in KPixmapCache::deleteCache (name=@0xbfb38fac)
    at ../../kdeui/util/kpixmapcache.cpp:1247
	d = (KPixmapCache::Private *) 0x8a55c90
	_container_ = {c = {{p = {static shared_null = {ref = {
            _q_value = 11493}, alloc = 0, begin = 0, end = 0, sharable = 1, 
          array = {0x0}}, d = 0x89b1880}, d = 0x89b1880}}, brk = 0, i = {
    i = 0x89b1898}, e = {i = 0x89b189c}}
#5  0x0148bb9b in Plasma::ThemePrivate::discardCache (this=0x8a310a8, 
    recreateElementsCache=true) at ../../plasma/theme.cpp:221
	svgElementsFile = {static null = {<No data fields>}, 
  static shared_null = {ref = {_q_value = 5778}, alloc = 0, size = 0, 
    data = 0x80532ca, clean = 0, simpletext = 0, righttoleft = 0, 
    asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, 
  static shared_empty = {ref = {_q_value = 75}, alloc = 0, size = 0, 
    data = 0x3c046e, clean = 0, simpletext = 0, righttoleft = 0, 
    asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0xf76f90, 
  static codecForCStrings = 0x0}
#6  0x0148c013 in Plasma::ThemePrivate::compositingChanged (this=0x8a310a8)
    at ../../plasma/theme.cpp:213
No locals.
#7  0x0149143e in Plasma::Theme::qt_metacall (this=0x8a092f0, 
    _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbfb39128) at ./theme.moc:102
No locals.
#8  0x002e3263 in QMetaObject::activate (sender=0x89cced0, 
    from_signal_index=4, to_signal_index=4, argv=0xbfb39128)
    at kernel/qobject.cpp:3113
	c = <value optimized out>
	method = 6
	currentSender = {sender = 0x89cced0, signal = 4, ref = 1}
	previousSender = (QObjectPrivate::Sender *) 0x0
	i = 0
	count = 1
	signal = 4
	empty_argv = {0x0}
	locker = {{mtx = 0x88ffe7c, val = 143654524}}
	currentThreadData = <value optimized out>
	connectionLists = (QObjectConnectionListVector *) 0x8a43d80
#9  0x002e3ec2 in QMetaObject::activate (sender=0x89cced0, m=0x108abe0, 
    local_signal_index=0, argv=0xbfb39128) at kernel/qobject.cpp:3187
	signal_index = 145396856
#10 0x00f4e7a3 in KSelectionWatcher::newOwner (this=0x89cced0, _t1=18973765)
    at ./kmanagerselection.moc:140
	_a = {0x0, 0xbfb39144}
#11 0x00f4eaa1 in KSelectionWatcher::owner (this=0x89cced0)
    at ../../kdeui/util/kmanagerselection.cpp:451
	dpy = (Display * const) 0x89881d0
	handler = {user_handler1 = 0, user_handler2 = 0, 
  old_handler = 0xed9a00 <kde_x_errhandler>, static handlers = 0x8a56ca8, 
  static pos = 1, static size = 16, d = 0x8d2e3f0}
	current_owner = 18973765
#12 0x00f4eb38 in KSelectionWatcher::filterEvent (this=0x89cced0, 
    ev_P=0xbfb3a6fc) at ../../kdeui/util/kmanagerselection.cpp:468
No locals.
#13 0x00f50077 in KSelectionWatcher::Private::x11Event (this=0x8a31928, 
    ev_P=0xbfb3a6fc) at ../../kdeui/util/kmanagerselection.cpp:395
No locals.
#14 0x00ed8f46 in KApplication::x11EventFilter (this=0x8976798, 
    _event=0xbfb3a6fc) at ../../kdeui/kernel/kapplication.cpp:911
	_container_ = {c = {{p = {static shared_null = {ref = {
            _q_value = 11493}, alloc = 0, begin = 0, end = 0, sharable = 1, 
          array = {0x0}}, d = 0x8a0dff8}, d = 0x8a0dff8}}, brk = 0, i = {
    i = 0x8a0e014}, e = {i = 0x8a0e01c}}
#15 0x05b7fd70 in qt_x11EventFilter (ev=0xbfb3a6fc)
    at kernel/qapplication_x11.cpp:375
	unused = 0
#16 0x05b91375 in QApplication::x11ProcessEvent (this=0x8976798, 
    event=0xbfb3a6fc) at kernel/qapplication_x11.cpp:3271
	userTime = <value optimized out>
	widget = (struct QETWidget *) 0x89b3268
	keywidget = (struct QETWidget *) 0x0
	grabbed = false
	d = (class QApplicationPrivate * const) 0x8976970
	time = <value optimized out>
#17 0x05bbf502 in x11EventSourceDispatch (s=0x8979700, callback=0, 
    user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
	event = {type = 33, xany = {type = 33, serial = 188050, 
    send_event = 1, display = 0x89881d0, window = 252}, xkey = {type = 33, 
    serial = 188050, send_event = 1, display = 0x89881d0, window = 252, 
    root = 516, subwindow = 32, time = 5017574, x = 373, y = 18973765, 
    x_root = 0, y_root = 0, state = 0, keycode = 2, same_screen = 1}, 
  xbutton = {type = 33, serial = 188050, send_event = 1, display = 0x89881d0, 
    window = 252, root = 516, subwindow = 32, time = 5017574, x = 373, 
    y = 18973765, x_root = 0, y_root = 0, state = 0, button = 2, 
    same_screen = 1}, xmotion = {type = 33, serial = 188050, send_event = 1, 
    display = 0x89881d0, window = 252, root = 516, subwindow = 32, 
    time = 5017574, x = 373, y = 18973765, x_root = 0, y_root = 0, state = 0, 
    is_hint = 2 '\002', same_screen = 1}, xcrossing = {type = 33, 
    serial = 188050, send_event = 1, display = 0x89881d0, window = 252, 
    root = 516, subwindow = 32, time = 5017574, x = 373, y = 18973765, 
    x_root = 0, y_root = 0, mode = 0, detail = 2, same_screen = 1, focus = 0, 
    state = 0}, xfocus = {type = 33, serial = 188050, send_event = 1, 
    display = 0x89881d0, window = 252, mode = 516, detail = 32}, xexpose = {
    type = 33, serial = 188050, send_event = 1, display = 0x89881d0, 
    window = 252, x = 516, y = 32, width = 5017574, height = 373, 
    count = 18973765}, xgraphicsexpose = {type = 33, serial = 188050, 
    send_event = 1, display = 0x89881d0, drawable = 252, x = 516, y = 32, 
    width = 5017574, height = 373, count = 18973765, major_code = 0, 
    minor_code = 0}, xnoexpose = {type = 33, serial = 188050, send_event = 1, 
    display = 0x89881d0, drawable = 252, major_code = 516, minor_code = 32}, 
  xvisibility = {type = 33, serial = 188050, send_event = 1, 
    display = 0x89881d0, window = 252, state = 516}, xcreatewindow = {
    type = 33, serial = 188050, send_event = 1, display = 0x89881d0, 
    parent = 252, window = 516, x = 32, y = 5017574, width = 373, 
    height = 18973765, border_width = 0, override_redirect = 0}, 
  xdestroywindow = {type = 33, serial = 188050, send_event = 1, 
    display = 0x89881d0, event = 252, window = 516}, xunmap = {type = 33, 
    serial = 188050, send_event = 1, display = 0x89881d0, event = 252, 
    window = 516, from_configure = 32}, xmap = {type = 33, serial = 188050, 
    send_event = 1, display = 0x89881d0, event = 252, window = 516, 
    override_redirect = 32}, xmaprequest = {type = 33, serial = 188050, 
    send_event = 1, display = 0x89881d0, parent = 252, window = 516}, 
  xreparent = {type = 33, serial = 188050, send_event = 1, 
    display = 0x89881d0, event = 252, window = 516, parent = 32, x = 5017574, 
    y = 373, override_redirect = 18973765}, xconfigure = {type = 33, 
    serial = 188050, send_event = 1, display = 0x89881d0, event = 252, 
    window = 516, x = 32, y = 5017574, width = 373, height = 18973765, 
    border_width = 0, above = 0, override_redirect = 0}, xgravity = {
    type = 33, serial = 188050, send_event = 1, display = 0x89881d0, 
    event = 252, window = 516, x = 32, y = 5017574}, xresizerequest = {
    type = 33, serial = 188050, send_event = 1, display = 0x89881d0, 
    window = 252, width = 516, height = 32}, xconfigurerequest = {type = 33, 
    serial = 188050, send_event = 1, display = 0x89881d0, parent = 252, 
    window = 516, x = 32, y = 5017574, width = 373, height = 18973765, 
    border_width = 0, above = 0, detail = 0, value_mask = 2}, xcirculate = {
    type = 33, serial = 188050, send_event = 1, display = 0x89881d0, 
    event = 252, window = 516, place = 32}, xcirculaterequest = {type = 33, 
    serial = 188050, send_event = 1, display = 0x89881d0, parent = 252, 
    window = 516, place = 32}, xproperty = {type = 33, serial = 188050, 
    send_event = 1, display = 0x89881d0, window = 252, atom = 516, time = 32, 
    state = 5017574}, xselectionclear = {type = 33, serial = 188050, 
    send_event = 1, display = 0x89881d0, window = 252, selection = 516, 
    time = 32}, xselectionrequest = {type = 33, serial = 188050, 
    send_event = 1, display = 0x89881d0, owner = 252, requestor = 516, 
    selection = 32, target = 5017574, property = 373, time = 18973765}, 
  xselection = {type = 33, serial = 188050, send_event = 1, 
    display = 0x89881d0, requestor = 252, selection = 516, target = 32, 
    property = 5017574, time = 373}, xcolormap = {type = 33, serial = 188050, 
    send_event = 1, display = 0x89881d0, window = 252, colormap = 516, 
    c_new = 32, state = 5017574}, xclient = {type = 33, serial = 188050, 
    send_event = 1, display = 0x89881d0, window = 252, message_type = 516, 
    format = 32, data = {
      b = "æ\217L\000u\001\000\000E\204!\001\000\000\000\000\000\000\000", 
      s = {-28698, 76, 373, 0, -31675, 289, 0, 0, 0, 0}, l = {5017574, 373, 
        18973765, 0, 0}}}, xmapping = {type = 33, serial = 188050, 
    send_event = 1, display = 0x89881d0, window = 252, request = 516, 
    first_keycode = 32, count = 5017574}, xerror = {type = 33, 
    display = 0x2de92, resourceid = 1, serial = 144212432, 
    error_code = 252 'ü', request_code = 0 '\0', minor_code = 0 '\0'}, 
  xkeymap = {type = 33, serial = 188050, send_event = 1, display = 0x89881d0, 
    window = 252, 
    key_vector = "\004\002\000\000 \000\000\000æ\217L\000u\001\000\000E\204!\001", '\0' <repeats 11 times>}, pad = {33, 188050, 1, 144212432, 252, 516, 32, 
    5017574, 373, 18973765, 0, 0, 0, 2, 1, 0, 0, 1667327602, 101, 32, 3, 0, 
    41, 144910008}}
	marker = 188240
#18 0x0061be78 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
No symbol table info available.
#19 0x0061f720 in ?? () from /lib/libglib-2.0.so.0
No symbol table info available.
#20 0x0061f853 in g_main_context_iteration () from /lib/libglib-2.0.so.0
No symbol table info available.
#21 0x002f802c in QEventDispatcherGlib::processEvents (this=0x8901a58, flags=
      {i = 36}) at kernel/qeventdispatcher_glib.cpp:327
	d = (QEventDispatcherGlibPrivate * const) 0x8978a90
	canWait = true
	result = <value optimized out>
#22 0x05bbebe5 in QGuiEventDispatcherGlib::processEvents (this=0x8901a58, 
    flags={i = 36}) at kernel/qguieventdispatcher_glib.cpp:202
	d = (QGuiEventDispatcherGlibPrivate * const) 0x8901a68
	returnValue = true
#23 0x002cbc79 in QEventLoop::processEvents (this=0xbfb3a9f4, 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
	d = (QEventLoopPrivate * const) 0x8bfc280
#24 0x002cc0ca in QEventLoop::exec (this=0xbfb3a9f4, flags={i = 0})
    at kernel/qeventloop.cpp:201
	d = (QEventLoopPrivate * const) 0x8bfc280
	app = <value optimized out>
#25 0x002ce53f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
	threadData = (QThreadData *) 0x88ffe48
	eventLoop = {<QObject> = {_vptr.QObject = 0x3bf7a8, 
    static staticMetaObject = {d = {superdata = 0x0, 
        stringdata = 0x366ba0 "QObject", data = 0x366c40, 
        extradata = 0x3bb1b8}}, d_ptr = 0x8bfc280, 
    static staticQtMetaObject = {d = {superdata = 0x0, 
        stringdata = 0x370380 "Qt", data = 0x373700, extradata = 0x0}}}, 
  static staticMetaObject = {d = {superdata = 0x3bb1a8, 
      stringdata = 0x3787a0 "QEventLoop", data = 0x3787c0, extradata = 0x0}}}
	returnCode = -1
#26 0x05b1ddd7 in QApplication::exec () at kernel/qapplication.cpp:3525
No locals.
#27 0x0694029e in ?? ()
No symbol table info available.
#28 0x0804dde1 in launch (argc=<value optimized out>, 
    _name=<value optimized out>, args=<value optimized out>, cwd=0x0, envc=0, 
    envs=0x8914d89 "", reset_env=false, tty=0x0, avoid_loops=false, 
    startup_id_str=0x80511a5 "0") at ../../kinit/kinit.cpp:677
	l = {<QObject> = {_vptr.QObject = 0x3bf3c8, 
    static staticMetaObject = {d = {superdata = 0x0, 
        stringdata = 0x366ba0 "QObject", data = 0x366c40, 
        extradata = 0x3bb1b8}}, d_ptr = 0x893ada0, 
    static staticQtMetaObject = {d = {superdata = 0x0, 
        stringdata = 0x370380 "Qt", data = 0x373700, extradata = 0x0}}}, 
  static staticMetaObject = {d = {superdata = 0x3bb1a8, 
      stringdata = 0x378020 "QLibrary", data = 0x3780a0, extradata = 0x0}}, 
  d = 0x893b6d0, did_load = true}
	sym = <value optimized out>
	exec = <value optimized out>
	lib = {static null = {<No data fields>}, static shared_null = {ref = {
      _q_value = 5778}, alloc = 0, size = 0, data = 0x80532ca, clean = 0, 
    simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, 
    reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 75}, 
    alloc = 0, size = 0, data = 0x3c046e, clean = 0, simpletext = 0, 
    righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {
      0}}, d = 0x892ef20, static codecForCStrings = 0x0}
	execpath = {static shared_null = {ref = {_q_value = 2125}, alloc = 0, 
    size = 0, data = 0x80532dc "", array = ""}, static shared_empty = {ref = {
      _q_value = 18}, alloc = 0, size = 0, data = 0x3c0398 "", array = ""}, 
  d = 0x892ed00}
	name = {static shared_null = {ref = {_q_value = 2125}, alloc = 0, 
    size = 0, data = 0x80532dc "", array = ""}, static shared_empty = {ref = {
      _q_value = 18}, alloc = 0, size = 0, data = 0x3c0398 "", array = ""}, 
  d = 0x892fb20}
	exec = {static shared_null = {ref = {_q_value = 2125}, alloc = 0, 
    size = 0, data = 0x80532dc "", array = ""}, static shared_empty = {ref = {
      _q_value = 18}, alloc = 0, size = 0, data = 0x3c0398 "", array = ""}, 
  d = 0x892ed00}
	libpath = {static null = {<No data fields>}, static shared_null = {
    ref = {_q_value = 5778}, alloc = 0, size = 0, data = 0x80532ca, 
    clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, 
    reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 75}, 
    alloc = 0, size = 0, data = 0x3c046e, clean = 0, simpletext = 0, 
    righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {
      0}}, d = 0x892f030, static codecForCStrings = 0x0}
	startup_id = {d = 0x892fad0}
#29 0x0804ea35 in handle_launcher_request (sock=<value optimized out>, 
    who=<value optimized out>) at ../../kinit/kinit.cpp:1169
	tty = 0x0
	avoid_loops = 0
	arg_n = <value optimized out>
	args = 0x8914d85 ""
	pid = <value optimized out>
	response_header = {cmd = 4, arg_length = 4}
	envc = <value optimized out>
	envs = 0x8914d89 ""
	kdedisplay = {static shared_null = {ref = {_q_value = 2125}, 
    alloc = 0, size = 0, data = 0x80532dc "", array = ""}, 
  static shared_empty = {ref = {_q_value = 18}, alloc = 0, size = 0, 
    data = 0x3c0398 "", array = ""}, d = 0x80532cc}
	response_data = <value optimized out>
	l = <value optimized out>
	name = 0x8914d74 "/usr/bin/krunner"
	cwd = 0x0
	startup_id_str = 0x80511a5 "0"
	olddisplay = {static shared_null = {ref = {_q_value = 2125}, 
    alloc = 0, size = 0, data = 0x80532dc "", array = ""}, 
  static shared_empty = {ref = {_q_value = 18}, alloc = 0, size = 0, 
    data = 0x3c0398 "", array = ""}, d = 0x8938480}
	request_header = {cmd = 12, arg_length = 29}
	request_data = 0x8914d70 "\001"
	result = <value optimized out>
#30 0x0804eeac in handle_requests (waitForPid=<value optimized out>)
    at ../../kinit/kinit.cpp:1362
	wr_set = {fds_bits = {0 <repeats 32 times>}}
	exit_pid = <value optimized out>
	exit_status = 0
	c = 0 '\0'
	rd_set = {fds_bits = {128, 0 <repeats 31 times>}}
	e_set = {fds_bits = {0 <repeats 32 times>}}
	result = <value optimized out>
	max_sock = <value optimized out>
#31 0x0804fbaf in main (argc=2, argv=0xbfb3b244, envp=0xbfb3b250)
    at ../../kinit/kinit.cpp:1793
	pid = <value optimized out>
	do_fork = true
	launch_klauncher = 1
	launch_kded = 1
	keep_running = 1
Comment 9 Michael Pyne 2009-10-14 02:53:43 UTC
Well in that case my working theory is that KPixmapCache::deleteCache() should not call KPixmapCache::discard() for every cache, but only once.  It would be easier for me to fix if I can reproduce though :-/
Comment 10 Jonathan Thomas 2009-12-13 05:17:32 UTC
*** Bug 203794 has been marked as a duplicate of this bug. ***
Comment 11 Fredrik Höglund 2009-12-26 16:11:50 UTC
*** Bug 218560 has been marked as a duplicate of this bug. ***
Comment 12 Gilboa Davara 2009-12-27 14:23:25 UTC
Assuming that this is duplicate bug - can OR change the version of 4.3?
Comment 13 Nicolas L. 2010-01-11 16:47:31 UTC
*** Bug 188951 has been marked as a duplicate of this bug. ***
Comment 14 Fredrik Höglund 2010-01-22 23:03:18 UTC
*** Bug 223784 has been marked as a duplicate of this bug. ***
Comment 15 Dario Andres 2010-02-05 23:27:34 UTC
Reporter from bug 225191 seems to be able to reproduce this crash a lot of times (on 4.4RC3) when changing Plasma Theme
Comment 16 Jonathan Thomas 2010-02-23 19:00:12 UTC
Yeah, anything that causes a fair amount of activity with the pixmap cache is prone to cause this crash.
Comment 17 Sebastian Sauer 2010-02-23 20:01:19 UTC
@Michael Pyne from comment #9

The last time we both had both fun with the KPixmapCache I remember to have added a comment stating that the reason may, at least for some of the crashers, that access happens unsynchronized. Looking at the backtraces it seems this can be the reason for the latest crashes, no?

I mean that the mmap'd file is deleted while other processes may still read and write into the file. There is no synchronization that makes sure different processes play well together.

QPixmapCache does not have that problem cause the cache is not shared between processes. Since KPixmapCache does shared the cache-file between processes, synchronization is needed in the same way it would be needed if QPixmapCache would be used in different threads.

Or what do I miss here?
Comment 18 Michael Pyne 2010-02-24 05:09:41 UTC
The synchronization is definitely wrong. I'm currently working on simplifying the usage/locking of the KPixmapCache but unfortunately I only get to work on it about 2 days a week at this point. I would have committed a kludge to hold over for now but I haven't been able to find something that still works in all cases either.
Comment 19 Jonathan Thomas 2010-02-24 21:36:46 UTC
*** Bug 228371 has been marked as a duplicate of this bug. ***
Comment 20 Michael Pyne 2010-02-25 06:10:22 UTC
Created attachment 41086 [details]
Kludge to at least try to more sanely discard the cache

This patch tries to make the cache discarding/deletion less error-prone by:

1) Holding the lock while the cache is deleted (although I still see lots of messages complaining of being unable to either obtain or remove the lock -- this still needs lots of love.

2) Not actually deleting anything if discarding the cache. Instead the index is just updated to have the root entry point to nothing. Cache still seems to work in my testing but I have a fairly fast system, so please double-check

3) Using KSaveFile when performing the "recreate cache files" step instead of overwriting the disk files directly. This should lead to processes that do not know that the cache got swiped still working, since they (if I'm understanding this right) will be operating on the inode of the old file which was unlinked but not truncated or overwritten.

PLEASE PLEASE PLEASE keep in mind that simply because I love you all, this code is written at a time when I really need to be sleeping instead (instead I'm not even on caffeine) so perhaps let's not test this on the precious family photos?

My testing procedure has been changing the icon theme and changing the Plasma theme. Changing the Plasma theme only works once for me but I didn't test prior to my change so I'm not sure if that's my fault or Plasma's. Feel free to let me know if it works or doesn't, but I won't be able to check the progress for about another 21 hours or so, which means I won't even get a chance to work on it tomorrow.
Comment 21 Dario Andres 2010-02-26 12:49:29 UTC
*** Bug 225191 has been marked as a duplicate of this bug. ***
Comment 22 Dario Andres 2010-02-26 12:52:09 UTC
Quick question: could this cause spontaneous Plasma and KWin quits/crashes when
changing the Plasma theme ? (the pixmap cache is discarded and reloaded); like
in bug 228495 (and bug 225191) ...
Regards
Comment 23 Sebastian Sauer 2010-02-26 18:26:21 UTC
@Dario from comment #22
Yes, that can happen. Usually a backtrace will then show that it crashes in KPixmapCache.
Comment 24 Dario Andres 2010-02-26 18:34:53 UTC
We got some reports  (and I experienced some of them too) about applications closing without crashing (both Plasma and KWin). At least, DrKonqi didn't appeared. Could that be possible ?
Comment 25 Sebastian Sauer 2010-02-26 18:51:13 UTC
@Michael Payne from comment #20

 void KPixmapCache::deleteCache(const QString& name)
 {
-    foreach (KPixmapCache::Private *d, Private::mCaches) {
-        if (d->mName == name && d->mInited) {
-            d->q->discard();
-        }
-    }
+    QString indexFile = KGlobal::dirs()->locateLocal("cache", "kpc/" + name +
".index");
+    QString dataFile  = KGlobal::dirs()->locateLocal("cache", "kpc/" + name +
".data");
+
+    QFile::remove(indexFile);
+    QFile::remove(dataFile);
 }

Isn't that exactly what we don't want? I mean what we do now is to just delete
the cache file, without synchronization, without closing the mmap'd files, ...
and backtraces like the one from bug #225191 do show that
KPixmapCache::deleteCache is also called to refresh the cache if for example
the theme changed.

Or was that only a testcase? :)
Comment 26 Sebastian Sauer 2010-02-26 18:51:27 UTC
@Dario Andres from comment #24
iirc Plasma explicit disables DrKonqi to be able to auto-restart on crash and I would not wonder if KWin does the same. So, that would explain why DrKonqi does not show up. iirc there was a way to disable that behavior but I don't remember how :-/ There can be a lot of reasons for the crashes. Maybe this bug, maybe another...
Comment 27 Dario Andres 2010-02-26 19:30:04 UTC
*** Bug 228495 has been marked as a duplicate of this bug. ***
Comment 28 Michael Pyne 2010-02-27 00:36:52 UTC
Sebastian, my understanding is that merely unlinking a file is safe, even if it's mapped (and even if not, it's at least no worse than what we're doing now :-/).

A problem does occur if you truncate the file first, which I try to avoid here. Directly overwriting a file is also bad (especially when it's unlocked) which is why I switched elsewhere to using KSaveFile.

Has *anyone* tested the patch who was able to reproduce before?
Comment 29 Jonathan Thomas 2010-02-27 22:21:26 UTC
Unfortunately I've not personally found a way to reproduce this reliably enough to test the patch... If any K/Ubuntu user subscribed can, I'll gladly provide packages with this patch in my PPA for testing.
Comment 30 Michael Pyne 2010-02-28 06:06:14 UTC
I will note that even if you can't reproduce the crash, testing the patch will help ensure no unexpected performance regressions and that no other crashes are introduced. ;)
Comment 31 Lucian Marinescu 2010-03-02 15:05:49 UTC
I will test your patch, Jonathan. Just put it up in the ppa.
Comment 32 Dario Andres 2010-03-03 18:05:11 UTC
*** Bug 229256 has been marked as a duplicate of this bug. ***
Comment 33 Tom Kijas 2010-03-03 23:47:04 UTC
Created attachment 41304 [details]
New crash information added by DrKonqi

I got after launching wine application (HOMAM V) and disabled compositing. I do not know what had been affected by this but had to submit the bug rep.
Comment 34 Craig Magina 2010-03-04 02:00:26 UTC
Created attachment 41306 [details]
New crash information added by DrKonqi

It crashed after I launched systemsettings.  I am running Kubuntu 10.04 32-bit.
Comment 35 Ruchir Brahmbhatt 2010-03-04 02:12:28 UTC
krunner has became quite unstable these days. It crashes at least 2-3 times a day randomly while opening any application.
Comment 36 Fredrik Höglund 2010-03-04 07:30:17 UTC
*** Bug 229191 has been marked as a duplicate of this bug. ***
Comment 37 Martin Flöser 2010-03-04 09:37:05 UTC
*** Bug 229372 has been marked as a duplicate of this bug. ***
Comment 38 Dario Andres 2010-03-04 13:13:26 UTC
*** Bug 229354 has been marked as a duplicate of this bug. ***
Comment 39 Jonathan Thomas 2010-03-06 02:41:48 UTC
*** Bug 229639 has been marked as a duplicate of this bug. ***
Comment 40 Dario Andres 2010-03-06 12:11:34 UTC
*** Bug 229650 has been marked as a duplicate of this bug. ***
Comment 41 Christian Esken 2010-03-07 17:02:14 UTC
*** Bug 229782 has been marked as a duplicate of this bug. ***
Comment 42 Martin Flöser 2010-03-07 19:51:07 UTC
*** Bug 229868 has been marked as a duplicate of this bug. ***
Comment 43 Ivan Čukić 2010-03-08 13:51:20 UTC
*** Bug 229943 has been marked as a duplicate of this bug. ***
Comment 44 Raul Metsma 2010-03-09 09:19:44 UTC
Created attachment 41468 [details]
New crash information added by DrKonqi

Booted up
enabled nvidia twinview dual screen
and kmix crashed
Comment 45 Anne-Marie Mahfouf 2010-03-09 09:28:37 UTC
*** Bug 229914 has been marked as a duplicate of this bug. ***
Comment 46 Martin Flöser 2010-03-09 16:10:47 UTC
*** Bug 230103 has been marked as a duplicate of this bug. ***
Comment 47 Martin Flöser 2010-03-09 19:25:32 UTC
*** Bug 230119 has been marked as a duplicate of this bug. ***
Comment 48 Aaron J. Seigo 2010-03-09 19:31:26 UTC
*** Bug 230073 has been marked as a duplicate of this bug. ***
Comment 49 Aaron J. Seigo 2010-03-09 19:31:55 UTC
*** Bug 230081 has been marked as a duplicate of this bug. ***
Comment 50 Michael Pyne 2010-03-10 02:59:57 UTC
Reminder that there was a patch attached on 25 February that possibly works around this bug. I *will not* commit that patch with just myself being the tester though, so if you can test (even if you can't reproduce) please do so and report back.
Comment 51 Martin Flöser 2010-03-10 09:13:48 UTC
*** Bug 230169 has been marked as a duplicate of this bug. ***
Comment 52 Dario Andres 2010-03-10 12:44:22 UTC
As noted in bug 230174 and other reports, this also happen when changing composition/effects state (which triggers a Plasma theme/cache reload)

From bug 230174:
I'm on lucid, Since fglrx is not available, X is using the open ati driver. (I
guess). After installing newest X and rebooting the system, I tried to enable
the desktop effects. Just when I hit the OK Button on the confirmation screen,
I got the crash notification. No desktop effects are enabled now.
Comment 53 Dario Andres 2010-03-10 12:44:34 UTC
*** Bug 230174 has been marked as a duplicate of this bug. ***
Comment 54 Dario Andres 2010-03-10 12:47:02 UTC
Bug 230170 has a similar backtrace, is it also related?
Comment 55 Jonathan Thomas 2010-03-10 17:07:09 UTC
*** Bug 230216 has been marked as a duplicate of this bug. ***
Comment 56 Jonathan Thomas 2010-03-10 17:15:24 UTC
*** Bug 230170 has been marked as a duplicate of this bug. ***
Comment 57 Sebastian Sauer 2010-03-11 01:24:01 UTC
*** Bug 229726 has been marked as a duplicate of this bug. ***
Comment 58 Timothy Miller 2010-03-11 01:26:15 UTC
I wonder if there's a way for devs to search for "most dups" so that bugs like this will rise to the top of the heap.  But then again, for all I know, there could be countless other bugs with more dups than this one.
Comment 59 Aaron J. Seigo 2010-03-11 01:48:34 UTC
*** Bug 229655 has been marked as a duplicate of this bug. ***
Comment 60 Aaron J. Seigo 2010-03-11 01:48:52 UTC
*** Bug 230280 has been marked as a duplicate of this bug. ***
Comment 61 Christian Esken 2010-03-11 11:22:59 UTC
*** Bug 230281 has been marked as a duplicate of this bug. ***
Comment 62 Christian Esken 2010-03-11 11:23:20 UTC
*** Bug 230221 has been marked as a duplicate of this bug. ***
Comment 63 Jon Nelson 2010-03-11 17:29:00 UTC
Created attachment 41535 [details]
New crash information added by DrKonqi

Switching the Workspace theme from Silicon (which also results in strange effects on widgets like the network traffic widget) to Slim Glow and kaboom.
Comment 64 Jon Nelson 2010-03-11 17:33:19 UTC
Created attachment 41536 [details]
New crash information added by DrKonqi

plasma-desktop crashed when changing theme, and it appeared to take kwin and kdeinit4 with it.
Comment 65 Aaron J. Seigo 2010-03-11 20:09:40 UTC
*** Bug 230347 has been marked as a duplicate of this bug. ***
Comment 66 Aaron J. Seigo 2010-03-11 20:09:47 UTC
*** Bug 230338 has been marked as a duplicate of this bug. ***
Comment 67 Martin Flöser 2010-03-11 21:53:57 UTC
*** Bug 230368 has been marked as a duplicate of this bug. ***
Comment 68 Alessandro Ghersi 2010-03-12 03:27:23 UTC
Created attachment 41554 [details]
New crash information added by DrKonqi

Plasma crashes when changing style
Comment 69 markm999 2010-03-13 00:59:54 UTC
Created attachment 41579 [details]
New crash information added by DrKonqi

After changin the Fullscreen resolution in ManaWorld plasma crashed
Comment 70 Unknown 2010-03-13 12:35:57 UTC
Created attachment 41585 [details]
New crash information added by DrKonqi

After I typed the password for the screensaver and it was unlocked, Plasma crashed.
Comment 71 Martin Flöser 2010-03-13 16:24:40 UTC
*** Bug 230584 has been marked as a duplicate of this bug. ***
Comment 72 Dario Andres 2010-03-14 13:37:24 UTC
*** Bug 230528 has been marked as a duplicate of this bug. ***
Comment 73 Dario Andres 2010-03-14 14:05:12 UTC
*** Bug 230545 has been marked as a duplicate of this bug. ***
Comment 74 Thomas Lübking 2010-03-14 17:28:50 UTC
*** Bug 230731 has been marked as a duplicate of this bug. ***
Comment 75 Jorge Martinez 2010-03-14 18:30:04 UTC
Created attachment 41626 [details]
New crash information added by DrKonqi

I was changing the theme to glowglass. it always happen to some themes.
should "get new workspace" filter them ? by kde version?
Comment 76 Thomas Lübking 2010-03-14 20:00:09 UTC
*** Bug 230743 has been marked as a duplicate of this bug. ***
Comment 77 Michael Pyne 2010-03-14 20:21:44 UTC
*** Bug 230345 has been marked as a duplicate of this bug. ***
Comment 78 Dario Andres 2010-03-14 23:57:00 UTC
*** Bug 230643 has been marked as a duplicate of this bug. ***
Comment 79 Dario Andres 2010-03-15 13:09:28 UTC
*** Bug 230809 has been marked as a duplicate of this bug. ***
Comment 80 Lukas Dolezal 2010-03-15 19:55:42 UTC
Created attachment 41670 [details]
New crash information added by DrKonqi

Plasma crashes after changing plasma theme in appearence->theme or changing part of it in advanced->plasma theme details. In second case it crashes regularly after second change.
Comment 81 Thomas Lübking 2010-03-15 22:05:15 UTC
*** Bug 230883 has been marked as a duplicate of this bug. ***
Comment 82 Martin Flöser 2010-03-16 09:01:56 UTC
*** Bug 230875 has been marked as a duplicate of this bug. ***
Comment 83 Dario Andres 2010-03-16 12:27:05 UTC
*** Bug 230923 has been marked as a duplicate of this bug. ***
Comment 84 Dario Andres 2010-03-16 12:28:46 UTC
*** Bug 230904 has been marked as a duplicate of this bug. ***
Comment 85 Dario Andres 2010-03-16 13:56:19 UTC
*** Bug 230449 has been marked as a duplicate of this bug. ***
Comment 86 Dario Andres 2010-03-16 13:57:05 UTC
*** Bug 229948 has been marked as a duplicate of this bug. ***
Comment 87 Dario Andres 2010-03-16 13:57:52 UTC
*** Bug 229536 has been marked as a duplicate of this bug. ***
Comment 88 Dario Andres 2010-03-16 18:22:51 UTC
*** Bug 230973 has been marked as a duplicate of this bug. ***
Comment 89 Dario Andres 2010-03-16 20:46:57 UTC
*** Bug 231013 has been marked as a duplicate of this bug. ***
Comment 90 Michael Pyne 2010-03-17 03:08:18 UTC
*** Bug 227483 has been marked as a duplicate of this bug. ***
Comment 91 Michael Pyne 2010-03-17 03:09:33 UTC
*** Bug 227165 has been marked as a duplicate of this bug. ***
Comment 92 Michael Pyne 2010-03-17 03:38:13 UTC
SVN commit 1104231 by mpyne:

Commit possible stopgap fix for bug 182026 (the oh-so-famous KPixmapCache-hates-me bug) to
trunk to rather more proactively encourage testing.

It shouldn't resemble a Monday kdelibs patch, but I can't make guarantees since I can't
really reproduce this one at will anyways.

CCBUG:182026


 M  +56 -28    kpixmapcache.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1104231
Comment 93 Dario Andres 2010-03-17 12:59:56 UTC
*** Bug 231085 has been marked as a duplicate of this bug. ***
Comment 94 Dario Andres 2010-03-17 13:00:08 UTC
*** Bug 231069 has been marked as a duplicate of this bug. ***
Comment 95 Dario Andres 2010-03-17 15:40:29 UTC
*** Bug 231103 has been marked as a duplicate of this bug. ***
Comment 96 Gunther Piez 2010-03-17 15:47:36 UTC
Created attachment 41715 [details]
New crash information added by DrKonqi

Crash while switching off compositing.
Comment 97 Maksim Orlovich 2010-03-17 15:52:33 UTC
*** Bug 231059 has been marked as a duplicate of this bug. ***
Comment 98 Gunther Piez 2010-03-17 16:43:56 UTC
Just tested Michael Pynes patch against kdelibs-4.4.1 and it seems to work so far.
Comment 99 Jaroslav Reznik 2010-03-17 17:57:08 UTC
I was able to reproduce this issue by changing Plasma desktop theme. Seems this patch fixed it and at least - did not introduce any visible regressions (for now). We prepared testing packages for Fedora (see bug rhbz#568389) to collect more feedback.

Thanks!
Comment 100 Dario Andres 2010-03-17 22:44:18 UTC
*** Bug 231160 has been marked as a duplicate of this bug. ***
Comment 101 Dario Andres 2010-03-17 22:44:29 UTC
*** Bug 231158 has been marked as a duplicate of this bug. ***
Comment 102 Dario Andres 2010-03-17 22:48:55 UTC
*** Bug 231134 has been marked as a duplicate of this bug. ***
Comment 103 Dario Andres 2010-03-18 00:21:51 UTC
*** Bug 231169 has been marked as a duplicate of this bug. ***
Comment 104 Dario Andres 2010-03-18 12:38:30 UTC
*** Bug 231189 has been marked as a duplicate of this bug. ***
Comment 105 David Rankin 2010-03-18 15:18:25 UTC
Created attachment 41736 [details]
New crash information added by DrKonqi

Plasma crashed when switching themes from blend to glassified. Nothing special, just a but that needs fixing.
Comment 106 Dario Andres 2010-03-18 22:19:57 UTC
*** Bug 231248 has been marked as a duplicate of this bug. ***
Comment 107 Dario Andres 2010-03-18 22:20:32 UTC
*** Bug 231249 has been marked as a duplicate of this bug. ***
Comment 108 Diego 2010-03-19 09:16:20 UTC
Created attachment 41753 [details]
New crash information added by DrKonqi

Something strange I noted before the crash is that, when desktop compositing is disabled, I have weird colors in the panel on the secondary monitor. In particular half of it has inverted colours.

Turning on desktop effects results in:
a) desktop effects are fine;
b) crash of Kwin after 1 second;
c) disabling of desktop effects;
d) the colors in the panel are fine both for the second of desktop effects activated, and for the non composited desktop AFTER trying to enable effects (and getting KWin crash).

Going to attach a screenshot showing the problem in the panel.
Comment 109 Diego 2010-03-19 09:25:18 UTC
Created attachment 41754 [details]
Multi monitor desktop showing panel colours corruption

No modification to standard Plasma Air theme.
If you need full resolution detail of the panel just ask me.
Comment 110 Diego 2010-03-19 09:30:38 UTC
By the way: enabling desktop effects AFTER the first time works fine. I think this is because the panel corruption goes away after the first crash. Panel corruption reapppears if you turn off desktop effects and reboot (not sure about logout and login but I think it should be the same).
Comment 111 Diego 2010-03-19 09:33:04 UTC
Created attachment 41756 [details]
My multi monitor configuration.

In case it's relevant, this is my monitor configuration.
Comment 112 Jonathan Thomas 2010-03-20 02:11:57 UTC
I've been using the trunk patch against KDE 4.4.1 for a few days and have found no regressions. I even found an excuse to play a few kdegames. ;-)
Comment 113 Davide Rondini 2010-03-20 10:45:00 UTC
Created attachment 41776 [details]
New crash information added by DrKonqi

I'm experiencing the same bug in kde 4.4.1 (from Fedora 12 x86_64 repositories). I was disavling desktop effects from system settings and kmix crashed.
Comment 114 Martin Flöser 2010-03-20 14:12:28 UTC
*** Bug 231412 has been marked as a duplicate of this bug. ***
Comment 115 Dario Andres 2010-03-20 15:32:36 UTC
*** Bug 231414 has been marked as a duplicate of this bug. ***
Comment 116 Dario Andres 2010-03-20 16:39:04 UTC
*** Bug 231198 has been marked as a duplicate of this bug. ***
Comment 117 Dario Andres 2010-03-20 23:51:02 UTC
*** Bug 231471 has been marked as a duplicate of this bug. ***
Comment 118 Anni 2010-03-21 07:28:50 UTC
Created attachment 41797 [details]
New crash information added by DrKonqi

PCLinuxOS 2010
The problem appeared after attempt of changing Desktop Theme in Advanced Settings in kcontrol. The new settings were not applied.
Comment 119 Martin Flöser 2010-03-21 11:58:36 UTC
*** Bug 231520 has been marked as a duplicate of this bug. ***
Comment 120 Dario Andres 2010-03-21 13:12:56 UTC
*** Bug 231515 has been marked as a duplicate of this bug. ***
Comment 121 Dario Andres 2010-03-21 13:12:59 UTC
*** Bug 231529 has been marked as a duplicate of this bug. ***
Comment 122 Dario Andres 2010-03-21 13:13:02 UTC
*** Bug 231494 has been marked as a duplicate of this bug. ***
Comment 123 Dario Andres 2010-03-21 19:40:58 UTC
*** Bug 231568 has been marked as a duplicate of this bug. ***
Comment 124 Michael Pyne 2010-03-21 21:07:35 UTC
SVN commit 1106080 by mpyne:

Backport bugfix for 182026 (KRunner/Plasma crashes due to
KPixmapCache::discard) to KDE 4.4.2. This has had several days to brew in trunk
and the reaction from testers is quite favorable.

If you continue to receive crashes in KPixmapCache that don't start from
KPixmapCache::discard, it's a different bug which may already be reported.

If merely loading a cached icon causes a crash (e.g. a crash in QPixmap) you may have a
corrupted cache -- try removing /var/tmp/kdecache-$USER/kpc/*.{index,data} and restarting
KDE.

BUG:182026


 M  +56 -28    kpixmapcache.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1106080
Comment 125 Dario Andres 2010-03-21 21:09:41 UTC
*** Bug 231579 has been marked as a duplicate of this bug. ***
Comment 126 An00biS 2010-03-21 21:21:10 UTC
Created attachment 41818 [details]
New crash information added by DrKonqi

This crash occured after I invoked krandr through system tray icon. KDE crashed and restarted, but krandr was running. At the time, I worked with 2 monitors set to "clone". It was the second time I invoked krandr in that KDE session. 
The crash repeated when I clicked krandr tray icon another time. Again, krandr was running after KDE reset.

My configuration:
Intel945GM, Fedora12, KDE 4.1.1
2 Monitors: Notebook 1024x768, External 1920x1080
Comment 127 Dario Andres 2010-03-21 23:09:32 UTC
*** Bug 231590 has been marked as a duplicate of this bug. ***
Comment 128 Dario Andres 2010-03-22 00:33:20 UTC
*** Bug 231605 has been marked as a duplicate of this bug. ***
Comment 129 Dario Andres 2010-03-22 00:34:27 UTC
*** Bug 231604 has been marked as a duplicate of this bug. ***
Comment 130 Martin Flöser 2010-03-22 08:26:56 UTC
*** Bug 231614 has been marked as a duplicate of this bug. ***
Comment 131 Dario Andres 2010-03-22 13:13:05 UTC
*** Bug 231757 has been marked as a duplicate of this bug. ***
Comment 132 Dario Andres 2010-03-22 18:51:42 UTC
*** Bug 231806 has been marked as a duplicate of this bug. ***
Comment 133 Dario Andres 2010-03-22 21:36:39 UTC
*** Bug 231825 has been marked as a duplicate of this bug. ***
Comment 134 Dario Andres 2010-03-23 18:14:11 UTC
*** Bug 229968 has been marked as a duplicate of this bug. ***
Comment 135 Dario Andres 2010-03-24 12:54:44 UTC
*** Bug 231987 has been marked as a duplicate of this bug. ***
Comment 136 Dario Andres 2010-03-24 12:55:05 UTC
*** Bug 231980 has been marked as a duplicate of this bug. ***
Comment 137 Dario Andres 2010-03-24 12:55:22 UTC
*** Bug 231964 has been marked as a duplicate of this bug. ***
Comment 138 Michael Pyne 2010-03-25 03:21:45 UTC
SVN commit 1107208 by mpyne:

Make the pixmap cache actually work after my ::discard crash fix. (In trunk)

Thanks to Parker Coates for being the only one to notice. ;)

CCBUG:182026


 M  +2 -0      kpixmapcache.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1107208
Comment 139 Michael Pyne 2010-03-25 03:23:47 UTC
SVN commit 1107210 by mpyne:

Backport fix for a regression introduced in 4.4 branch to 4.4.2. (This bug was not in 4.4.1)
The issue is that my recent crash fix for the KPixmapCache Bug of Legend made the cache
stop working. It was caught by Parker Coates though so 4.4.2 should have the best of both
worlds.

CCBUG:182026


 M  +2 -0      kpixmapcache.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1107210
Comment 140 Martin Flöser 2010-03-25 08:01:39 UTC
*** Bug 232077 has been marked as a duplicate of this bug. ***
Comment 141 Dario Andres 2010-03-25 11:58:36 UTC
*** Bug 232075 has been marked as a duplicate of this bug. ***
Comment 142 Tommi Tervo 2010-03-25 17:38:45 UTC
*** Bug 232006 has been marked as a duplicate of this bug. ***
Comment 143 Jonathan Thomas 2010-03-25 18:02:21 UTC
*** Bug 232119 has been marked as a duplicate of this bug. ***
Comment 144 Christoph Feck 2010-03-25 20:50:12 UTC
*** Bug 232147 has been marked as a duplicate of this bug. ***
Comment 145 Christoph Feck 2010-03-25 20:53:40 UTC
*** Bug 230759 has been marked as a duplicate of this bug. ***
Comment 146 Dario Andres 2010-03-26 13:23:58 UTC
*** Bug 232168 has been marked as a duplicate of this bug. ***
Comment 147 Sebastian Sauer 2010-03-26 19:49:23 UTC
*** Bug 232258 has been marked as a duplicate of this bug. ***
Comment 148 Dario Andres 2010-03-26 20:14:15 UTC
*** Bug 232251 has been marked as a duplicate of this bug. ***
Comment 149 Dario Andres 2010-03-27 22:39:38 UTC
*** Bug 232393 has been marked as a duplicate of this bug. ***
Comment 150 Dario Andres 2010-03-27 22:41:39 UTC
*** Bug 232350 has been marked as a duplicate of this bug. ***
Comment 151 Dario Andres 2010-03-28 00:32:53 UTC
*** Bug 232410 has been marked as a duplicate of this bug. ***
Comment 152 Petar Petrov 2010-03-28 10:31:10 UTC
Created attachment 42306 [details]
New crash information added by DrKonqi

System Settings crash after enabling desktop effects. This crash occurred after installin the latest ATI driver -10.3.
Comment 153 Dario Andres 2010-03-28 14:41:13 UTC
*** Bug 232459 has been marked as a duplicate of this bug. ***
Comment 154 jonathan godoy 2010-03-28 17:18:24 UTC
como instalo esos drivers¡?? 



> From: marokanski.kazak@gmail.com
> To: wildwild_2@hotmail.com
> Subject: [Bug 182026] [Fixed in KDE SC 4.4.2 and 4.5] KRunner crashes / Plasma crashes when changing Theme (in KPixmapCache::Private::mmapFile()) [..., KPixmapCache::Private::init, KPixmapCache::discard, KPixmapCache::deleteCache, Plasma::ThemePrivate::discardCache]
> Date: Sun, 28 Mar 2010 10:31:39 +0200
> 
> https://bugs.kde.org/show_bug.cgi?id=182026
> 
> 
> 
> 
> 
> --- Comment #152 from Petar Petrov <marokanski kazak gmail com>  2010-03-28 10:31:10 ---
> Created an attachment (id=42306)
>  --> (http://bugs.kde.org/attachment.cgi?id=42306)
> New crash information added by DrKonqi
> 
> System Settings crash after enabling desktop effects. This crash occurred after
> installin the latest ATI driver -10.3.
> 
> -- 
> Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug.
 		 	   		  
_________________________________________________________________
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE
Comment 155 Thomas Lübking 2010-03-28 20:52:27 UTC
*** Bug 232501 has been marked as a duplicate of this bug. ***
Comment 156 xandry 2010-03-29 08:00:36 UTC
Created attachment 42334 [details]
New crash information added by DrKonqi

Crash was burn when i changing plasma workspace theme on "Air for Netbooks" or "Blackglass". Effects kwin not using.
Comment 157 Dario Andres 2010-03-30 14:47:09 UTC
*** Bug 232611 has been marked as a duplicate of this bug. ***
Comment 158 Dario Andres 2010-03-31 14:55:03 UTC
*** Bug 232707 has been marked as a duplicate of this bug. ***
Comment 159 Thomas Lübking 2010-04-03 02:54:46 UTC
*** Bug 233127 has been marked as a duplicate of this bug. ***