Summary: | krunner crashes with spellcheck plugin | ||
---|---|---|---|
Product: | [Plasma] krunner | Reporter: | Rohan Garg <rohan> |
Component: | general | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | bladud, dns_hmpf, scarpino, yohan.pereira |
Priority: | NOR | ||
Version: | 4.7.3 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kdeplasma-addons/124e35885b8cd1b593b7b83a070bd0bdb5758661 | Version Fixed In: | 4.9.3 |
Sentry Crash Report: | |||
Attachments: | Valgrind log for krunner |
Description
Rohan Garg
2011-01-29 19:09:43 UTC
Created attachment 56628 [details]
Valgrind log for krunner
can confirm this one in 4.6.1 too. Pressing backspace is not needed just type spell aaaaaaaaaaaaaaaaaaaaa or something like that dont hold down the key type them slowly. probably has something to do with the sugested words thing. *** Bug 288372 has been marked as a duplicate of this bug. *** This is caused by the spellchecker calling "setLanguage", which is not thread-safe. I have a fix, submitted as https://git.reviewboard.kde.org/r/106242/ [related fix at: https://git.reviewboard.kde.org/r/106244/] awaiting review. Git commit 124e35885b8cd1b593b7b83a070bd0bdb5758661 by Simeon Bird. Committed on 20/10/2012 at 03:16. Pushed by sbird into branch 'KDE/4.9'. Fix the plasma spellchecker's 'foreign language' support. Previously this caused segfaults (even if not used) because it called setLanguage(), which is not thread-safe, in match(). Instead, this patch constructs a new speller safely for each new language, without deleting the old one. Old spellers are instead deleted on the teardown() signal. While we're at it, amend the language detection so that the user can type natural language names (eg, 'german') and have the spell-checker find the right language. REVIEW: 106244 Related: bug 303831 FIXED-IN: 4.9.3 M +121 -37 runners/spellchecker/spellcheck.cpp M +8 -2 runners/spellchecker/spellcheck.h http://commits.kde.org/kdeplasma-addons/124e35885b8cd1b593b7b83a070bd0bdb5758661 |