Application: kdevelop (5.9.220800 (22.08.0)) Qt Version: 5.15.5 Frameworks Version: 5.97.0 Operating System: Linux 5.19.7-1-default x86_64 Windowing System: X11 Distribution: "openSUSE Tumbleweed" DrKonqi: 5.25.4 [KCrashBackend] -- Information about the crash: KDevelop crashes at random times when editing code. The project I am working on is relatively large and sometimes the crash happens when parsing the code (which takes some time). Other times it seems to crash when just editing code. I updated my KDevelop to the latest package version on OpenSuSE, together with all the other updates. It has been crashing like this in the last couple of revisions. No other apps on KDE crash like this on my system. In case it is relevant I run my KDE environment inside VMWare Workstation (15.5.7). KDevelop Version 5.9.220800 (22.08.0) KDE Frameworks Version 5.97.0 QT Version 5.15.5 (built against 5.15.5) The crash can be reproduced sometimes. -- Backtrace: Application: KDevelop (kdevelop), signal: Segmentation fault [KCrash Handler] #4 0x00007fe652fbba19 in ?? () from /lib64/libQt5Qml.so.5 #5 0x00007fe652da2f6f in QV4::PersistentValueStorage::allocate() () from /lib64/libQt5Qml.so.5 #6 0x00007fe652d8584c in QJSValue::QJSValue(QV4::ExecutionEngine*, unsigned long long) () from /lib64/libQt5Qml.so.5 #7 0x00007fe652d840db in QJSEngine::globalObject() const () from /lib64/libQt5Qml.so.5 #8 0x00007fe653c3b24f in ?? () from /lib64/libKF5TextEditor.so.5 #9 0x00007fe653d7cbf6 in ?? () from /lib64/libKF5TextEditor.so.5 #10 0x00007fe653c19b59 in KTextEditor::DocumentPrivate::newLine(KTextEditor::ViewPrivate*, KTextEditor::DocumentPrivate::NewLineIndent, KTextEditor::DocumentPrivate::NewLinePos) () from /lib64/libKF5TextEditor.so.5 #11 0x00007fe653cac137 in KTextEditor::ViewPrivate::keyReturn() () from /lib64/libKF5TextEditor.so.5 #12 0x00007fe653cc4fa2 in KateViewInternal::keyPressEvent(QKeyEvent*) () from /lib64/libKF5TextEditor.so.5 #13 0x00007fe653cc5531 in KateViewInternal::eventFilter(QObject*, QEvent*) () from /lib64/libKF5TextEditor.so.5 #14 0x00007fe6562ded0b in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /lib64/libQt5Core.so.5 #15 0x00007fe65707940e in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5 #16 0x00007fe65708134f in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5 #17 0x00007fe6562def88 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5 #18 0x00007fe6570d7022 in ?? () from /lib64/libQt5Widgets.so.5 #19 0x00007fe65707941e in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5 #20 0x00007fe6562def88 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5 #21 0x00007fe656831619 in QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) () from /lib64/libQt5Gui.so.5 #22 0x00007fe65680933c in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Gui.so.5 #23 0x00007fe64306c7fa in ?? () from /lib64/libQt5XcbQpa.so.5 #24 0x00007fe651e9deb0 in g_main_context_dispatch () from /lib64/libglib-2.0.so.0 #25 0x00007fe651e9e268 in ?? () from /lib64/libglib-2.0.so.0 #26 0x00007fe651e9e2fc in g_main_context_iteration () from /lib64/libglib-2.0.so.0 #27 0x00007fe656336406 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5 #28 0x00007fe6562dd9fb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5 #29 0x00007fe6562e5b66 in QCoreApplication::exec() () from /lib64/libQt5Core.so.5 #30 0x00005583475686c5 in ?? () #31 0x00007fe655c085f0 in __libc_start_call_main () from /lib64/libc.so.6 #32 0x00007fe655c086b9 in __libc_start_main_impl () from /lib64/libc.so.6 #33 0x0000558347569225 in ?? () [Inferior 1 (process 82827) detached] Reported using DrKonqi
Moving to KTextEditor, this crash backtrace is from the JS engine executing the autoindenter script after keypress.
which language? and if possible can you share the code or simplified/modified version of the code where it crashes, otherwise its unlikely it will get fixed.
The language is C++. Unfortunately I cannot share the code. I am happy to try to trace the issue myself if you can provide pointers to where I should start looking.
You don't have to share the exact code, just the piece of code where it crashes and then create some dummy code similar to it which can repro the problem. If you want to try yourself, cstyle.js is the file you want to look at in KTextEditor repo https://invent.kde.org/frameworks/ktexteditor/ you can just copy that file locally and try to debug that or just work directly in the repo, see: https://docs.kde.org/trunk5/en/kate/katepart/dev-scripting.html
Without sample code with which the crash can be reproduced, this can't be fixed Marking as NEEDSINFO, it will auto close in a few days
Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone!
This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging Thank you for helping us make KDE software even better for everyone!