Summary: | Random crash while typing [KateCompletionDelegate::createHighlighting, KateCompletionModel::data] | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-ktexteditor | Reporter: | mujjingun <mujjingun> |
Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | hein, kde, simonandric5 |
Priority: | NOR | Keywords: | drkonqi |
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Neon | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/ktexteditor/7f3d9e774129618dfb9fd871d5d5c8fbb66b4d9a | Version Fixed In: | |
Sentry Crash Report: |
Description
mujjingun@gmail.com
2018-03-17 08:25:09 UTC
Which file type were you editing / what options are active under Mode and Highlighting in the Tools menu? This crash is in the completion model, so the contents of the model can be subject to document-specific state. After some more experimenting, I found a way to consistently reproduce the crash: 1. open Kate 2. type "experiment" on the first line and hit enter 3. on the second line, type "experi" and hit backspace 4. program crashes. (In reply to Eike Hein from comment #1) > Which file type were you editing / what options are active under Mode and > Highlighting in the Tools menu? This crash is in the completion model, so > the contents of the model can be subject to document-specific state. it's the initial "None" mode. I can reproduce this crash with the steps in comment #2. Interestingly I couldn't reproduce it at first with builds of ktexteditor and Kate that were about two weeks older than $HEAD, which means this is a recent regression and should be easy to bisect. git bisect suggests it's probably due to 92e21fb03b7fd01eab6fd6f4a116b849cb93ef9e in ktexteditor.git, derived from: https://phabricator.kde.org/D11278 CC'ing Kai. Git commit 7f3d9e774129618dfb9fd871d5d5c8fbb66b4d9a by Christoph Cullmann. Committed on 18/03/2018 at 12:33. Pushed by cullmann into branch 'master'. Revert "[KateCompletionWidget] Create configuration interface on demand" This reverts commit 92e21fb03b7fd01eab6fd6f4a116b849cb93ef9e. KateCompletionConfig construction seems to have some side-effects that are necessary (e.g. initial config loading) M +1 -5 src/completion/katecompletionwidget.cpp https://commits.kde.org/ktexteditor/7f3d9e774129618dfb9fd871d5d5c8fbb66b4d9a |