Bug 368129

Summary: Crash when switch between input modes
Product: [Frameworks and Libraries] frameworks-ktexteditor Reporter: Simon Yuan <bugs.kde.org.onion358>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: kdedevel
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Simon Yuan 2016-09-02 01:19:42 UTC
KDevelop crashes when switch from vi-mode to Normal after a search and/or replace is performed. I'm unsure if it's a Kate bug or KDevelop, but the crash cannot be reproduced with the same steps for KDevelop on Kate.

Reproducible: Always

Steps to Reproduce:
1. Open any file.
2. Search and/or replace.
3. Switch between Normal/vi-mode, although my observation is that it crashes when switching from vi-mode to Normal.

Actual Results:  
KDevelop crashes


Stack trace from coredumpctl:
                Stack trace of thread 15931:
                #0  0x00007fe9a94b723a _ZN6KateVi18EmulatedCommandBar6closedEv (libKF5TextEditor.so.5)
                #1  0x00007fe9a93f2035 n/a (libKF5TextEditor.so.5)
                #2  0x00007fe9acfa74e9 _ZN11QMetaObject8activateEP7QObjectiiPPv (libQt5Core.so.5)
                #3  0x00007fe9a9479f50 _ZN15KateViInputMode8activateEv (libKF5TextEditor.so.5)
                #4  0x00007fe9a93d0310 _ZN11KTextEditor11ViewPrivate12setInputModeENS_4View9InputModeE (libKF5TextEditor.so.5)
                #5  0x00007fe9a94e432a n/a (libKF5TextEditor.so.5)
                #6  0x00007fe9acfa74e9 _ZN11QMetaObject8activateEP7QObjectiiPPv (libQt5Core.so.5)
                #7  0x00007fe9adc55472 _ZN7QAction9triggeredEb (libQt5Widgets.so.5)
                #8  0x00007fe9adc57e60 _ZN7QAction8activateENS_11ActionEventE (libQt5Widgets.so.5)
                #9  0x00007fe9adc587dc _ZN7QAction5eventEP6QEvent (libQt5Widgets.so.5)
                #10 0x00007fe9adc5be3c _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt5Widgets.so.5)
                #11 0x00007fe9adc635b1 _ZN12QApplication6notifyEP7QObjectP6QEvent (libQt5Widgets.so.5)
                #12 0x00007fe9acf7bc80 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5)
Comment 1 Kevin Funk 2016-09-02 07:46:39 UTC
Presuming this is a duplicate of bug 364650

*** This bug has been marked as a duplicate of bug 364650 ***
Comment 2 Simon St James 2016-09-03 06:13:26 UTC
Based on the backtrace, it's more likely to be the bug just fixed by  leandrosantiago here:

https://phabricator.kde.org/D2643