Summary: | "Guess tags" hangs with high CPU use | ||
---|---|---|---|
Product: | [Applications] amarok | Reporter: | Nicos Gollan <gtdev> |
Component: | general | Assignee: | Amarok Developers <amarok-bugs-dist> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | teo |
Priority: | NOR | ||
Version: | 2.0 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
Backtrace generated by sending a SIGSEGV to the hanging application
Fix for case conversion code in the tag guesser New patch Even newer patch, should (almost) comply with coding guidelines |
Description
Nicos Gollan
2009-01-09 18:44:38 UTC
Created attachment 30065 [details]
Backtrace generated by sending a SIGSEGV to the hanging application
Thread 1 looks promising
Created attachment 30077 [details]
Fix for case conversion code in the tag guesser
Case conversion is buggy. The patch (against r908562) provides a rewrite and slight refactoring of the relevant code.
SVN commit 908597 by mrnjavac: Rewrite of the case conversion code in TagGuesser and fix for an infinite loop bug. Thanks Nicos Gollan for the patch. BUG: 180164 M +51 -29 TagGuesser.cpp M +2 -0 TagGuesser.h WebSVN link: http://websvn.kde.org/?view=rev&revision=908597 Created attachment 30107 [details]
New patch
This patch is a slight refinement. The case conversion code is now completely outside the TagGuesser. There's mostly a single change: apostrophes are now handled as word characters, so e.g. "that's" will not be converted to "That'S".
The whole thing is a language-specific bag of fleas, but it should now be more maintainable. I also have a set of unit tests using Qt's framework floating around, if anybody should be interested.
Created attachment 30108 [details]
Even newer patch, should (almost) comply with coding guidelines
I hope this one is better. Should also make r908979 unnecessary.
Your patch is being reviewed. We appreciate your fix to adhere to our coding style guidelines. reopening so we don't forget about the patch Patch reviewed and committed, again thanks Nicos Gollan. |