Bug 253665 - dolphin crashes when something changes in the icon cache?
Summary: dolphin crashes when something changes in the icon cache?
Status: RESOLVED WORKSFORME
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: kshareddatacache (show other bugs)
Version: 4.5
Platform: Debian unstable Linux
: NOR crash
Target Milestone: ---
Assignee: Peter Penz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-09 15:33 UTC by Janet
Modified: 2018-11-28 04:57 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Janet 2010-10-09 15:33:31 UTC
Version:           unspecified (using KDE 4.5.1) 
OS:                Linux

Since I updated to KDE 4.5 I often have dolphin crashes that take the whole plasma desktop down (black screen with lonely mouse cursor) so all I can do is restart X in that case. Therefore I don't know how to get a crash report. I use KDE 4.5.1 with dbus 1.4 - in case that matters.

What I've done when dolphin crashes that hard IMHO is always something that has to do with icons. I experiment a lot with icons, change a lot in the used theme, run "kbuildsycoca4 --noincremental". I cannot say that the crashes are related to kbuildsycoca for it does not happen directly after I run that command. The last time dolphin crashed that way I changed the icon size with the size slider in the status bar after I had added some icons to my theme and run kbuildsycoca. 

Everytime dolphin and plasma crashes that hard I cannot enter KDE anymore until I have deleted the file /var/tmp/kdecache-<myusername>/icon-cache.kcache

I guess this is related to one of the dolphin crash reports I found, but I cannot decide to which.

Reproducible: Sometimes




OS: Linux (i686) release 2.6.35-7.slh.1-aptosid-686
Compiler: cc
Comment 1 Peter Penz 2010-10-12 15:42:10 UTC
I've added Michael Pyne to CC, probably he can comment about this icon-cache thingy.
Comment 2 Michael Pyne 2010-10-15 04:04:58 UTC
KDE Platform 4.5.2 had a couple of KSharedDataCache fixes that might be related. Most likely is a fix for the cache defragmentation where the last page (out of thousands, mind) would not be updated correctly.

The full list is available at  http://www.kde.org/announcements/changelogs/changelog4_5_1to4_5_2.php

I would strongly encourage upgrading at least kdelibs to ensure that it's not a known bug. Failing that, there are a couple of bug reports still extant, including bug 243573 (crash under heavy load) and bug 253795 (crash when system time is changed) that might be relevant.
Comment 3 Janet 2010-10-27 15:26:25 UTC
I have updated kdelibs to 4.5.2 but the problem still persists.
Comment 4 Peter Paulsen 2010-11-21 17:07:41 UTC
This also happens with KDE SC 4.5.3. Dolphin crashes very hard some time after I "played" with the icon size slider. I don't know in which time slices the icon cache gets checked or rewritten but it seems at that moment dolphin gets knocked out. First dolphin vanishes from screen, then I know I have to be very quick to save my works because one by one all other applications and the desktop vanish too until only a black screen with mouse cursor is left. The whole process can take up to several minutes after dolphin crashed but you don't know which is the appliaction that follows first. High data loss danger! Did cost me some extra work... And it's always dolphin that triggers the crash.
Comment 5 Michael Pyne 2012-05-21 03:22:24 UTC
Git commit 561e6494bdd9a02cc8feef649f7dbbd40a1456c3 by Michael Pyne.
Committed on 20/05/2012 at 00:13.
Pushed by mpyne into branch 'KDE/4.8'.

kshareddatacache: Validate cache page size.

This commit ensures that the cache page size is actually a power-of-2
and within the band of possible sizes that could possibly have been set.

If this is not the case the cache is assumed corrupted and reset.

This should help with any cache-corruption bugs caused by a wrong cache
page size (although these don't exactly make themselves obvious). More
fixes to follow...

This one /should/ fix 274252 outright and may be of interest to several
others.
Related: bug 274252, bug 249362, bug 243573, bug 281217, bug 297815, bug 293954, bug 293447, bug 270915, bug 255233
FIXED-IN:4.8.4

M  +26   -1    kdecore/util/kshareddatacache.cpp

http://commits.kde.org/kdelibs/561e6494bdd9a02cc8feef649f7dbbd40a1456c3
Comment 6 Michael Pyne 2012-05-21 03:22:30 UTC
Git commit ca2a6a59784232857a35b313adc9599efb87bd5e by Michael Pyne.
Committed on 21/05/2012 at 01:19.
Pushed by mpyne into branch 'KDE/4.8'.

kshareddatacache: Adopt KSDCCorrupted for exceptional errors.

This involves converting many present assertions (which crash no matter
what) and error-code return values (which have to be checked everywhere
the return value is used at) into using the KSDCCorrupted exception.

The nice thing about using the exception is that it can be trapped and
handled so that it does not cause an application crash.

There's still a bit more to do -- the end goal is that all accesses to
shm, no matter how minor, are vetted beforehand to ensure it won't cause
a page fault or bus violation.
Related: bug 249362, bug 243573, bug 281217, bug 297815, bug 293954, bug 293447, bug 270915, bug 255233

M  +49   -34   kdecore/util/kshareddatacache.cpp

http://commits.kde.org/kdelibs/ca2a6a59784232857a35b313adc9599efb87bd5e
Comment 7 Andrew Crouthamel 2018-10-29 22:26:43 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Bug Janitor Service 2018-11-13 14:28:21 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 9 Bug Janitor Service 2018-11-28 04:57:02 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!