Bug 241053 - Dolphin crashes on a big folder
Summary: Dolphin crashes on a big folder
Status: RESOLVED WORKSFORME
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 16.12.2
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Peter Penz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-07 22:54 UTC by Evengard
Modified: 2010-06-15 19:52 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
backtrace of the crash (7.35 KB, text/plain)
2010-06-07 22:54 UTC, Evengard
Details
konqueror crash - a bit more detailed (12.36 KB, text/plain)
2010-06-07 23:30 UTC, Evengard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Evengard 2010-06-07 22:54:31 UTC
Created attachment 47794 [details]
backtrace of the crash

Version:           unspecified (using KDE 4.4.3) 
OS:                Linux

I have a big folder (755 files, some of them are big, some of them are images, just a DL directory for everything from internet). I had Debian Squeeze with KDE 4.4.3 - and every time I tried to access it - Dolphin crashed. Then, I reinstalled and installed Arch with the same KDE 4.4.3 (kdemod). At the beginning, Dolphin opened the directory successfully, but after a while - it stoped again. It seems to be related to the fact that I have activated nepomuk+strigi, but I am not sure... I tried to disable it - but it didn't helped.
At the same time Konqueror still succeeds in opening the folder.
Dolphin at the same time seems to be less responsive than Konqueror.

Reproducible: Always

Steps to Reproduce:
Create a big, really big directory with different types of file within it, then try to open it dolphin

Actual Results:  
SEGFAULT

Expected Results:  
It should show the directory

Attaching the backtrace debugged with gdb... Hope it helps.
Comment 1 Evengard 2010-06-07 23:30:22 UTC
Created attachment 47796 [details]
konqueror crash - a bit more detailed

Hmmm... After setting in Konqueror same folder view params (display by group of type of file) I got a very similar crash and backtrace... Attaching. Also, the bug should be probably moved to KDE Libs.
Comment 2 Evengard 2010-06-07 23:37:14 UTC
Confirming - unticking the "enable grouping by sort type" makes the crash go away in Dolphin and in Konqueror. But this is still a bug...
Comment 3 Frank Reininghaus 2010-06-08 11:13:31 UTC
Thanks for the bug report! CC'ing the maintainer of KCategorizedView - maybe he has an idea.

From the attachment in comment 1:

konqueror(2811)/kdecore (services) KMimeTypeFactory::parseMagic: Now parsing  "/usr/share/mime/magic"
konqueror(2811)/kdecore (services) KMimeTypeFactory::parseMagic: Now parsing  "/home/evengard/.local/share/mime/magic"

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7810e75 in _int_malloc () from /lib/libc.so.6
(gdb) backtrace
#0  0x00007ffff7810e75 in _int_malloc () from /lib/libc.so.6
#1  0x00007ffff7813e40 in malloc () from /lib/libc.so.6
#2  0x00007ffff560cb93 in QString::fromLatin1_helper (str=0x7ffff5bd9aed "application/octet-stream", size=24) at tools/qstring.cpp:3603
#3  0x00007ffff561270d in QString::fromAscii_helper (str=0x1 <Address 0x1 out of bounds>, size=80) at tools/qstring.cpp:3638
#4  0x00007ffff5b0d87b in QString (mimeTypeName=...) at /usr/include/QtCore/qstring.h:413
#5  fallbackParent (mimeTypeName=...) at /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.3/kdecore/services/kmimetype.cpp:605
#6  parentMimeTypesList (mimeTypeName=...) at /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.3/kdecore/services/kmimetype.cpp:614
#7  0x00007ffff5b0ee4b in KMimeTypePrivate::inherits (this=<value optimized out>, mime=...)
    at /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.3/kdecore/services/kmimetype.cpp:639
#8  0x00007ffff5b0f01f in KMimeType::is (this=<value optimized out>, mimeTypeName=...)
    at /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.3/kdecore/services/kmimetype.cpp:654
#9  0x00007ffff67f8e65 in KFileItem::mimeComment (this=0x7fffff7ff9e0)
    at /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.3/kio/kio/kfileitem.cpp:727
#10 0x00007fffdf79553b in DolphinModel::displayRoleData (this=<value optimized out>, index=<value optimized out>)
    at /home/phil/kdemod/core/kdebase/src/kdebase-4.4.3/apps/dolphin/src/dolphinmodel.cpp:362
#11 0x00007fffdf796fad in DolphinModel::data (this=0xa93020, index=<value optimized out>, role=<value optimized out>)
    at /home/phil/kdemod/core/kdebase/src/kdebase-4.4.3/apps/dolphin/src/dolphinmodel.cpp:84
#12 0x00007ffff4da8fa1 in QSortFilterProxyModel::data (this=<value optimized out>, index=..., role=399415562)
    at itemviews/qsortfilterproxymodel.cpp:1678
#13 0x00007ffff6048276 in QModelIndex::data (this=<value optimized out>, index=<value optimized out>)
    at /usr/include/QtCore/qabstractitemmodel.h:398
#14 KCategorizedView::Private::categoryForIndex (this=<value optimized out>, index=<value optimized out>)
    at /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.3/kdeui/itemviews/kcategorizedview.cpp:373
#15 0x00007ffff604b963 in KCategorizedView::visualRect (this=0x103d3e0, index=...)
    at /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.3/kdeui/itemviews/kcategorizedview.cpp:603
#16 0x00007ffff6049f29 in KCategorizedView::Private::blockHeight (this=0x103d2d0, category=<value optimized out>)
    at /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.3/kdeui/itemviews/kcategorizedview.cpp:225
