Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when using keyboard shortcut CTRL-SHIFT-M under Windows #314

Open
markusbuschhoff opened this issue May 3, 2021 · 0 comments
Open
Labels

Comments

@markusbuschhoff
Copy link

markusbuschhoff commented May 3, 2021

I use the keyboard shortcut CTRL-SHIFT-M to open SSH sessions via putty. However, the whole shortcut handling under Windows (on two different installations) does not work correctly:

Description

  • right after starting KeePass2, the shortcut shows no reaction at all
  • only after opening the "KeeAgent" shortcut menu (no need to select anything here), the shortcut becomes active. This bug has been there for some versions now, I got used to it.
  • now, after context menu opening, with KeeAgent v0.12.1.0, using the shortcut (not the menu) the first time causes an unhandled exception (see below)
  • when using the context menu directly, this exception never occurs
  • only after once having used the context menu, the shortcut works as expected, too

Steps to reproduce bug

  • freshly start KeePass2
  • select an entry with KeeAgent functionality
  • hit CTRL-SHIFT-M -> no reaction (bug 1)
  • open the KeeAgent context menu of this item (not selected anything), dismiss the menu
  • hit CTRL-SHIFT-M:
    • former versions: works as expected
    • now: Unhandled exception message (bug 2)

Version info

KeePass: 2.47 (64bit)
XSL Stylesheets for KBDX XML: Installed
KeePassLibC (1x File Support) :1.39 (0x1B7)
KeeAgent: v0.12.1.0, no other plugins installed
Windows: 10.0.18363 Build 18363

Exception message

Informationen über das Aufrufen von JIT-Debuggen
anstelle dieses Dialogfelds finden Sie am Ende dieser Meldung.

************** Ausnahmetext **************
System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
   bei KeeAgent.KeeAgentExt.PwEntryMenuLoadKeyItem_Clicked(Object sender, EventArgs e)
   bei System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   bei System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   bei System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   bei System.Windows.Forms.ToolStripMenuItem.ProcessCmdKey(Message& m, Keys keyData)
   bei System.Windows.Forms.ToolStripManager.ProcessShortcut(Message& m, Keys shortcut)
   bei System.Windows.Forms.Form.ProcessCmdKey(Message& msg, Keys keyData)
   bei KeePass.Forms.MainForm.ProcessCmdKey(Message& msg, Keys keyData)
   bei System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
   bei System.Windows.Forms.ContainerControl.ProcessCmdKey(Message& msg, Keys keyData)
   bei System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
   bei System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
   bei System.Windows.Forms.ContainerControl.ProcessCmdKey(Message& msg, Keys keyData)
   bei System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
   bei System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
   bei System.Windows.Forms.Control.PreProcessMessage(Message& msg)
   bei System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg)
   bei System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)


************** Geladene Assemblys **************
mscorlib
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4300.0 built by: NET48REL1LAST_C.
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll.
----------------------------------------
KeePass
    Assembly-Version: 2.47.0.21109.
    Win32-Version: 2.47.0.0.
    CodeBase: file:///C:/Program%20Files%20(x86)/KeePass%20Password%20Safe%202/KeePass.exe.
----------------------------------------
System
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4300.0 built by: NET48REL1LAST_C.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll.
----------------------------------------
System.Windows.Forms
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4270.0 built by: NET48REL1LAST_C.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll.
----------------------------------------
System.Drawing
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.3752.0 built by: NET48REL1.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll.
----------------------------------------
System.Configuration
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4190.0 built by: NET48REL1LAST_B.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll.
----------------------------------------
System.Core
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4320.0 built by: NET48REL1LAST_C.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll.
----------------------------------------
System.Xml
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.3752.0 built by: NET48REL1.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll.
----------------------------------------
System.Windows.Forms.resources
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.3752.0 built by: NET48REL1.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_de_b77a5c561934e089/System.Windows.Forms.resources.dll.
----------------------------------------
KeeAgent
    Assembly-Version: 0.12.1.0.
    Win32-Version: 0.12.1.0.
    CodeBase: file:///C:/Users/Markus/AppData/Local/KeePass/PluginCache/CymArOTqTPisY3rBOI4i/KeeAgent.dll.
----------------------------------------
SshAgentLib
    Assembly-Version: 0.9.4.0.
    Win32-Version: 0.9.4.0.
    CodeBase: file:///C:/Users/Markus/AppData/Local/KeePass/PluginCache/CymArOTqTPisY3rBOI4i/SshAgentLib.DLL.
----------------------------------------
SshAgentLib.WinForms
    Assembly-Version: 0.9.2.0.
    Win32-Version: 0.9.2.0.
    CodeBase: file:///C:/Users/Markus/AppData/Local/KeePass/PluginCache/CymArOTqTPisY3rBOI4i/SshAgentLib.WinForms.DLL.
----------------------------------------
System.Security
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4261.0 built by: NET48REL1LAST_B.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Security/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Security.dll.
----------------------------------------
KeePass.XmlSerializers
    Assembly-Version: 2.47.0.21109.
    Win32-Version: 2.47.0.21109.
    CodeBase: file:///C:/Program%20Files%20(x86)/KeePass%20Password%20Safe%202/KeePass.XmlSerializers.DLL.
----------------------------------------
mscorlib.resources
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.3752.0 built by: NET48REL1.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_de_b77a5c561934e089/mscorlib.resources.dll.
----------------------------------------
Microsoft.GeneratedCode
    Assembly-Version: 1.0.0.0.
    Win32-Version: 4.8.3752.0 built by: NET48REL1.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll.
----------------------------------------
BouncyCastle.Crypto
    Assembly-Version: 1.8.1.0.
    Win32-Version: 1.8.1.146.
    CodeBase: file:///C:/Users/Markus/AppData/Local/KeePass/PluginCache/CymArOTqTPisY3rBOI4i/BouncyCastle.Crypto.DLL.
----------------------------------------

************** JIT-Debuggen **************
Um das JIT-Debuggen (Just-In-Time) zu aktivieren, muss in der
Konfigurationsdatei der Anwendung oder des Computers
(machine.config) der jitDebugging-Wert im Abschnitt system.windows.forms festgelegt werden.
Die Anwendung muss mit aktiviertem Debuggen kompiliert werden.

Zum Beispiel:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

Wenn das JIT-Debuggen aktiviert ist, werden alle nicht behandelten
Ausnahmen an den JIT-Debugger gesendet, der auf dem
Computer registriert ist, und nicht in diesem Dialogfeld behandelt.
@dlech dlech added the bug label Jan 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

2 participants