https://bugs.kde.org/show_bug.cgi?id=427147
Bug ID: 427147 Summary: Often the background parser causes crashes Product: kdevelop Version: 5.5.0 Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: Language Support: CPP (Clang-based) Assignee: kdevelop-bugs-n...@kde.org Reporter: mattia.basag...@gmail.com Target Milestone: --- SUMMARY Sometimes KDevelop enters a state where it crashes within a few seconds of opening a project. This seems to happen quite often when I'm refactoring large parts of C++ code, so I think it's related to the C++ background parser. Clearing the cache doesn't help, I have to use other editors to finish my code changes before using KDevelop again. In the console KDevelop prints this before crashing: KCrash: crashing... crashRecursionCounter = 2 KCrash: Application Name = kdevelop path = /usr/bin pid = 24966 KCrash: Arguments: /usr/bin/kdevelop KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi from kdeinit sock_file=/run/user/1000/kdeinit5__0 QSocketNotifier: Invalid socket 6 and type 'Read', disabling... QSocketNotifier: Invalid socket 21 and type 'Read', disabling... QSocketNotifier: Invalid socket 29 and type 'Read', disabling... QSocketNotifier: Invalid socket 32 and type 'Read', disabling... QSocketNotifier: Invalid socket 10 and type 'Read', disabling... QSocketNotifier: Invalid socket 80 and type 'Read', disabling... QSocketNotifier: Invalid socket 75 and type 'Exception', disabling... QSocketNotifier: Invalid socket 24 and type 'Read', disabling... QSocketNotifier: Invalid socket 34 and type 'Read', disabling... QSocketNotifier: Invalid socket 65 and type 'Read', disabling... QSocketNotifier: Invalid socket 77 and type 'Read', disabling... QSocketNotifier: Invalid socket 72 and type 'Read', disabling... QSocketNotifier: Invalid socket 41 and type 'Read', disabling... QSocketNotifier: Invalid socket 8 and type 'Read', disabling... QSocketNotifier: Invalid socket 37 and type 'Read', disabling... QSocketNotifier: Invalid socket 9 and type 'Read', disabling... kdevelop.plugins.python.parser: Discarding parts of the code to be parsed because of previous errors SyntaxError: unmatched ']' (<kdev-editor-contents>, line 1) ---- Parsing FAILED ---- LIBCLANG FATAL ERROR: IO failure on output stream: Bad file descriptor Unable to start Dr. Konqi Re-raising signal for core dump handling. Aborted (core dumped) STEPS TO REPRODUCE It's hard to repro, I can provide a tarball of the project that last happened to, but it's too large to attach here. When opening that project in a new KDevelop session it takes longer to crash, I assume it's because the parser needs to reach the point where it crashes. OBSERVED RESULT KDevelop crashes after a few seconds of opening the project SOFTWARE/OS VERSIONS Operating System: Kubuntu 20.04 KDE Plasma Version: 5.18.5 KDE Frameworks Version: 5.68.0 Qt Version: 5.12.8 Kernel Version: 5.4.0-48-generic OS Type: 64-bit Processors: 8 × AMD FX(tm)-8320 Eight-Core Processor Memory: 23.5 GiB of RAM -- You are receiving this mail because: You are watching all bug changes.