| Summary: | Dolphin crashed on startup | ||
|---|---|---|---|
| Product: | [Applications] dolphin | Reporter: | Christopher Yeleighton <giecrilj> |
| Component: | general | Assignee: | Peter Penz <peter.penz19> |
| Status: | RESOLVED FIXED | ||
| Severity: | crash | ||
| Priority: | NOR | ||
| Version First Reported In: | 16.12.2 | ||
| Target Milestone: | --- | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | 4.5.0 | |
| Sentry Crash Report: | |||
|
Description
Christopher Yeleighton
2010-09-28 17:48:26 UTC
The bug occurs when loading the icon "user-home"; it looks like the expected decompressed size is completely bogus.
Please, it is not a fatal error to be unable to load an icon!
gdb dolphin
catch throw
run --nofork
f 3
at tools/qbytearray.cpp:554
554 d.reset(q_check_ptr(static_cast<QByteArray::Data *>(qRealloc(d.take(), sizeof(QByteArray::Data) + len))))
p len
$11 = 2023531987
b 548 if nbytes = 1024
f 8
at /usr/src/debug/kdelibs-4.4.4/kdeui/icons/kiconloader.cpp:1092
p/c name->d->array@9
$9 = {{117 'u'}, {115 's'}, {101 'e'}, {114 'r'}, {45 '-'}, {104 'h'}, {111 'o'}, {109 'm'}, {
101 'e'}}
strace shows that the icon cache in /var/tmp/kdecache-krzysztof/kpc/ has been damaged and Dolphin is unable to detect and handle this abnormal condition. Dirty fix: cd "/var/tmp/kdecache-$USERNAME" mv kpc kpc- and suddenly Dolphin starts normally. Shame on you! This is not a Dolphin bug, this is a kdelibs4 bug.
I would use the following logic:
try { load pixmap }
catch (...)
{
log; rebuild cache;
try { load pixmap } catch (...) { log failure; use missing pixmap instead; }}
*** Bug 252657 has been marked as a duplicate of this bug. *** I have archived the damaged kpc, in case you are interested in repro. I cannot attach it because it takes 12 MB compressed. Thanks for the report, since KDE SC 4.5 a new iconloader code is used in kdelibs which fixes this issue. |