https://bugs.kde.org/show_bug.cgi?id=503813
--- Comment #19 from ulte...@gmail.com --- Going with this code: void GitPlugin::additionalMenuEntries(QMenu* menu, const QList<QUrl>& urls) { qDebug() << __PRETTY_FUNCTION__; QPointer menuGuard (menu); qDebug() << "Menu guarded"; m_urls = urls; QDir dir = urlDir (urls); qDebug() << "URLs be URL'ed"; if (!menu) { qDebug() << "Heehee HAaahaaa !!!"; return; } qDebug() << " Still exists --1" << (long) ((void *) menu); bool hasSt = hasStashes (dir); qDebug() << " stashes hashed"; if (menuGuard.isNull()) // I had forgotten removing the '!' after adding the isNull, before { qDebug() << "Menu destroyed !!"; } else { qDebug() << "Menu exists"; } qDebug() << " Point --2" << (long) ((void *) menu); menu->addAction (i18nc ("@action:inmenu", "Rebase"), this, SLOT (ctxRebase())); menu->addSeparator()->setText (i18nc ("@title:menu", "Git Stashes")); menu->addAction(i18nc("@action:inmenu", "Stash Manager"), this, SLOT(ctxStashManager()))->setEnabled(hasSt); menu->addAction(QIcon::fromTheme(QStringLiteral("vcs-stash")), i18nc("@action:inmenu", "Push Stash"), this, SLOT(ctxPushStash())); menu->addAction(QIcon::fromTheme(QStringLiteral("vcs-stash-pop")), i18nc("@action:inmenu", "Pop Stash"), this, SLOT(ctxPopStash()))->setEnabled(hasSt); qDebug() << "Complete"; } ___ Full output: Library Paths: QList("/usr/lib/qt6/plugins/kiconthemes6", "/run/media/ulterno/Data/code/KDE/KDevelop/install/lib/plugins", "/usr/lib/qt6/plugins", "/run/media/ulterno/Data/code/KDE/KDevelop/install/bin") Found 65 plugins: QList("KDevDefinesAndIncludesManager", "KDevMakeBuilder", "kdevclangtidy", "kdevexecute", "kdevastyle", "KDevProjectFilter", "scratchpad", "kdevexternalscript", "KDevCMakeBuilder", "KDevProjectManagerView", "kdevgrepview", "kdevcustomscript", "kdevdocker", "KDevGenericManager", "kdevpatchreview", "kdevdocumentview", "kdevcodeutils", "kdevvcschangesviewplugin", "KDevCustomMakeManager", "kdevcontextbrowser", "KDevManPage", "KDevWelcomePage", "kdevclassbrowser", "kdevswitchtobuddy", "kdevsourceformatter", "kdevcppcheck", "kdevperforce", "kdevclangsupport", "kdevgdb", "KDevCMakeManager", "kdevbazaar", "kdevdocumentswitcher", "kdevandroid", "KDevOutlineView", "KDevStandardOutputView", "kdevghprovider", "kdevkonsoleview", "kdevflatpak", "KDevCMakeDocumentation", "kdevopenwith", "kdevfilemanager", "kdevqthelp", "kdevappwizard", "kdevexecuteplasmoid", "kdevproblemreporter", "kdevfiletemplates", "KDevQMakeManager", "KDevMesonManager", "KDevQMakeBuilder", "KDevNinjaBuilder", "kdevlldb", "kdevheaptrack", "kdevcraft", "KDevCustomBuildSystem", "kdevgit", "kdevquickopen", "kdevexecutescript", "kdevclazy", "kdevtestview", "kdevphplanguagesupport", "kdevpythonlanguagesupport", "kdevphpunitprovider", "kdevsubversion", "kdevphpdocs", "kdevpdb") kdevplatform.serialization: version mismatch or no version hint; expected version: 100794372 kdevplatform.serialization: "The data-repository at /home/ulterno/.cache/kdevduchain/kdevelop-{1e439ed4-b9a5-4126-9dec-5096ebd432ca} has to be cleared." GitJob::GitJob(const QDir&, KDevelop::IPlugin*, KDevelop::OutputJob::OutputJobVerbosity) kdevplatform.shell: Unable to find a plugin named ' "kateprojectplugin" '! qt.core.qobject.connect: QObject::connect(KateApp, KateTextHintManager): invalid nullptr parameter qt.core.qobject.connect: QObject::connect(QObject, KTextEditorIntegration::MainWindow): invalid nullptr parameter qt.core.qobject.connect: QObject::connect: No such signal KDevelop::MainWindow::tabForToolViewAdded(QWidget *, QWidget *) qt.core.qobject.connect: QObject::connect: (sender name: 'MainWindow') qt.core.qobject.connect: QObject::connect(KateApp, DiagnosticsView): invalid nullptr parameter QLayout: Cannot add a null widget to QHBoxLayout/ <<<<---- I press the menu button at this point ---->>>> "2025-05-08T17:02:12.542" KDevelop::TextDocument::createViewWidget(QWidget*)::<lambda()> Context menu about to show GitJob::GitJob(const QDir&, KDevelop::IPlugin*, KDevelop::OutputJob::OutputJobVerbosity) "2025-05-08T17:02:12.544" KDevelop::TextDocument::createViewWidget(QWidget*)::<lambda()> Context menu about to show kdevplatform.shell: populateContextMenu() called while we still handled another menu. GitJob::GitJob(const QDir&, KDevelop::IPlugin*, KDevelop::OutputJob::OutputJobVerbosity) virtual void GitPlugin::additionalMenuEntries(QMenu*, const QList<QUrl>&) Menu guarded URLs be URL'ed Still exists --1 97270432047568 GitJob::GitJob(const QDir&, KDevelop::IPlugin*, KDevelop::OutputJob::OutputJobVerbosity) stashes hashed Menu exists Point --2 97270432047568 Complete virtual void GitPlugin::additionalMenuEntries(QMenu*, const QList<QUrl>&) Menu guarded URLs be URL'ed Still exists --1 97270431786208 GitJob::GitJob(const QDir&, KDevelop::IPlugin*, KDevelop::OutputJob::OutputJobVerbosity) stashes hashed Menu destroyed !! Point --2 97270431786208 KCrash: Application 'kdevelop' crashing... crashRecursionCounter = 2 zsh: segmentation fault (core dumped) ./bin/kdevelop _____ I was using qtcreator and using the cmake flags in the Project options, but maybe something similar to that bug. Either way, since the debugger exits at an unrelated point there, the IDE is not particularly doing anything +ive, so the terminal is fine. -- You are receiving this mail because: You are watching all bug changes.