https://bugs.kde.org/show_bug.cgi?id=435500

--- Comment #5 from Igor Kushnir <igor...@gmail.com> ---
I reproduce the bug with the following steps:
1) reopen the crashy KDevelop session;
2) recover the .cpp file from its .kate-swp file;
3) select and drag the ending of the specific line close to the end of the
document.

I don't experiment in any other way with this session to preserve the sure way
to reproduce the crash. When I copy the entire project, along with the
.kate-swp file, open the project-copy in another KDevelop session and repeat
the steps above, the crash does not happen. Could some session-specific
configuration option be at fault?

Looks like rc is not valid for cache()->textLayout() in the following code at
(patched) ktexteditor-5.80.0/src/view/kateviewinternal.cpp:3527:
        auto rc = toRealCursor(startCur);
        sX = renderer()->cursorToX(cache()->textLayout(rc), rc,
!view()->wrapCursor());
Could the cache be stale here?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to