kee-org / KeeFox

Legacy browser and XUL application integration with KeePass Password Safe. See https://github.com/kee-org/browser-addon for the new version for Firefox 57+
https://forum.kee.pm
418 stars 48 forks source link

FF 72.0.2, KeePass 2.44, KeeFox 3.2.7 and RPC Plugin 1.10.0 cause KeePass to crash #835

Closed social-ink closed 4 years ago

social-ink commented 4 years ago

Posted this under the plugin but it seems appropriate here as well.

KeePass starts up minimized to tray, but any hovering over it will cause it to crash. Ctrl Alt K does not work. It keeps crashing (exiting)

When Kee for FF is disabled as an addon, KeePass runs fine. When I run "C:\Program Files (x86)\KeePass Password Safe 2\KeePass.exe" --KPRPCDebug=c:\temp\kprpc-debug.log I get this:

Logger initialised.
Client managers started.
RPC service started.
Starting KPRPCServer
Fleck says: Constructed server at ws://localhost:12546. Explicit port: 8181. Implicit port: 12546. Loopback only? True
Fleck says: Starting server at ws://localhost:12546. Loopback only? True
Fleck says: Server started at ws://localhost:12546
Started KPRPCServer
RPC server started.
KPRPC startup failed: System.BadImageFormatException: Could not load file or assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The module was expected to contain an assembly manifest.
File name: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
   at KeePassRPC.DPIScaledToolStripMenuItem..ctor(String text)
   at KeePassRPC.KeePassRPCExt.Initialize(IPluginHost host)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Fleck says: Client connected from 127.0.0.1:51110
Fleck says: 243 bytes read
Fleck says: Error while reading. Exception: Fleck2.WebSocketException: Exception of type 'Fleck2.WebSocketException' was thrown.
   at Fleck2.HandlerFactory.BuildHandler(WebSocketHttpRequest request, Action`1 onMessage, Action onClose, Action`1 onBinary)
   at Fleck2.WebSocketConnection.CreateHandler(IEnumerable`1 data)
   at Fleck2.WebSocketConnection.<>c__DisplayClassb.<Read>b__a(Int32 r)
   at Fleck2.SocketResult.Success[TResult](Action`1 callback)
   at Fleck2.SocketWrapper.<>c__DisplayClass7.<Receive>b__6(SocketResult result)
   at Fleck2.SocketFactory.<>c__DisplayClass16.<DoAsyncTask>b__15(Object )
Fleck says: Client connected from 127.0.0.1:51111
Fleck says: 243 bytes read
Fleck says: Error while reading. Exception: Fleck2.WebSocketException: Exception of type 'Fleck2.WebSocketException' was thrown.
   at Fleck2.HandlerFactory.BuildHandler(WebSocketHttpRequest request, Action`1 onMessage, Action onClose, Action`1 onBinary)
   at Fleck2.WebSocketConnection.CreateHandler(IEnumerable`1 data)
   at Fleck2.WebSocketConnection.<>c__DisplayClassb.<Read>b__a(Int32 r)
   at Fleck2.SocketResult.Success[TResult](Action`1 callback)
   at Fleck2.SocketWrapper.<>c__DisplayClass7.<Receive>b__6(SocketResult result)
   at Fleck2.SocketFactory.<>c__DisplayClass16.<DoAsyncTask>b__15(Object )
Fleck says: Client connected from 127.0.0.1:51112
Fleck says: 243 bytes read
Fleck says: Error while reading. Exception: Fleck2.WebSocketException: Exception of type 'Fleck2.WebSocketException' was thrown.
   at Fleck2.HandlerFactory.BuildHandler(WebSocketHttpRequest request, Action`1 onMessage, Action onClose, Action`1 onBinary)
   at Fleck2.WebSocketConnection.CreateHandler(IEnumerable`1 data)
   at Fleck2.WebSocketConnection.<>c__DisplayClassb.<Read>b__a(Int32 r)
   at Fleck2.SocketResult.Success[TResult](Action`1 callback)
   at Fleck2.SocketWrapper.<>c__DisplayClass7.<Receive>b__6(SocketResult result)
   at Fleck2.SocketFactory.<>c__DisplayClass16.<DoAsyncTask>b__15(Object )
