Closed 4-FLOSS-Free-Libre-Open-Source-Software closed 4 years ago
Thanks for reporting. I need a bit more information to understand the scenario and see if I can reproduce it.
I've go these keys configured:
Do I understand it correctly that I need to lock the KeePass database first:
Then open another application such as notepad, in notepad hit CTRL+ALT+A, enter my password to unlock my KeePass database again and then what should happen? For me nothing happens at this point. Nothing gets copied in to notepad nor does KeePass ask me something nor do I run into an error.
Another Error noting.
I got a similar error now, while database unlocked but saving and so triggering a sync:
KoenZomersKeePassOneDriveSync.KoenZomersKeePassOneDriveSyncExt.<MainWindowOnFileSaved>d__2.MoveNext()
Well this might is no fatal bug. Since i could click continue button and save database again. sync finished without any error than. Can't reproduce yet!
This is what it looked like:
Informationen über das Aufrufen von JIT-Debuggen
anstelle dieses Dialogfelds finden Sie am Ende dieser Meldung.
************** Ausnahmetext **************
KeePassLib.Serialization.FileLockException: C:\Users\XXXXXXXXXXXXXXXXXXX.kdbx
Die Datei ist gesperrt, da der folgende Benutzer momentan in sie schreibt:
usr (LOCALHOST)
Bitte versuchen Sie es in ein paar Sekunden erneut.
bei KeePassLib.Serialization.FileLock..ctor(IOConnectionInfo iocBaseFile)
bei KeePassLib.PwDatabase.Save(IStatusLogger slLogger)
bei KoenZomersKeePassOneDriveSync.KoenZomersKeePassOneDriveSyncExt.<MainWindowOnFileSaved>d__2.MoveNext()
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
************** Geladene Assemblys **************
mscorlib
Assembly-Version: 4.0.0.0.
Win32-Version: 4.8.4042.0 built by: NET48REL1LAST_C.
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll.
----------------------------------------
KeePass
Assembly-Version: 2.43.0.18739.
Win32-Version: 2.43.0.0.
CodeBase: file:///C:/Program%20Files%20(x86)/KeePass%20Password%20Safe%202/KeePass.exe.
----------------------------------------
.........................................................................................
----------------------------------------
KoenZomers.OneDrive.Api
Assembly-Version: 2.3.0.3.
Win32-Version: 2.3.0.3.
CodeBase: file:///C:/Users/usr/AppData/Local/KeePass/PluginCache/Mb526SHiiytWyPYQf7XB/KoenZomers.OneDrive.Api.DLL.
----------------------------------------
Newtonsoft.Json
Assembly-Version: 7.0.0.0.
Win32-Version: 7.0.1.18622.
CodeBase: file:///C:/Users/usr/AppData/Local/KeePass/PluginCache/Gj1Fc5hHZgMqoJVbdO3a/Newtonsoft.Json.DLL.
----------------------------------------
System.Threading.Tasks
Assembly-Version: 4.0.0.0.
Win32-Version: 4.8.3752.0.
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Threading.Tasks/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Threading.Tasks.dll.
----------------------------------------
System.IO
Assembly-Version: 4.0.0.0.
Win32-Version: 4.8.3752.0.
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.IO/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.IO.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.
Can't reproduce d__2.MoveNext()
!
But d__a.MoveNext
.
Do I understand it correctly that I need to lock the KeePass database first: Yes, db locked. For example start with locked but opened database. I've go these keys configured:
yes. globally autotype hotkey pressed. ctrl+alt+a
Then open another application such as notepad, in notepad hit CTRL+ALT+A, enter my password to unlock my KeePass database again and then what should happen?
I enter password and the error dialog appears for me. without password being typed.
with KeePass Google Sync Plugin both enable it happens, because both plugins seem to access file at same time while the other may not be finished syncing... with it disabled i don't see this error again. In this case it is not your Plugin issue to take care of.
Thanks for the extra info. I could see if I can add an extra check to ensure the KeePass file is not locked by another process. Would that help or is your issue resolved by simply disabling the other plugin?
just disabled the other. so, personally this resolved the issue for myself. there is usually nothing else i know of, that should lock the file at the same moment it is being synchronised by this plugin i think.
Keepass Version 2.43 KoenZomersKeePassOneDriveSync Version: 2.0.9.0.
Steps to Issue was:
Error: