<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Oct 19, 2014 at 12:36 AM, René J.V. <span dir="ltr"><<a href="mailto:rjvbertin@gmail.com" target="_blank">rjvbertin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On both my Linux and my OS X systems I've noticed that KDevelop 4.7.0 and 4.7.60 have an irregular habit of exitting after completing the parse-on-open of the projects in the session I started with. This happens regardless of whether I'm doing something in KDevelop or elsewhere.<br>
It's been suggested to set a breakpoint in KDevelop::MainWindow::~MainWindow but hasn't yet proved productive (rather the contrary; starting kdevelop under a debugger take a lot of patience on the systems I have at my disposal).<br>
<br>
So I added a qDebug output of kBackTrace() in KDevelop::MainWindow::~MainWindow, assuming I'd be able to get some idea of where the exit request came from when it happens.<br>
<br>
Turns out KDevelop exits without calling this MainWindow destructor:<br>
<br>
=============================================<br>
<snip><br>
kdevelop(5560)/kdevelop (cpp support) Cpp::instantiateDeclarationAndContext: Resolved bad base-class "ParserCollection< T >" "ParserCollection< T >"<br>
kdevelop(5560)/kdevelop (cpp support) Cpp::instantiateDeclarationAndContext: Resolved bad base-class "QDBusPendingReplyData" "function <notype> ()"<br>
kdevelop(5560)/kdevelop (cpp support) Cpp::instantiateDeclarationAndContext: Resolved bad base-class "QDBusPendingReplyData" "function <notype> ()"<br>
kdevelop(5560)/kdevelop (cpp support) Cpp::instantiateDeclarationAndContext: Resolved bad base-class "QDBusPendingReplyData" "function <notype> ()"<br>
Thread::requestAbort: not running.<br>
Thread::requestAbort: not running.<br>
kdevelop(5560)/kdeui (kdelibs) KXMLGUIClient::~KXMLGUIClient: 0x1208a8600 deleted without having been removed from the factory first. This will leak standalone popupmenus and could lead to crashes.<br>
kdevelop(5560)/kdeui (kdelibs) KXMLGUIClient::~KXMLGUIClient: 0x120b0a3e0 deleted without having been removed from the factory first. This will leak standalone popupmenus and could lead to crashes.<br>
kdevelop(5560)/kdeui (kdelibs) KXMLGUIClient::~KXMLGUIClient: 0x10a56c8d0 deleted without having been removed from the factory first. This will leak standalone popupmenus and could lead to crashes.<br>
register count: 0, destroy count 0: 667.200 user_cpu 1301.076 kernel_cpu 39:43.52 total_time 82.5%CPU {0W 0X 0D 0K 0M 0F 0R 3340I 135309O 99735r 98661s 6014k 97749w 0c}<br>
=============================================<br>
<br>
That's a session in which I have 4 projects, for kdepim and kdepimlibs 4.12.5 and 4.13.3 . Normally things work normally when I relaunch the session, but this time:<br>
<br>
=============================================<br>
> kdevelop --ps<br>
kdevelop(22402)/kdeui (kdelibs): Attempt to use QAction "commit_or_finish_review" with KXMLGUIFactory!<br>
kdevelop(22402)/Kate KateDocument::readVariableLine: "Using deprecated modeline 'remove-trailing-space'. Please replace with 'remove-trailing-spaces modified;', see <a href="http://docs.kde.org/stable/en/applications/kate/config-variables.html#variable-remove-trailing-spaces" target="_blank">http://docs.kde.org/stable/en/applications/kate/config-variables.html#variable-remove-trailing-spaces</a>"<br>
kdevelop(22402)/Kate KateDocument::readVariableLine: "Using deprecated modeline 'remove-trailing-space'. Please replace with 'remove-trailing-spaces modified;', see <a href="http://docs.kde.org/stable/en/applications/kate/config-variables.html#variable-remove-trailing-spaces" target="_blank">http://docs.kde.org/stable/en/applications/kate/config-variables.html#variable-remove-trailing-spaces</a>"<br>
kdevelop(22402)/Kate KateDocument::readVariableLine: "Using deprecated modeline 'remove-trailing-space'. Please replace with 'remove-trailing-spaces modified;', see <a href="http://docs.kde.org/stable/en/applications/kate/config-variables.html#variable-remove-trailing-spaces" target="_blank">http://docs.kde.org/stable/en/applications/kate/config-variables.html#variable-remove-trailing-spaces</a>"<br>
kdevelop(22402)/Kate KateDocument::readVariableLine: "Using deprecated modeline 'remove-trailing-space'. Please replace with 'remove-trailing-spaces modified;', see <a href="http://docs.kde.org/stable/en/applications/kate/config-variables.html#variable-remove-trailing-spaces" target="_blank">http://docs.kde.org/stable/en/applications/kate/config-variables.html#variable-remove-trailing-spaces</a>"<br>
qrc:/qml/main.qml:23:1: QML Loader: Binding loop detected for property "source"<br>
qrc:/qml/main.qml:23:1: QML Loader: Binding loop detected for property "source"<br>
kdevelop(22402)/kdevplatform (shell) KDevelop::SessionControllerPrivate::performRecovery: Starting recovery from "/Volumes/Debian/Users/bertin/KDE/.kde/share/apps/kdevelop/sessions/{c19618a0-4162-458b-86d6-2c2d904043da}/recovery/current"<br>
QMenu: No OSMenuRef created for popup menu<br>
QMenu: No OSMenuRef created for popup menu<br>
kdevelop(22402)/kdevplatform (shell) KDevelop::RunController::registerJob: non-killable job CMakeImportJob(0x13c448f30) registered - this might lead to crashes on shutdown.<br>
kdevelop(22402)/kdevplatform (shell) KDevelop::RunController::registerJob: non-killable job CMakeImportJob(0x132151460) registered - this might lead to crashes on shutdown.<br>
kdevelop(22402)/kdevplatform (shell) KDevelop::RunController::registerJob: non-killable job CMakeImportJob(0x13cea2c70) registered - this might lead to crashes on shutdown.<br>
kdevelop(22402) KSambaSharePrivate::testparmParamValue: We got some errors while running testparm "Load smb config files from /private/etc/smb.conf<br>
WARNING: The "printer admin" option is deprecated<br>
init_iconv: Conversion from UTF-16LE to CP0 not supported<br>
init_iconv: Attempting to replace with conversion from UTF-16LE to ASCII<br>
init_iconv: Conversion from UTF-8-MAC to CP0 not supported<br>
init_iconv: Attempting to replace with conversion from ASCII to ASCII<br>
init_iconv: Conversion from UTF-8-MAC to CP0 not supported<br>
init_iconv: Attempting to replace with conversion from ASCII to ASCII<br>
init_iconv: Conversion from CP0 to UTF-16LE not supported<br>
init_iconv: Attempting to replace with conversion from ASCII to UTF-16LE<br>
init_iconv: Conversion from CP0 to UTF-8-MAC not supported<br>
init_iconv: Attempting to replace with conversion from ASCII to ASCII<br>
init_iconv: Conversion from CP0 to UTF-8-MAC not supported<br>
init_iconv: Attempting to replace with conversion from ASCII to ASCII<br>
init_iconv: Conversion from CP0 to UTF8 not supported<br>
init_iconv: Attempting to replace with conversion from ASCII to ASCII<br>
init_iconv: Conversion from CP0 to UTF-16BE not supported<br>
init_iconv: Attempting to replace with conversion from ASCII to UTF-16BE<br>
init_iconv: Conversion from UTF8 to CP0 not supported<br>
init_iconv: Attempting to replace with conversion from ASCII to ASCII<br>
init_iconv: Conversion from UTF-16BE to CP0 not supported<br>
init_iconv: Attempting to replace with conversion from UTF-16BE to ASCII<br>
Unknown parameter encountered: "brlm"<br>
Ignoring unknown parameter "brlm"<br>
Processing section "[homes]"<br>
Processing section "[AcroDist]"<br>
init_iconv: Conversion from UTF-16LE to CP0 not supported<br>
init_iconv: Attempting to replace with conversion from UTF-16LE to ASCII<br>
init_iconv: Conversion from UTF-8-MAC to CP0 not supported<br>
init_iconv: Attempting to replace with conversion from ASCII to ASCII<br>
init_iconv: Conversion from UTF-8-MAC to CP0 not supported<br>
init_iconv: Attempting to replace with conversion from ASCII to ASCII<br>
init_iconv: Conversion from CP0 to UTF-16LE not supported<br>
init_iconv: Attempting to replace with conversion from ASCII to UTF-16LE<br>
init_iconv: Conversion from CP0 to UTF-8-MAC not supported<br>
init_iconv: Attempting to replace with conversion from ASCII to ASCII<br>
init_iconv: Conversion from CP0 to UTF-8-MAC not supported<br>
init_iconv: Attempting to replace with conversion from ASCII to ASCII<br>
init_iconv: Conversion from CP0 to UTF8 not supported<br>
init_iconv: Attempting to replace with conversion from ASCII to ASCII<br>
init_iconv: Conversion from CP0 to UTF-16BE not supported<br>
init_iconv: Attempting to replace with conversion from ASCII to UTF-16BE<br>
init_iconv: Conversion from UTF8 to CP0 not supported<br>
init_iconv: Attempting to replace with conversion from ASCII to ASCII<br>
init_iconv: Conversion from UTF-16BE to CP0 not supported<br>
init_iconv: Attempting to replace with conversion from UTF-16BE to ASCII<br>
Loaded services file OK.<br>
WARNING: Your 'passdb backend' configuration includes multiple backends. This<br>
is deprecated since Samba 3.0.23. Please check WHATSNEW.txt or the section 'Passdb<br>
Changes' from the ChangeNotes as part of the Samba HOWTO collection. Only the first<br>
backend (opendirectorysam) is used. The rest is ignored.<br>
"<br>
kdevelop(22402) KMimeTypePrivate::ensureXmlDataLoaded: Missing <comment> field in "audio/wav.xml"<br>
kdevelop(22402)/kdevplatform (shell) KDevelop::RunController::registerJob: non-killable job CMakeImportJob(0x132511580) registered - this might lead to crashes on shutdown.<br>
kdevelop(22402)/kdevelop (cpp support) contentFromProxy: proxy-context for "/Volumes/Debian/Users/bertin/work/src/new/KDE/kdepim/kdepimlibs-4.13.3/kimap/searchjob.h" has no imports! 1092<br>
kdevelop(22402)/kdevelop (cpp support) CPPInternalParseJob::run: Context should be imported, but is not: "/Volumes/Debian/Users/bertin/work/src/new/KDE/kdepim/kdepimlibs-4.13.3/kimap/searchjob.cpp" <- "/Volumes/Debian/Users/bertin/work/src/new/KDE/kdepim/kdepimlibs-4.13.3/kimap/searchjob.h"<br>
Thread::requestAbort: not running.<br>
Thread::requestAbort: not running.<br>
kdevelop(22402)/kdeui (kdelibs) KXMLGUIClient::~KXMLGUIClient: 0x11e366d50 deleted without having been removed from the factory first. This will leak standalone popupmenus and could lead to crashes.<br>
kdevelop(22402)/kdeui (kdelibs) KXMLGUIClient::~KXMLGUIClient: 0x11d2a9a50 deleted without having been removed from the factory first. This will leak standalone popupmenus and could lead to crashes.<br>
kdevelop(22402)/kdeui (kdelibs) KXMLGUIClient::~KXMLGUIClient: 0x12084b1e0 deleted without having been removed from the factory first. This will leak standalone popupmenus and could lead to crashes.<br>
register count: 0, destroy count 0: 182.595 user_cpu 362.217 kernel_cpu 9:14.38 total_time 98.2%CPU {0W 0X 0D 0K 0M 0F 0R 713I 45956O 99428r 98342s 5806k 64768w 0c}<br>
=============================================<br>
<br>
3rd time was a charm: here's the output from a session that completed the parsing phase and let *me* quit the application personally:<br>
<br>
=============================================<br>
<snip><br>
init_iconv: Attempting to replace with conversion from UTF-16BE to ASCII<br>
Loaded services file OK.<br>
WARNING: Your 'passdb backend' configuration includes multiple backends. This<br>
is deprecated since Samba 3.0.23. Please check WHATSNEW.txt or the section 'Passdb<br>
Changes' from the ChangeNotes as part of the Samba HOWTO collection. Only the first<br>
backend (opendirectorysam) is used. The rest is ignored.<br>
"<br>
kdevelop(37991) KMimeTypePrivate::ensureXmlDataLoaded: Missing <comment> field in "audio/wav.xml"<br>
kdevelop(37991)/kdevplatform (shell) KDevelop::RunController::registerJob: non-killable job CMakeImportJob(0x13ccacf70) registered - this might lead to crashes on shutdown.<br>
kdevelop(37991)/kdevplatform (shell) KDevelop::RunController::registerJob: non-killable job CMakeImportJob(0x13ccd5ab0) registered - this might lead to crashes on shutdown.<br>
MainWindow::~MainWindow() called, backtrace: "[<br>
0: 0 libkdecore.5.dylib 0x00000001000ba4e3 _Z14kRealBacktracei + 67<br>
1: 1 libkdevplatformshell.8.dylib 0x000000010055055a _ZN8KDevelop10MainWindowD1Ev + 90<br>
]<br>
"<br>
Thread::requestAbort: not running.<br>
Thread::requestAbort: not running.<br>
register count: 0, destroy count 0: 175.677 user_cpu 335.598 kernel_cpu 8:50.56 total_time 96.3%CPU {0W 0X 0D 0K 0M 0F 0R 23I 41819O 99295r 98219s 5802k 62674w 0c}<br>
=============================================<br>
<br>
Is there any chance that this issue might be related to the use of non-killable CMakeImportJobs?<br>
<br>
Thanks,<br>
<br>
R.<br>
<br>
_______________________________________________<br>
KDevelop mailing list<br>
<a href="mailto:KDevelop@kde.org">KDevelop@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kdevelop" target="_blank">https://mail.kde.org/mailman/listinfo/kdevelop</a><br>
</blockquote></div><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Does it always happen?</div><div class="gmail_extra"><br></div><div class="gmail_extra">It doesn't seem likely that it's related to the cmake import job, especially considering that this should be happening upon shut down of KDevelop.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Aleix</div></div>