I did a little digging in the source code. The actual crash is because
the height or width of a bitmap is <= 0. If we follow this up the stack
trace, it is coming from trying to create a cursor for a MesssageBox.

But, if we go all the way up the stack trace, we will see that KeePass
failed to start and that it was trying to show an error message.
Relevant code from Program.cs is:

try
{
     if(m_cmdLineArgs[AppDefs.CommandLineOptions.DebugThrowException] != null)
       throw new Exception(AppDefs.CommandLineOptions.DebugThrowException);

     m_formMain = new MainForm();
    Application.Run(m_formMain);
}
catch(Exception exPrg) { MessageService.ShowFatal(exPrg); }

Since the crash is occurring in the MessageBox code, we can't see what
the actual error is.

There is an undocumented command line option that should be able to
simulate this crash. If you run ```keepass2 --debug-throwexcp```, do you
get the same crash and stack trace?

I am not able to reproduce, the crash in a fresh install in a virtualbox
vm. It may be a system related issue. Have you changed anything from the
default Ubuntu install? In particular, anything that may have to do with
a cursor?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1247942

Title:
  keepass2 crashes on start

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/keepass2/+bug/1247942/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to