Summary: | nepomukindexer runs endlessly at 100% CPU on 1 core when the attached file is indexed | ||
---|---|---|---|
Product: | nepomuk | Reporter: | Aljaž Kolšek <aljazek> |
Component: | fileindexer | Assignee: | Nepomuk Bugs Coordination <nepomuk-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | alejandronova, bladud, nepomuk-bugs |
Priority: | NOR | ||
Version: | 4.11.0 | ||
Target Milestone: | --- | ||
Platform: | Kubuntu | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/nepomuk-core/fb39a0a03e7abb197cde34d2e0b7dc0c4ecf9c07 | Version Fixed In: | 4.11.1 |
Attachments: | This is a file that causes the crash. |
Description
Aljaž Kolšek
2013-08-17 19:18:46 UTC
Created attachment 81759 [details]
This is a file that causes the crash.
This file causes nepomukindexer to run endlessly.
Thanks - actually I can't open it in LibreOffice either here (although that is no excuse). It brings up a Calc text import box. What sort of a file is this? This is a presentation I got from a coworker, but it doesn't work. In fact, it doesn't even open in MS powerpoint...I think your coworker is playing tricks on you. But nepomuk should not choke on any files, even the most broken, so this should still be fixed. I'm not really sure what happened with that presentation, but I am sure he wasn't playing tricks. When I open the file, more than 300 pages are filled with question marks and other nonsense. I'm getting the same with some epub files, so this is a bug on how nepomukfileindexer handles nepomukindexer crashes. Confirmed on my end. Aljaz: thank you for reporting the bug, I have fixed it and the fix should be in 4.11.1 Alejandro Nova: epub is a different extractor, so that is a different bug. Could you please file a different bug and attach the broken file? Thanks. I erased the offending file, so I cannot file another bug; my mistake. If I get the same behavior after 4.11.1 with another file I'll file a new bug. Git commit fb39a0a03e7abb197cde34d2e0b7dc0c4ecf9c07 by Simeon Bird. Committed on 18/08/2013 at 19:45. Pushed by sbird into branch 'KDE/4.11'. Office2007 Extractor: fix possible infinite loop. The Qt documentation says that when QXmlStreamReader.readNext() reports an error, atEnd() should be true, but it seems to be lying. Check for QXmlStreamReader.hasError() separately and break out of the reader loop. FIXED-IN: 4.11.1 M +2 -2 services/fileindexer/indexer/office2007extractor.cpp http://commits.kde.org/nepomuk-core/fb39a0a03e7abb197cde34d2e0b7dc0c4ecf9c07 |