#17 0x00007ffff604a3fa in KCategorizedView::Private::blockPosition (this=0x103d2d0, category=<value optimized out>)
    at /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.3/kdeui/itemviews/kcategorizedview.cpp:202
#18 0x00007ffff604bb08 in KCategorizedView::visualRect (this=0x103d3e0, index=...)
    at /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.3/kdeui/itemviews/kcategorizedview.cpp:618
#19 0x00007ffff6049f5a in KCategorizedView::Private::blockHeight (this=0x103d2d0, category=<value optimized out>)
    at /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.3/kdeui/itemviews/kcategorizedview.cpp:226
---Type <return> to continue, or q <return> to quit---
#20 0x00007ffff604a3fa in KCategorizedView::Private::blockPosition (this=0x103d2d0, category=<value optimized out>)
    at /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.3/kdeui/itemviews/kcategorizedview.cpp:202
#21 0x00007ffff604bb08 in KCategorizedView::visualRect (this=0x103d3e0, index=...)
    at /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.3/kdeui/itemviews/kcategorizedview.cpp:618
#22 0x00007ffff6049f5a in KCategorizedView::Private::blockHeight (this=0x103d2d0, category=<value optimized out>)
    at /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.3/kdeui/itemviews/kcategorizedview.cpp:226
#23 0x00007ffff604a3fa in KCategorizedView::Private::blockPosition (this=0x103d2d0, category=<value optimized out>)
    at /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.3/kdeui/itemviews/kcategorizedview.cpp:202
#24 0x00007ffff604bb08 in KCategorizedView::visualRect (this=0x103d3e0, index=...)
    at /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.3/kdeui/itemviews/kcategorizedview.cpp:618
#25 0x00007ffff6049f5a in KCategorizedView::Private::blockHeight (this=0x103d2d0, category=<value optimized out>)
    at /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.3/kdeui/itemviews/kcategorizedview.cpp:226
#26 0x00007ffff604a3fa in KCategorizedView::Private::blockPosition (this=0x103d2d0, category=<value optimized out>)
    at /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.3/kdeui/itemviews/kcategorizedview.cpp:202
#27 0x00007ffff604bb08 in KCategorizedView::visualRect (this=0x103d3e0, index=...)
    at /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.3/kdeui/itemviews/kcategorizedview.cpp:618
#28 0x00007ffff6049f5a in KCategorizedView::Private::blockHeight (this=0x103d2d0, category=<value optimized out>)
    at /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.3/kdeui/itemviews/kcategorizedview.cpp:226
#29 0x00007ffff604a3fa in KCategorizedView::Private::blockPosition (this=0x103d2d0, category=<value optimized out>)
    at /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.3/kdeui/itemviews/kcategorizedview.cpp:202
#30 0x00007ffff604bb08 in KCategorizedView::visualRect (this=0x103d3e0, index=...)
    at /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.3/kdeui/itemviews/kcategorizedview.cpp:618
#31 0x00007ffff6049f5a in KCategorizedView::Private::blockHeight (this=0x103d2d0, category=<value optimized out>)
    at /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.3/kdeui/itemviews/kcategorizedview.cpp:226
#32 0x00007ffff604a3fa in KCategorizedView::Private::blockPosition (this=0x103d2d0, category=<value optimized out>)
    at /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.3/kdeui/itemviews/kcategorizedview.cpp:202
#33 0x00007ffff604bb08 in KCategorizedView::visualRect (this=0x103d3e0, index=...)
    at /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.3/kdeui/itemviews/kcategorizedview.cpp:618
#34 0x00007ffff6049f5a in KCategorizedView::Private::blockHeight (this=0x103d2d0, category=<value optimized out>)
    at /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.3/kdeui/itemviews/kcategorizedview.cpp:226
#35 0x00007ffff604a3fa in KCategorizedView::Private::blockPosition (this=0x103d2d0, category=<value optimized out>)
    at /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.3/kdeui/itemviews/kcategorizedview.cpp:202
#36 0x00007ffff604bb08 in KCategorizedView::visualRect (this=0x103d3e0, index=...)
---Type <return> to continue, or q <return> to quit---
Comment 4 Evengard 2010-06-13 13:02:12 UTC
Any news?...
Comment 5 Frank Reininghaus 2010-06-15 18:50:08 UTC
I've tried to reproduce this in some folders (sorting by type and grouping enabled), but did not succeed :-(

Some things you could do to help find the cause of the bug:

1. Try to get a valgrind log: Install valgrind, close all Dolphin windows and then start Dolphin using

valgrind dolphin --nofork 2> dolphin-log.txt

Dolphin will be quite slow then, but if you manage to reproduce the crash, the file 'dolphin-log.txt' might contain useful information and should be attached here.

2. Another possiblility: Try to find out if a particular file is responsible for the crash. You could try to copy the folder and then split it into two parts succesively (by moving half the files to another folder) until you find a file that might be responsible. But I'm not sure if that would be successful - the crash in malloc() indicates that something bad has happened before (memory corruption), so the crash might be unrelated to particular files.

Thanks for your help!
Comment 6 Evengard 2010-06-15 19:23:28 UTC
Neither do I... Probably the update to KDE 4.4.4 fixed it.
There is still some random crashes but they aren't part of this bug.
Closing as worksforme
Comment 7 Frank Reininghaus 2010-06-15 19:52:44 UTC
Thanks for the update!