The requested FontFamily could not be found

Bug #1955796 reported by Radu Cristescu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
keepass2 (Ubuntu)
New
Undecided
Unassigned

Bug Description

I upgraded to "impish" recently, and my KeePass2 installation stopped working. When launched in the Terminal, the following error is shown, indicating that a font is missing, but I can't tell which font it wants and how to install it. It should be a dependency, if possible.

System.ArgumentException: The requested FontFamily could not be found [GDI+ status: FontFamilyNotFound]
  at System.Drawing.GDIPlus.CheckStatus (System.Drawing.Status status) [0x001e5] in <728fbd68fe594062895e1f819791e76a>:0
  at System.Drawing.Font.GetHeight (System.Single dpi) [0x0000f] in <728fbd68fe594062895e1f819791e76a>:0
  at System.Drawing.Font.GetHeight () [0x00006] in <728fbd68fe594062895e1f819791e76a>:0
  at System.Drawing.Font.get_Height () [0x00000] in <728fbd68fe594062895e1f819791e76a>:0
  at (wrapper remoting-invoke-with-check) System.Drawing.Font.get_Height()
  at System.Windows.Forms.XplatUIX11.GetAutoScaleSize (System.Drawing.Font font) [0x00031] in <a3daa9b84fd241a497578a25f68bc3c7>:0
  at System.Windows.Forms.XplatUI.GetAutoScaleSize (System.Drawing.Font font) [0x00000] in <a3daa9b84fd241a497578a25f68bc3c7>:0
  at System.Windows.Forms.Form.GetAutoScaleSize (System.Drawing.Font font) [0x00000] in <a3daa9b84fd241a497578a25f68bc3c7>:0
  at System.Windows.Forms.Form..ctor () [0x0001e] in <a3daa9b84fd241a497578a25f68bc3c7>:0
  at KeePass.Forms.MainForm..ctor () [0x0014f] in <e033fb0f942148ed8abb366359bd18a0>:0
  at (wrapper remoting-invoke-with-check) KeePass.Forms.MainForm..ctor()
  at KeePass.Program.MainPriv (System.String[] args) [0x00640] in <e033fb0f942148ed8abb366359bd18a0>:0

ProblemType: Bug
DistroRelease: Ubuntu 21.10
Package: keepass2 2.47+dfsg-2
ProcVersionSignature: Ubuntu 5.13.0-22.22-generic 5.13.19
Uname: Linux 5.13.0-22-generic x86_64
ApportVersion: 2.20.11-0ubuntu71
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Mon Dec 27 09:26:13 2021
PackageArchitecture: all
SourcePackage: keepass2
UpgradeStatus: Upgraded to impish on 2021-12-19 (8 days ago)

Revision history for this message
Radu Cristescu (radu.c) wrote :
Revision history for this message
Radu Cristescu (radu.c) wrote :

I found out the cause digging through strace, and while the bug doesn't appear to be in the keepass2 package itself, it's a weird one:

My "/usr/share/fonts/msfonts" had mode 700, preventing mono from accessing the Microsoft fonts. I had to "chmod +rx /usr/share/fonts/msfonts", and then KeePass2 started.

"dpkg -S" says no package is claiming that directory, and grepping for "msfonts" in /var/lib/dpkg/info returns no reference to this directory. I've deleted that entire directory and it doesn't seem to be needed. The reason for the crash was just that during the scan access to it was denied.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.