[Bug 163050] Dolphin freezes when mouse is over files

Michael Pyne mpyne at purinchu.net
Fri Jun 6 03:02:57 CEST 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=163050         




------- Additional Comments From mpyne purinchu net  2008-06-06 03:02 -------
Seems to be a Strigi bug (I think Strigi is still used for KFileMetaInfo even if you do not use it for disk indexing).

I run Dolphin in callgrind while getting info on /dev/zero and it looks like the problem is in src/streamanalyzer/streamanalyzer.cpp.

Namely near the bottom of the analyze() function:

        do {
            if (!idx.config().indexMore()) {
                removeIndexable(idx.depth());
                return -1;
            }
            ready = input->size() != -1;
            vector<StreamThroughAnalyzer*>::iterator ts;
            for (ts = tIter->begin(); ready && ts != tIter->end(); ++ts) {
                ready = (*ts)->isReadyWithStream();
            }
            if (!ready) {
                input->skip(skipsize);
                if (skipsize < 131072) {
                    skipsize *= 4;
                }
            }
        } while (!ready && input->status() == Ok);

This loop runs forever.  Presumably /dev/zero is always ready to read, with an OK status since it cannot EOF.

This probably also causes the slowdown on the huge .avi files as strigi reads *the entire file* for some reason (even according to the comments).  I'm not exactly sure why the code makes it to this case however.

The last commit involving the analyze function doesn't seem to have caused it.  I haven't checked the latest commit yet (something about enabling more analyzers).

P.S. does strigi have a entry in bugs.kde.org?  I can't seem to find a way to reassign this to strigi.  We do have a nepomuk but with no strigi subcategory.


More information about the Kdelibs-bugs mailing list