Fleck says: Client connected from 127.0.0.1:51113
Fleck says: 243 bytes read
Fleck says: Error while reading. Exception: Fleck2.WebSocketException: Exception of type 'Fleck2.WebSocketException' was thrown.
   at Fleck2.HandlerFactory.BuildHandler(WebSocketHttpRequest request, Action`1 onMessage, Action onClose, Action`1 onBinary)
   at Fleck2.WebSocketConnection.CreateHandler(IEnumerable`1 data)
   at Fleck2.WebSocketConnection.<>c__DisplayClassb.<Read>b__a(Int32 r)
   at Fleck2.SocketResult.Success[TResult](Action`1 callback)
   at Fleck2.SocketWrapper.<>c__DisplayClass7.<Receive>b__6(SocketResult result)
   at Fleck2.SocketFactory.<>c__DisplayClass16.<DoAsyncTask>b__15(Object )
Fleck says: Client connected from 127.0.0.1:51114
Fleck says: 243 bytes read
Fleck says: Error while reading. Exception: Fleck2.WebSocketException: Exception of type 'Fleck2.WebSocketException' was thrown.
   at Fleck2.HandlerFactory.BuildHandler(WebSocketHttpRequest request, Action`1 onMessage, Action onClose, Action`1 onBinary)
   at Fleck2.WebSocketConnection.CreateHandler(IEnumerable`1 data)
   at Fleck2.WebSocketConnection.<>c__DisplayClassb.<Read>b__a(Int32 r)
   at Fleck2.SocketResult.Success[TResult](Action`1 callback)
   at Fleck2.SocketWrapper.<>c__DisplayClass7.<Receive>b__6(SocketResult result)
   at Fleck2.SocketFactory.<>c__DisplayClass16.<DoAsyncTask>b__15(Object )
Fleck says: Client connected from 127.0.0.1:51115
Fleck says: 243 bytes read
Fleck says: Error while reading. Exception: Fleck2.WebSocketException: Exception of type 'Fleck2.WebSocketException' was thrown.
   at Fleck2.HandlerFactory.BuildHandler(WebSocketHttpRequest request, Action`1 onMessage, Action onClose, Action`1 onBinary)
   at Fleck2.WebSocketConnection.CreateHandler(IEnumerable`1 data)
   at Fleck2.WebSocketConnection.<>c__DisplayClassb.<Read>b__a(Int32 r)
   at Fleck2.SocketResult.Success[TResult](Action`1 callback)
   at Fleck2.SocketWrapper.<>c__DisplayClass7.<Receive>b__6(SocketResult result)
   at Fleck2.SocketFactory.<>c__DisplayClass16.<DoAsyncTask>b__15(Object )
Fleck says: Client connected from 127.0.0.1:51116
Fleck says: 243 bytes read
Fleck says: Error while reading. Exception: Fleck2.WebSocketException: Exception of type 'Fleck2.WebSocketException' was thrown.
   at Fleck2.HandlerFactory.BuildHandler(WebSocketHttpRequest request, Action`1 onMessage, Action onClose, Action`1 onBinary)
   at Fleck2.WebSocketConnection.CreateHandler(IEnumerable`1 data)
   at Fleck2.WebSocketConnection.<>c__DisplayClassb.<Read>b__a(Int32 r)
   at Fleck2.SocketResult.Success[TResult](Action`1 callback)
   at Fleck2.SocketWrapper.<>c__DisplayClass7.<Receive>b__6(SocketResult result)
   at Fleck2.SocketFactory.<>c__DisplayClass16.<DoAsyncTask>b__15(Object )
Fleck says: Client connected from 127.0.0.1:51117
Fleck says: 243 bytes read
Fleck says: Error while reading. Exception: Fleck2.WebSocketException: Exception of type 'Fleck2.WebSocketException' was thrown.
   at Fleck2.HandlerFactory.BuildHandler(WebSocketHttpRequest request, Action`1 onMessage, Action onClose, Action`1 onBinary)
   at Fleck2.WebSocketConnection.CreateHandler(IEnumerable`1 data)
   at Fleck2.WebSocketConnection.<>c__DisplayClassb.<Read>b__a(Int32 r)
   at Fleck2.SocketResult.Success[TResult](Action`1 callback)
   at Fleck2.SocketWrapper.<>c__DisplayClass7.<Receive>b__6(SocketResult result)
   at Fleck2.SocketFactory.<>c__DisplayClass16.<DoAsyncTask>b__15(Object )
Fleck says: Client connected from 127.0.0.1:51118
Fleck says: 243 bytes read
Fleck says: Error while reading. Exception: Fleck2.WebSocketException: Exception of type 'Fleck2.WebSocketException' was thrown.
   at Fleck2.HandlerFactory.BuildHandler(WebSocketHttpRequest request, Action`1 onMessage, Action onClose, Action`1 onBinary)
   at Fleck2.WebSocketConnection.CreateHandler(IEnumerable`1 data)
   at Fleck2.WebSocketConnection.<>c__DisplayClassb.<Read>b__a(Int32 r)
   at Fleck2.SocketResult.Success[TResult](Action`1 callback)
   at Fleck2.SocketWrapper.<>c__DisplayClass7.<Receive>b__6(SocketResult result)
   at Fleck2.SocketFactory.<>c__DisplayClass16.<DoAsyncTask>b__15(Object )
Fleck says: Client connected from 127.0.0.1:51119
Fleck says: 243 bytes read
Fleck says: Error while reading. Exception: Fleck2.WebSocketException: Exception of type 'Fleck2.WebSocketException' was thrown.
   at Fleck2.HandlerFactory.BuildHandler(WebSocketHttpRequest request, Action`1 onMessage, Action onClose, Action`1 onBinary)
   at Fleck2.WebSocketConnection.CreateHandler(IEnumerable`1 data)
   at Fleck2.WebSocketConnection.<>c__DisplayClassb.<Read>b__a(Int32 r)
   at Fleck2.SocketResult.Success[TResult](Action`1 callback)
   at Fleck2.SocketWrapper.<>c__DisplayClass7.<Receive>b__6(SocketResult result)
   at Fleck2.SocketFactory.<>c__DisplayClass16.<DoAsyncTask>b__15(Object )
Fleck says: Client connected from 127.0.0.1:51120
Fleck says: 495 bytes read
Fleck says: Building Hybi-14 Response
Fleck says: Sent 129 bytes
Fleck says: 608 bytes read
Fleck says: Client connected from 127.0.0.1:51109
Fleck says: Application Error. Exception: System.BadImageFormatException: Could not load file or assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The module was expected to contain an assembly manifest.
File name: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
   at Jayrock.Json.Conversion.Converters.ExpandoObjectExporter..ctor()
   at Jayrock.Json.Conversion.ExportContext.get_StockExporters()
   at Jayrock.Json.Conversion.ExportContext.FindExporter(Type type)
   at Jayrock.Json.Conversion.ExportContext.Export(Object value, JsonWriter writer)
   at Jayrock.Json.Conversion.JsonConvert.ExportToString(Object value)
   at KeePassRPC.KeePassRPCClientConnection.AbortWithMessageToClient(KPRPCMessage data2client)
   at KeePassRPC.KeePassRPCExt.MessageRPCClientConnection(IWebSocketConnection webSocket, String message, KeePassRPCService service)
   at Fleck2.Handlers.Hybi13Handler.<>c__DisplayClassa.<Create>b__6(FrameType op, Byte[] data)
   at Fleck2.Handlers.Hybi13Handler.ReceiveData(List`1 data, ReadState readState, Action`2 processFrame)
   at Fleck2.WebSocketConnection.<>c__DisplayClassb.<Read>b__a(Int32 r)
   at Fleck2.SocketResult.Success[TResult](Action`1 callback)
   at Fleck2.SocketWrapper.<>c__DisplayClass7.<Receive>b__6(SocketResult result)
   at Fleck2.SocketFactory.<>c__DisplayClass16.<DoAsyncTask>b__15(Object )

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Fleck says: Sent 4 bytes
Fleck says: Failed to send. Disconnecting.. Exception: System.InvalidOperationException: This operation has already had OperationCompleted called on it and further calls are illegal.
   at System.ComponentModel.AsyncOperation.VerifyNotCompleted()
   at System.ComponentModel.AsyncOperation.Post(SendOrPostCallback d, Object arg)
   at KeePassRPC.KeePassRPCClientConnection.ShuttingDown()
   at KeePassRPC.KeePassRPCClientManager.RemoveRPCClientConnection(KeePassRPCClientConnection client)
   at KeePassRPC.KeePassRPCExt.RemoveRPCClientConnection(IWebSocketConnection webSocket)
   at Fleck2.WebSocketConnection.CloseSocket()
   at Fleck2.WebSocketConnection.<>c__DisplayClassf.<SendBytes>b__d()
   at Fleck2.SocketResult.Success(Action callback)
   at Fleck2.SocketWrapper.<>c__DisplayClassf.<Send>b__e(SocketResult result)
   at Fleck2.SocketFactory.<>c__DisplayClass16.<DoAsyncTask>b__15(Object )
github-actions[bot] commented 4 years ago

Following the recent announcement of the end of critical security patch support for this old software - https://forum.kee.pm/t/keefox-critical-security-support-ends-30th-september-2020-kee-is-unaffected/3219 - this issue has been automatically marked as stale. We will soon close this issue and then archive this repository in early October 2020.

If you think that the issue contents may still be relevant to the actively maintained Kee project, the successor of KeeFox, please search the community forum for help and post a new topic if appropriate: https://forum.kee.pm

Please do not reply to this comment / notification - it won't be seen.