Summary: | Kate(part) crashes on typing a word then a colon in an existing text document | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Saurav Sengupta <sauravsgs> |
Component: | part | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED DUPLICATE | ||
Severity: | crash | CC: | michal.humpula |
Priority: | NOR | ||
Version: | 3.12.0 | ||
Target Milestone: | --- | ||
Platform: | Kubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
Backtrace information generated with kate-dbg installed
Sample file to reproduce crash Sample file tarball to reproduce crash fix_try_01 |
Description
Saurav Sengupta
2013-12-20 05:22:45 UTC
Hi Saurav, this seems strangly familiar to #328271. So, can you please tell us what highlighting is selected, when you edit the file? (In reply to comment #1) > Hi Saurav, > > this seems strangly familiar to #328271. So, can you please tell us what > highlighting is selected, when you edit the file? Highlighting is automatically set to 'None' since the document is a plain text document containing no programming language source code or other markup code. Ok, again, we get nowhere:) So I would like to ask two favours of you 1) seems like you have kate from kubuntu repo, so please install the "kate-dbg" package, rerun the crash scenario a repost the backtrace 2) please attach the edited file (whatever causes the crash is good) and ideally describe exact way, where a what type, to cause the crash. I will try to reproduce it again. And out of curiosity, does this happen in kwrite too? Created attachment 84209 [details]
Backtrace information generated with kate-dbg installed
Attached the backtrace that was generated by my system with the kate-dbg package (and its dependencies) installed.
Created attachment 84210 [details]
Sample file to reproduce crash
This is a sample file that you can use to reproduce the crash, although the crash will occur with any plain text file.
To reproduce the crash: -
1. Go to the blank line (line no. 2) between Line 1 and Line 3. Make sure there is no whitespace there.
2. Type any word (single word, i.e., character string with no whitespace), e.g., Hello, and immediately at the end of the word type a colon symbol (:), so that the final result ought to be, e.g., Hello:
3. The colon character does not appear/stay. Instead, as soon as you type the colon symbol, the editor crashes.
Created attachment 84211 [details]
Sample file tarball to reproduce crash
I'm sorry, I didn't know that this KDE Bug system does not provide a downloadable file if a text file is attached. So, I am attaching a tarball containing the same text file, though I don't know if even this will be downloadable (but it should be).
(In reply to comment #3) > Ok, again, we get nowhere:) So I would like to ask two favours of you > 1) seems like you have kate from kubuntu repo, so please install the > "kate-dbg" package, rerun the crash scenario a repost the backtrace Done, but I'm not sure if there's any difference in the backtraces. > 2) please attach the edited file (whatever causes the crash is good) and > ideally describe exact way, where a what type, to cause the crash. I will > try to reproduce it again. Please download the tarball from Comment #6 and extract the sample text file from it, then follow the procedure given in Comment #5. > And out of curiosity, does this happen in kwrite too? Yes, this happens in KWrite too. It happens in any application that uses the same editor as Kate, including KDevelop. Hm, I couldn't reproduce the your crash, but found another one few lines after your place:) Seems like the hightlight is a little bit on sloppy side. But, looking at the code with your backtrace I think I found an error, which proves that saying "I don't need to write tests, I have compiled language" is totaly wrong. So, attached you find a patch, which should fix your crash. You still might hit the one I'm hitting (but I had to do some crazy switching to get there). If that's the case, please post new backtrace:) You can compile from source repository (see http://kate-editor.org/get-it/) or do it the Debian way: apt-get source kate sudo apt-get build-dep kate cd kate-4* patch -p1 < path_to_patch.patch dpkg-buildpackage -us -uc -b sudo dpkg -i ../katepart_*.deb Created attachment 84213 [details]
fix_try_01
Can we move the discussion to bug #328271 ? *** This bug has been marked as a duplicate of bug 328271 *** |