Please ignore my spurious strace interpretation: with kdelibs-dbg and a debugging build of kate, I've stepped through KateSpell::spellcheck(const KateTextCursor &from, const KateTextCursor &to) in kdelibs-3.5.2/kate/part/katespell.cpp (line 86) past the assignment to KSpellConfig *ksc (line 109) and until the assignment to int enc (line 116).
An empty string is returned by m_view->doc()->encoding() with the result that enc is -1. The next kdDebug message (line 120) accesses ksEncodings[enc] and Qt complains that -1 (or i = 18446744073709551615 as it reports) is out of range. At least that's how it seems to me - I'm afraid I wasn't able to patch kdelibs to confirm this (compilation fails with a missing remoteservice.moc... I guess I must be doing something wrong)! :o| Anyway, at least this further debugging has identified a work-around: to explicitly set the encoding via "Tools > Encoding" (reselecting "Unicode (utf8)" does the trick) before invoking a spellcheck. Interestingly, it doesn't appear to matter whether "Settings > Configure Kate > Editor > Open/Save > File Format > Encoding" is "KDE Default" or "Unicode (utf8)". -- Kate hangs on spellcheck https://launchpad.net/bugs/58175 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs