https://bugs.kde.org/show_bug.cgi?id=503813

--- Comment #29 from ulte...@gmail.com ---
I just realised a major oversight.
I had been assuming that the Menu key had been causing double context menus all
the time.
But no. Turns out, the double context menu only happens when the file in the
current view is in a directory with .git

I checked that out after having added a debug output in
KTextEditor::ViewPrivate::aboutToShowContextMenu and trying out the menu key in
Kate and KWrite.

Here's the full output of how it went with KDevelop.

kdevplatform.serialization: "The data-repository at
/home/ulterno/.cache/kdevduchain/kdevelop-{1e439ed4-b9a5-4126-9dec-5096ebd432ca}
has to be cleared."
virtual void KDevelop::DVcsJob::start() "2025-05-09T03:04:14.218" Unlocked
129257412382088
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/

<<<<<----- Using Menu Key on a file that is NOT in a directory with a git repo
----->>>>>
QMenu::aboutToShow KTextEditor::ViewPrivate::contextMenu() const::<lambda()>
void KTextEditor::ViewPrivate::aboutToShowContextMenu()
qt.core.qobject.connect: QObject::disconnect: Unexpected nullptr parameter
<<<--- Ignore this one. I just added another disconnect hoping to hack a fix.
That did nothing
Calling contextMenuExtension of:  "" "kdevastyle" Error?:  false
Calling contextMenuExtension of:  "" "kdevandroid" Error?:  false
Calling contextMenuExtension of:  "" "kdevclangsupport" Error?:  false
Calling contextMenuExtension of:  "" "kdevcmakedocumentation" Error?:  false
Calling contextMenuExtension of:  "" "kdevclangtidy" Error?:  false
Calling contextMenuExtension of:  "" "kdevclassbrowser" Error?:  false
Calling contextMenuExtension of:  "" "kdevclazy" Error?:  false
Calling contextMenuExtension of:  "" "kdevcontextbrowser" Error?:  false
Calling contextMenuExtension of:  "" "kdevcodeutils" Error?:  false
Calling contextMenuExtension of:  "" "kdevcppcheck" Error?:  false
Calling contextMenuExtension of:  "" "kdevcraft" Error?:  false
Calling contextMenuExtension of:  "" "kdevdefinesandincludesmanager" Error?: 
false
Calling contextMenuExtension of:  "" "kdevcustommakemanager" Error?:  false
Calling contextMenuExtension of:  "" "kdevcustomscript" Error?:  false
Calling contextMenuExtension of:  "" "kdevdocker" Error?:  false
Calling contextMenuExtension of:  "" "" Error?:  false
Calling contextMenuExtension of:  "" "kdevdocumentview" Error?:  false
Calling contextMenuExtension of:  "" "kdevexecute" Error?:  false
Calling contextMenuExtension of:  "" "kdevexecutescript" Error?:  false
Calling contextMenuExtension of:  "" "kdevexternalscript" Error?:  false
Calling contextMenuExtension of:  "" "kdevfiletemplates" Error?:  false
Calling contextMenuExtension of:  "" "kdevgrepview" Error?:  false
Calling contextMenuExtension of:  "" "kdevflatpak" Error?:  false
Calling contextMenuExtension of:  "Git" "kdevgit" Error?:  false
Calling contextMenuExtension of:  "" "kdevghprovider" Error?:  false
Calling contextMenuExtension of:  "" "kdevheaptrack" Error?:  false
Calling contextMenuExtension of:  "" "kdevfilemanager" Error?:  false
Calling contextMenuExtension of:  "" "kdevwelcomepage" Error?:  false
Calling contextMenuExtension of:  "" "kdevkonsoleview" Error?:  false
Calling contextMenuExtension of:  "" "kdevlldb" Error?:  false
Calling contextMenuExtension of:  "" "" Error?:  false
Calling contextMenuExtension of:  "" "kdevmakebuilder" Error?:  false
Calling contextMenuExtension of:  "" "kdevdocumentswitcher" Error?:  false
Calling contextMenuExtension of:  "" "kdevappwizard" Error?:  false
Calling contextMenuExtension of:  "" "kdevopenwith" Error?:  false
Calling contextMenuExtension of:  "" "kdevoutlineview" Error?:  false
Calling contextMenuExtension of:  "" "kdevstandardoutputview" Error?:  false
Calling contextMenuExtension of:  "" "kdevphpdocs" Error?:  false
Calling contextMenuExtension of:  "" "kdevphpsupport" Error?:  false
Calling contextMenuExtension of:  "" "kdevphpunitprovider" Error?:  false
Calling contextMenuExtension of:  "" "kdevexecuteplasmoid" Error?:  false
Calling contextMenuExtension of:  "" "kdevproblemreporter" Error?:  false
Calling contextMenuExtension of:  "" "kdevprojectmanagerview" Error?:  false
Calling contextMenuExtension of:  "" "kdevpdbsupport" Error?:  false
Calling contextMenuExtension of:  "" "kdevqthelp" Error?:  false
Calling contextMenuExtension of:  "" "kdevquickopen" Error?:  false
Calling contextMenuExtension of:  "" "scratchpad" Error?:  false
Calling contextMenuExtension of:  "" "" Error?:  false
Calling contextMenuExtension of:  "" "kdevswitchtobuddy" Error?:  false
Calling contextMenuExtension of:  "" "kdevtestview" Error?:  false

<<<<<----- Using Menu Key on a file that is in a directory with a git repo
----->>>>>
QMenu::aboutToShow KTextEditor::ViewPrivate::contextMenu() const::<lambda()>
void KTextEditor::ViewPrivate::aboutToShowContextMenu()
qt.core.qobject.connect: QObject::disconnect: Unexpected nullptr parameter
Calling contextMenuExtension of:  "" "kdevastyle" Error?:  false
Calling contextMenuExtension of:  "" "kdevandroid" Error?:  false
Calling contextMenuExtension of:  "" "kdevclangsupport" Error?:  false
Calling contextMenuExtension of:  "" "kdevcmakedocumentation" Error?:  false
Calling contextMenuExtension of:  "" "kdevclangtidy" Error?:  false
Calling contextMenuExtension of:  "" "kdevclassbrowser" Error?:  false
Calling contextMenuExtension of:  "" "kdevclazy" Error?:  false
Calling contextMenuExtension of:  "" "kdevcontextbrowser" Error?:  false
Calling contextMenuExtension of:  "" "kdevcodeutils" Error?:  false
Calling contextMenuExtension of:  "" "kdevcppcheck" Error?:  false
Calling contextMenuExtension of:  "" "kdevcraft" Error?:  false
Calling contextMenuExtension of:  "" "kdevdefinesandincludesmanager" Error?: 
false
Calling contextMenuExtension of:  "" "kdevcustommakemanager" Error?:  false
Calling contextMenuExtension of:  "" "kdevcustomscript" Error?:  false
Calling contextMenuExtension of:  "" "kdevdocker" Error?:  false
Calling contextMenuExtension of:  "" "" Error?:  false
Calling contextMenuExtension of:  "" "kdevdocumentview" Error?:  false
Calling contextMenuExtension of:  "" "kdevexecute" Error?:  false
Calling contextMenuExtension of:  "" "kdevexecutescript" Error?:  false
Calling contextMenuExtension of:  "" "kdevexternalscript" Error?:  false
Calling contextMenuExtension of:  "" "kdevfiletemplates" Error?:  false
Calling contextMenuExtension of:  "" "kdevgrepview" Error?:  false
Calling contextMenuExtension of:  "" "kdevflatpak" Error?:  false
Calling contextMenuExtension of:  "Git" "kdevgit" Error?:  false
virtual void KDevelop::DVcsJob::start() "2025-05-09T03:04:25.055" Unlocked
129257412382088
QMenu::aboutToShow KTextEditor::ViewPrivate::contextMenu() const::<lambda()>
void KTextEditor::ViewPrivate::aboutToShowContextMenu()
qt.core.qobject.connect: QObject::disconnect: Unexpected nullptr parameter
kdevplatform.shell: populateContextMenu() called while we still handled another
menu.
Calling contextMenuExtension of:  "" "kdevastyle" Error?:  false
Calling contextMenuExtension of:  "" "kdevandroid" Error?:  false
Calling contextMenuExtension of:  "" "kdevclangsupport" Error?:  false
Calling contextMenuExtension of:  "" "kdevcmakedocumentation" Error?:  false
Calling contextMenuExtension of:  "" "kdevclangtidy" Error?:  false
Calling contextMenuExtension of:  "" "kdevclassbrowser" Error?:  false
Calling contextMenuExtension of:  "" "kdevclazy" Error?:  false
Calling contextMenuExtension of:  "" "kdevcontextbrowser" Error?:  false
Calling contextMenuExtension of:  "" "kdevcodeutils" Error?:  false
Calling contextMenuExtension of:  "" "kdevcppcheck" Error?:  false
Calling contextMenuExtension of:  "" "kdevcraft" Error?:  false
Calling contextMenuExtension of:  "" "kdevdefinesandincludesmanager" Error?: 
false
Calling contextMenuExtension of:  "" "kdevcustommakemanager" Error?:  false
Calling contextMenuExtension of:  "" "kdevcustomscript" Error?:  false
Calling contextMenuExtension of:  "" "kdevdocker" Error?:  false
Calling contextMenuExtension of:  "" "" Error?:  false
Calling contextMenuExtension of:  "" "kdevdocumentview" Error?:  false
Calling contextMenuExtension of:  "" "kdevexecute" Error?:  false
Calling contextMenuExtension of:  "" "kdevexecutescript" Error?:  false
Calling contextMenuExtension of:  "" "kdevexternalscript" Error?:  false
Calling contextMenuExtension of:  "" "kdevfiletemplates" Error?:  false
Calling contextMenuExtension of:  "" "kdevgrepview" Error?:  false
Calling contextMenuExtension of:  "" "kdevflatpak" Error?:  false
Calling contextMenuExtension of:  "Git" "kdevgit" Error?:  false
virtual void KDevelop::DVcsJob::start() "2025-05-09T03:04:25.056" Unlocked
129257412382088
virtual void GitPlugin::additionalMenuEntries(QMenu*, const QList<QUrl>&)
virtual void KDevelop::DVcsJob::start() "2025-05-09T03:04:25.058" Unlocked
129257412382088
Calling contextMenuExtension of:  "" "kdevghprovider" Error?:  false
Calling contextMenuExtension of:  "" "kdevheaptrack" Error?:  false
Calling contextMenuExtension of:  "" "kdevfilemanager" Error?:  false
Calling contextMenuExtension of:  "" "kdevwelcomepage" Error?:  false
Calling contextMenuExtension of:  "" "kdevkonsoleview" Error?:  false
Calling contextMenuExtension of:  "" "kdevlldb" Error?:  false
Calling contextMenuExtension of:  "" "" Error?:  false
Calling contextMenuExtension of:  "" "kdevmakebuilder" Error?:  false
Calling contextMenuExtension of:  "" "kdevdocumentswitcher" Error?:  false
Calling contextMenuExtension of:  "" "kdevappwizard" Error?:  false
Calling contextMenuExtension of:  "" "kdevopenwith" Error?:  false
Calling contextMenuExtension of:  "" "kdevoutlineview" Error?:  false
Calling contextMenuExtension of:  "" "kdevstandardoutputview" Error?:  false
Calling contextMenuExtension of:  "" "kdevphpdocs" Error?:  false
Calling contextMenuExtension of:  "" "kdevphpsupport" Error?:  false
Calling contextMenuExtension of:  "" "kdevphpunitprovider" Error?:  false
Calling contextMenuExtension of:  "" "kdevexecuteplasmoid" Error?:  false
Calling contextMenuExtension of:  "" "kdevproblemreporter" Error?:  false
Calling contextMenuExtension of:  "" "kdevprojectmanagerview" Error?:  false
Calling contextMenuExtension of:  "" "kdevpdbsupport" Error?:  false
Calling contextMenuExtension of:  "" "kdevqthelp" Error?:  false
Calling contextMenuExtension of:  "" "kdevquickopen" Error?:  false
Calling contextMenuExtension of:  "" "scratchpad" Error?:  false
Calling contextMenuExtension of:  "" "" Error?:  false
Calling contextMenuExtension of:  "" "kdevswitchtobuddy" Error?:  false
Calling contextMenuExtension of:  "" "kdevtestview" Error?:  false
virtual void GitPlugin::additionalMenuEntries(QMenu*, const QList<QUrl>&)
virtual void KDevelop::DVcsJob::start() "2025-05-09T03:04:25.062" Unlocked
129257412382088
virtual void GitPlugin::additionalMenuEntries(QMenu*, const QList<QUrl>&) 0 
Gone. 
Calling contextMenuExtension of:  "" "kdevghprovider" Error?:  false
Calling contextMenuExtension of:  "" "kdevheaptrack" Error?:  false
Calling contextMenuExtension of:  "" "kdevfilemanager" Error?:  false
Calling contextMenuExtension of:  "" "kdevwelcomepage" Error?:  false
Calling contextMenuExtension of:  "" "kdevkonsoleview" Error?:  false
Calling contextMenuExtension of:  "" "kdevlldb" Error?:  false
Calling contextMenuExtension of:  "" "" Error?:  false
Calling contextMenuExtension of:  "" "kdevmakebuilder" Error?:  false
Calling contextMenuExtension of:  "" "kdevdocumentswitcher" Error?:  false
Calling contextMenuExtension of:  "" "kdevappwizard" Error?:  false
Calling contextMenuExtension of:  "" "kdevopenwith" Error?:  false
Calling contextMenuExtension of:  "" "kdevoutlineview" Error?:  false
Calling contextMenuExtension of:  "" "kdevstandardoutputview" Error?:  false
Calling contextMenuExtension of:  "" "kdevphpdocs" Error?:  false
Calling contextMenuExtension of:  "" "kdevphpsupport" Error?:  false
Calling contextMenuExtension of:  "" "kdevphpunitprovider" Error?:  false
Calling contextMenuExtension of:  "" "kdevexecuteplasmoid" Error?:  false
Calling contextMenuExtension of:  "" "kdevproblemreporter" Error?:  false
Calling contextMenuExtension of:  "" "kdevprojectmanagerview" Error?:  false
Calling contextMenuExtension of:  "" "kdevpdbsupport" Error?:  false
Calling contextMenuExtension of:  "" "kdevqthelp" Error?:  false
Calling contextMenuExtension of:  "" "kdevquickopen" Error?:  false
Calling contextMenuExtension of:  "" "scratchpad" Error?:  false
Calling contextMenuExtension of:  "" "" Error?:  false
Calling contextMenuExtension of:  "" "kdevswitchtobuddy" Error?:  false
Calling contextMenuExtension of:  "" "kdevtestview" Error?:  false
KCrash: Application 'kdevelop' crashing... crashRecursionCounter = 2
zsh: segmentation fault (core dumped)  kdevelop

____

I really think we should try reproducing it on someone else's system. Who
knows, it is just something wonky going on with my hardware, causing the same
behaviour in both installations

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to