Menu

#1784 Clicking on option *Generate Password ...' closes the application window

KeePass_2.x
closed
nobody
None
5
2018-11-08
2018-11-05
Ricky Tigg
No

Component: keepass.x86_64 2.40-1.fc29 @fedora

Clicking on option 'Generate Password ...' closes the application window. Application has been reinstalled yet behavior is present. All dependencies are installed:

$ LANG=C dnf deplist keepass | awk '/provider:/ {print $2}' | sort -u | egrep ".noarch|.x86_64"
Last metadata expiration check: 1:32:12 ago on Mon Nov  5 11:46:27 2018.
bash-4.4.23-5.fc29.x86_64
hicolor-icon-theme-0.17-3.fc29.noarch
mono-core-4.8.0-12.fc28.x86_64
mono-winforms-4.8.0-12.fc28.x86_64
xdotool-1:3.20150503.1-7.fc29.x86_64
xsel-1.2.0-23.fc29.x86_64
1 Attachments

Discussion

  • Paul

    Paul - 2018-11-06

    Which window closes?
    How did you open the password generator?
    Does it happen when you preview passwords?
    Do you have any plug-ins installed? Remove them and test.

    cheers, Paul

     
  • Ricky Tigg

    Ricky Tigg - 2018-11-06

    – The one illustrated in attachment Keepass_v.2.40_Fedora.png.
    – From bar menu, Tools | Generate Password ....
    – Susequently operation passwords' preview cannot be operated.
    – No plug-ins installed:

    $ dnf list installed | grep -i keepass
    keepass.x86_64                                    2.40-1.fc29                         @fedora
    
     
  • Paul

    Paul - 2018-11-06

    The window in your screen shot appears to be the main KeePass window.
    Is KeePass still running or do you have to re-start it?

    cheers, Paul

     
  • Ricky Tigg

    Ricky Tigg - 2018-11-06

    – Indeed. KeePass is not running as illustrated here in second step:

    • State: manin window active. Using top command:
    $ top
      PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                                                                                    
    27519 yk        20   0  727528  78960  35896 S   1,7   2,1   0:10.52 /usr/bin/mono --verify-all /usr/lib/keepass/KeePass.exe  
    
    • State: manin window closed as result of clicking on option Generate Password... As a result process desappears:
    $ top
      PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND 
    
     
  • Paul

    Paul - 2018-11-06

    That seems to be a crash. Do you get any dump output if you run KeePass from a terminal window?

    cheers, Paul

     
  • Ricky Tigg

    Ricky Tigg - 2018-11-06

    I didn't have that intuition. I get in that order error messages:

    • See attachment keepass_terminal_error.png– in GUI environment.
    • While clicking on OK ithe folowing output is produced: – see attachment keepassterminalerror resulting from ' keepass >keepass_terminal_error' –.
     
  • Paul

    Paul - 2018-11-06

    I don't know what that's complaining about, but Dominik may have an idea.

    cheers, Paul

    p.s. I've posted your dump below

    System.ArgumentException: Value does not fall within the expected range.
      at KeePassLib.PwUuid.SetValue (System.Byte[] uuidBytes) [0x0001b] in <2b079b205cb843b985fbd8fed98b063e>:0 
      at KeePassLib.PwUuid..ctor (System.Byte[] uuidBytes) [0x00006] in <2b079b205cb843b985fbd8fed98b063e>:0 
      at KeePass.Forms.PwGeneratorForm.OnFormLoad (System.Object sender, System.EventArgs e) [0x005ed] in <2b079b205cb843b985fbd8fed98b063e>:0 
      at System.Windows.Forms.Form.OnLoad (System.EventArgs e) [0x00022] in <2f8b04a5fbc8420bbb3895e91a62c74f>:0 
      at System.Windows.Forms.Form.OnLoadInternal (System.EventArgs e) [0x00029] in <2f8b04a5fbc8420bbb3895e91a62c74f>:0 
    System.ObjectDisposedException: Cannot access a disposed object.
    Object name: 'KeePass.Forms.PwGeneratorForm'.
      at System.Windows.Forms.Control.CreateHandle () [0x00016] in <2f8b04a5fbc8420bbb3895e91a62c74f>:0 
      at System.Windows.Forms.Form.CreateHandle () [0x00000] in <2f8b04a5fbc8420bbb3895e91a62c74f>:0 
      at System.Windows.Forms.Control.get_Handle () [0x0002b] in <2f8b04a5fbc8420bbb3895e91a62c74f>:0 
      at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:get_Handle ()
      at System.Windows.Forms.Application.RunLoop (System.Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x0009f] in <2f8b04a5fbc8420bbb3895e91a62c74f>:0 
      at System.Windows.Forms.Form.ShowDialog (System.Windows.Forms.IWin32Window owner) [0x001fe] in <2f8b04a5fbc8420bbb3895e91a62c74f>:0 
      at System.Windows.Forms.Form.ShowDialog () [0x00000] in <2f8b04a5fbc8420bbb3895e91a62c74f>:0 
      at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form:ShowDialog ()
      at KeePass.Forms.MainForm.OnToolsPwGenerator (System.Object sender, System.EventArgs e) [0x00025] in <2b079b205cb843b985fbd8fed98b063e>:0 
      at System.Windows.Forms.ToolStripItem.OnClick (System.EventArgs e) [0x0001c] in <2f8b04a5fbc8420bbb3895e91a62c74f>:0 
      at System.Windows.Forms.ToolStripMenuItem.OnClick (System.EventArgs e) [0x000a5] in <2f8b04a5fbc8420bbb3895e91a62c74f>:0 
      at System.Windows.Forms.ToolStripMenuItem.HandleClick (System.Int32 mouse_clicks, System.EventArgs e) [0x00000] in <2f8b04a5fbc8420bbb3895e91a62c74f>:0 
      at System.Windows.Forms.ToolStripItem.FireEvent (System.EventArgs e, System.Windows.Forms.ToolStripItemEventType met) [0x00061] in <2f8b04a5fbc8420bbb3895e91a62c74f>:0 
      at (wrapper remoting-invoke-with-check) System.Windows.Forms.ToolStripItem:FireEvent (System.EventArgs,System.Windows.Forms.ToolStripItemEventType)
      at System.Windows.Forms.ToolStrip.OnMouseUp (System.Windows.Forms.MouseEventArgs mea) [0x00057] in <2f8b04a5fbc8420bbb3895e91a62c74f>:0 
      at System.Windows.Forms.ToolStripDropDown.OnMouseUp (System.Windows.Forms.MouseEventArgs mea) [0x00000] in <2f8b04a5fbc8420bbb3895e91a62c74f>:0 
      at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m) [0x0007e] in <2f8b04a5fbc8420bbb3895e91a62c74f>:0 
      at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x0016f] in <2f8b04a5fbc8420bbb3895e91a62c74f>:0 
      at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <2f8b04a5fbc8420bbb3895e91a62c74f>:0 
      at System.Windows.Forms.ToolStrip.WndProc (System.Windows.Forms.Message& m) [0x00000] in <2f8b04a5fbc8420bbb3895e91a62c74f>:0 
      at System.Windows.Forms.ToolStripDropDown.WndProc (System.Windows.Forms.Message& m) [0x0001a] in <2f8b04a5fbc8420bbb3895e91a62c74f>:0 
      at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <2f8b04a5fbc8420bbb3895e91a62c74f>:0 
      at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x0000b] in <2f8b04a5fbc8420bbb3895e91a62c74f>:0 
      at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x0008e] in <2f8b04a5fbc8420bbb3895e91a62c74f>:0 
    
     
  • Dominik Reichl

    Dominik Reichl - 2018-11-06

    Mysterious. I installed Fedora 29 and tested it, with

    $ dnf deplist keepass | awk '/provider:/ {print $2}' | sort -u | egrep ".noarch|.x86_64"
    Last metadata expiration check: 0:07:27 ago on Tue 06 Nov 2018 07:07:10 PM CET.
    bash-4.4.23-5.fc29.x86_64
    hicolor-icon-theme-0.17-3.fc29.noarch
    mono-core-4.8.0-12.fc28.x86_64
    mono-winforms-4.8.0-12.fc28.x86_64
    xdotool-1:3.20150503.1-7.fc29.x86_64
    xsel-1.2.0-23.fc29.x86_64
    

    For me, the 'Generate Password' command works perfectly fine; KeePass doesn't crash.

    Your stack trace shows two exceptions, so I'm not sure what exactly the root cause is.

    Can you please post your ~/.config/KeePass/KeePass.config.xml file?

    Thanks and best regards,
    Dominik

     
  • Ricky Tigg

    Ricky Tigg - 2018-11-06

    See attaxhement KeePass.config.xml.

     
  • Dominik Reichl

    Dominik Reichl - 2018-11-06

    Great, thanks! I can reproduce the problem now and think that I found the issue; will implement a solution soon.

    Best regards,
    Dominik

     
  • Ricky Tigg

    Ricky Tigg - 2018-11-07

    How lucky I am; Keepass v. 2 is easily among the 512 best FOSS applications present in Fedora repository, thanks to mono. I am only one of its users. In hope that some Fedora users –even a few more–would contribute undirectly to serve the purpose of Keepass developpers, I reported an aspect, possibly trivial, at Red Hat Bugzilla.

     
  • Dominik Reichl

    Dominik Reichl - 2018-11-07
    • status: open --> closed
    • Priority: 4 --> 5
     
  • Dominik Reichl

    Dominik Reichl - 2018-11-07

    I've fixed this bug now (for KeePass 2.41). Thanks again for reporting it!

    Here's the latest development snapshot for testing:
    https://keepass.info/filepool/KeePass_181107.zip

    Best regards,
    Dominik

     
  • Ricky Tigg

    Ricky Tigg - 2018-11-07

    wine.x86_64 3.19-1.fc29 won't allow to test snapshot sample on Linux Fedora; message produced:

    $ wine KeePass.exe
    000b:fixme:winediag:start_process Wine Staging 3.19 is a testing version containing experimental patches.
    000b:fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org.
    0009:fixme:mscoree:parse_startup useLegacyV2RuntimeActivationPolicy=L"true" not implemented
    0009:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"enforceFIPSPolicy" in state 4
    0009:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"loadFromRemoteSources" in state 4
    0009:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"appSettings" in state 2
    0009:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"add" in state 6
    
     
  • Dominik Reichl

    Dominik Reichl - 2018-11-07

    Test it with Mono instead of Wine; "mono KeePass.exe".

    Best regards,
    Dominik

     
  • Paul

    Paul - 2018-11-08

    Keepass v. 2 is easily among the 5 best FOSS applications

    :)

     
  • Ricky Tigg

    Ricky Tigg - 2018-11-08

    I confirm that version 2.40 (Dev 181107) works as intended –attachment Keepassv._2.40_Dev_181107_password_generator_options.png – using suggested tool – on my system outdated: (4.8.0-12); last stable (5.16.0.179) –. So mono is a tool; that's a new knowledge to me:

    $ rpm -qfi `which mono`
    Name        : mono-core
    (...)
    Source RPM  : mono-4.8.0-12.fc28.src.rpm
    (...)
    Vendor      : Fedora Project
    URL         : http://www.mono-project.com
    Summary     : The Mono CIL runtime, suitable for running .NET code
    (...)
    

    I noticed that notched-wheel-illustrating icon under option Generate using custom algorithm is not operationnal while parameter (none) is selected; Probably not an issue.

    I used 'applications' which is a non-appropriate term since repository containns packages. 512 best packages out of 58 215, then might be equivalent to best among 64 applications.

    $ LANG=C dnf -v repolist --enabled fedora
    (...)
    Repo-id      : fedora
    Repo-name    : Fedora 29 - x86_64
    (...)
    Repo-updated : Sun Oct 28 12:00:54 2018
    Repo-pkgs    : 58215
    Repo-size    : 69 G
    
     
  • Dominik Reichl

    Dominik Reichl - 2018-11-08

    Great; thanks for testing it.

    The options button right of the custom algorithm selection box intentionally is disabled for the '(None)' algorithm, because this algorithm doesn't have any options.

    Best regards,
    Dominik

     

Log in to post a comment.

MongoDB Logo MongoDB