KeePass 1.22 prevents Windows shutdown

Help
G. Menge
2012-05-30
2012-11-19
  • G. Menge

    G. Menge - 2012-05-30

    KeePass V1.22 prevents Windows shutdown when no database is open. When a database is open shutdown is possible. This strange shutdown prevention was not present in V1.21.

    Regards,

    Frank

     
  • Paul

    Paul - 2012-06-03

    What version of Windows.
    KeePass portable or installed?
    Have you tested on more than one PC?

    cheers, Paul

     
  • G. Menge

    G. Menge - 2012-06-04

    Hi Paul

       and thanks for your answer:

       This happens with the installed version on Windows 7 Home Premium 32 Bit and Windows Vista Enterprise 32 Bit. Both have all the latest patches.

       My impression was that this happens all the time so I did not give more details.

       KeePass is started together with Windows. When I do not enter the master password but leave it alone and then shut Windows down a message comes up that says "programs are preventing Windows from shutting down" and KeePass is the one on the top of the list and it is highlighted.

       When I open a password database before shutting down shutdown proceeds normally.

       As I already said, this behaviour is new with V1.22. I had V1.21 installed on both machines before and never had any problems.

       Regards,
       Frank

     
  • Brett Schwarzenbek

    I have the same exact problem. When I go to shutdown, Keepass is preventing the computer from doing so. It just hangs on the screen that tells you that the computer is trying to stop background processes. Any assistance?

    I am running Windows 7 64bit Pro.

     
  • Brett Schwarzenbek

    By the way, I am running the installed version 1.22. I just started using the program.

     
  • Horst

    Horst - 2012-06-14

    How useful is a running Keepass without an open database ?
    Never have such a situation and specially not on a shutdown.

     
  • G. Menge

    G. Menge - 2012-06-14

    > How useful is a running Keepass without an open database ?

    What a strange question…

    I simply do not need passwords everytime I turn on my computer. Sometimes I just work locally with no need for passwords at all.

     
  • G. Menge

    G. Menge - 2012-06-14

    I am pretty sure that this happens evertyime on Windows when KeePass is started but no database opened. It should be easy to reproduce this.

    Regards,

    Frank

     
  • Dominik Reichl

    Dominik Reichl - 2012-06-15

    Unfortunately I can't reproduce it (tried it on multiple Windows systems). If you'd provide your configuration file and detailed steps what you're doing, maybe I could.

    Best regards
    Dominik

     
  • Horst

    Horst - 2012-06-15

    @formix
    > How useful is a running Keepass without an open database ?
    What a strange question…
    I simply do not need passwords everytime I turn on my computer. Sometimes I just work locally with no need for passwords at all.

    Its not a strange question, why do you start a program which you don't need at all ?

     
  • G. Menge

    G. Menge - 2012-06-15

    Hi, Domik,

       thanks for your answer.

       Here is the configuration file:

    --- snip ---

    KeeClipboardSeconds=120
    KeeClipboardMethod=0
    KeeAutoTypeHotKey=393281
    KeeRestoreHotKey=False
    KeeNewLine=Windows
    KeeUsePutty=False
    KeeAutoSortPwList=1
    KeeSaveOnLATMod=False
    KeeAutoOpen=True
    KeeAutoSave=True
    KeeRememberLast=True
    KeeSingleInstance=True
    KeeLastDir=C:\Program Files\KeePass Password Safe
    KeeLastDb=E:\Users\Public\Documents\FS.kdb
    KeeRememberKeySources=True
    KeeStartMinimized=False
    KeeDisableUnsafe=False
    KeeImgButtons=True
    KeeEntryGrid=False
    KeeShowExpiredAtOpen=False
    KeeShowSoonExpiredAtOpen=False
    KeeBackupEntries=True
    KeeSecureEditControls=True
    KeeSingleClickTrayIcon=False
    KeeQuickFindIncBackup=True
    KeeQuickFindIncExpired=True
    KeeDeleteBackupsOnSave=False
    KeeDisableAutoType=False
    KeeCopyURLs=False
    KeeExitInsteadOfLockAT=False
    KeeFocusResultsAfterQuickFind=False
    KeeAlwaysAllowIPC=False
    KeeDropToBackOnCopy=False
    KeeSortAutoTypeSelItems=True
    KeeUseTransactedFileWrites=True
    KeeShowTitle=True
    KeeShowUser=True
    KeeShowURL=True
    KeeShowPassword=True
    KeeShowNotes=True
    KeeShowCreation=False
    KeeShowLastMod=False
    KeeShowLastAccess=False
    KeeShowExpire=False
    KeeShowUUID=False
    KeeShowAttach=False
    KeeUseLocalTimeFormat=True
    KeeEntryView=True
    KeeHideStars=True
    KeeHideUserStars=False
    KeeAlwaysOnTop=False
    KeeLockOnMinimize=False
    KeeMinimizeOnLock=True
    KeeMinimizeToTray=False
    KeeCloseMinimizes=False
    KeeShowToolBar=True
    KeeColAutoSize=False
    KeeShowFullPath=True
    KeeDeleteTANsAfterUse=False
    KeeSimpleTANView=True
    KeeShowTANIndices=True
    KeeAllowSaveIfModifiedOnly=True
    KeeCheckForUpdate=True
    KeeLockOnWinLock=False
    KeeClearClipboardOnDbClose=True
    KeeEnableRemoteCtrl=False
    KeeUseHelpCenter=True
    KeeHeaderItemOrder=0 1 3 2 4 5 6 7 8 9 10
    KeeAutoTypeMethod=0
    KeeListFont=MS Shell Dlg;8,0000
    KeeWindowPX=470
    KeeWindowPY=154
    KeeWindowDX=508
    KeeWindowDY=580
    KeeColumnWidth0=184
    KeeColumnWidth1=84
    KeeColumnWidth2=84
    KeeColumnWidth3=84
    KeeColumnWidth4=84
    KeeColumnWidth5=0
    KeeColumnWidth6=0
    KeeColumnWidth7=0
    KeeColumnWidth8=0
    KeeColumnWidth9=0
    KeeColumnWidth10=0
    KeeSplitterX=173
    KeeSplitterY=122
    KeeWindowMaximized=False
    KeeRowColor=16772846
    KeeLockAfterTime=-1
    KeeDefaultExpire=0
    KeeGenProfileAuto=AgABTgAAABQDgAAAAABBTlIAAA==
    KeeAutoPwGen=True
    KeeDefaultAutoTypeSequence={USERNAME}{TAB}{PASSWORD}{ENTER}
    KeeAutoTypeIEFix=True
    KeeUseDPAPIForMemoryProtection=True
    KeeUseCNGForKeyTransformations=True
    KeeGenProfile0=0
    KeeGenProfileLast=AihCZW51dHplcmRlZmluaWVydCkAAU4AAAAeA5gAAAAAQU5SAAA=
    KeeNotesFont=
    KeeAutoTypeSameKeybLayouts=True
    KeeLanguage=German
    --- snap ---

    The steps are actually quite easy:

    1. Start Windows (7 Home Premium or Vista Enterprise)
    2. Log in to an account. KeePass starts automatically since it is configured to start with Windows.
    3. Shut down Windows

    That's it. Shutdown hangs and says that KeePass is preventing shutdown.

    I hope this helps.

    Regards,

    Frank

     
  • G. Menge

    G. Menge - 2012-06-15

    Oh, and do not open a KeePass database in step 2. Just let it start after the login and when everything is running jusr shut down.

     
  • Dominik Reichl

    Dominik Reichl - 2012-06-15

    Can you confirm that the 'Open Database' dialog is still displayed when trying to shutdown?

    Best regards
    Dominik

     
  • Dominik Reichl

    Dominik Reichl - 2012-06-15

    I was able to reproduce the issue while the 'Open Database' dialog is displayed.

    Earlier KeePass versions could have crashed and lost data when the system is shutdown. KeePass 1.22 improved the dialog state handling, but the shutdown prevention should indeed be weakened a bit. I've now added code that allows the system to shutdown while a dialog is displayed but no database is opened.

    Here's the latest 1.x development snapshot for testing:
    http://keepass.info/filepool/KeePass_120615c.zip

    Best regards
    Dominik

     
  • G. Menge

    G. Menge - 2012-06-18

    Hi Dominik,

       this is great to hear. I will test the snapshot and give you feedback.

       Thanks a lot for your help.

       Regards,

       Frank

     
  • G. Menge

    G. Menge - 2012-06-20

    Hi, Dominik,

       I just tested the snapshot and the shutdown problem is gone.

       Thanks for your great work.

       Kind regards,

       Frank

     

Log in to post a comment.