[Bug 1865088] [NEW] setupcon cannot handle large fonts in FONT, "putfont: KDFONTOP: Invalid argument"

Ben Harris bjh21 at bjh21.me.uk
Thu Feb 27 21:11:22 UTC 2020


Public bug reported:

When I specify a large font file using the FONT variable in .console-
setup, setupcon fails to load the font, reporting "putfont: KDFONTOP:
Invalid argument".  If I specify the same font by setting CODESET,
FONTFACE, and FONTSIZE, the setupcon loads it fine.

For instance, if I have the following files:

bjh21 at sole:~$ tail .console-setup.test*
==> .console-setup.test1 <==
VERBOSE_OUTPUT="no"
ACTIVE_CONSOLES="/dev/tty[1-6]"
CHARMAP="UTF-8"
CODESET="Uni2"
FONTFACE="Terminus"
FONTSIZE="32x16"

==> .console-setup.test2 <==
VERBOSE_OUTPUT="no"
ACTIVE_CONSOLES="/dev/tty[1-6]"
CHARMAP="UTF-8"
FONT=Uni2-Terminus32x16.psf.gz

==> .console-setup.test3 <==
VERBOSE_OUTPUT="no"
ACTIVE_CONSOLES="/dev/tty[1-6]"
CHARMAP="UTF-8"
FONT=Uni2-Terminus16.psf.gz

Running "setupcon test1" correctly loads Uni2-Terminus32x16, but
"setupcon test2" does not, reporting "putfont: KDFONTOP: Invalid
argument".  "setupcon test3" works, demonstrating that not all uses of
FONT are broken.

I've attached the verbose output from "setupcon -v test2".

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: console-setup 1.178ubuntu2.9
ProcVersionSignature: Ubuntu 4.15.0-88.88-generic 4.15.18
Uname: Linux 4.15.0-88-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.11
Architecture: i386
CurrentDesktop: Unity:Unity7:ubuntu
Date: Thu Feb 27 20:40:08 2020
DistributionChannelDescriptor:
 # This is a distribution channel descriptor
 # For more information see http://wiki.ubuntu.com/DistributionChannelDescriptor
 canonical-oem-motts-20100121-3
EcryptfsInUse: Yes
InstallationDate: Installed on 2010-06-09 (3550 days ago)
InstallationMedia: Ubuntu GNU/Linux 9.10 "Karmic" - Build i386 LIVE Binary 20100121-21:52
PackageArchitecture: all
SourcePackage: console-setup
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: console-setup (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug bionic i386

** Attachment added: "Output from "setupcon -v test2""
   https://bugs.launchpad.net/bugs/1865088/+attachment/5331723/+files/setupcon.out

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

Title:
  setupcon cannot handle large fonts in FONT, "putfont: KDFONTOP:
  Invalid argument"

Status in console-setup package in Ubuntu:
  New

Bug description:
  When I specify a large font file using the FONT variable in .console-
  setup, setupcon fails to load the font, reporting "putfont: KDFONTOP:
  Invalid argument".  If I specify the same font by setting CODESET,
  FONTFACE, and FONTSIZE, the setupcon loads it fine.

  For instance, if I have the following files:

  bjh21 at sole:~$ tail .console-setup.test*
  ==> .console-setup.test1 <==
  VERBOSE_OUTPUT="no"
  ACTIVE_CONSOLES="/dev/tty[1-6]"
  CHARMAP="UTF-8"
  CODESET="Uni2"
  FONTFACE="Terminus"
  FONTSIZE="32x16"

  ==> .console-setup.test2 <==
  VERBOSE_OUTPUT="no"
  ACTIVE_CONSOLES="/dev/tty[1-6]"
  CHARMAP="UTF-8"
  FONT=Uni2-Terminus32x16.psf.gz

  ==> .console-setup.test3 <==
  VERBOSE_OUTPUT="no"
  ACTIVE_CONSOLES="/dev/tty[1-6]"
  CHARMAP="UTF-8"
  FONT=Uni2-Terminus16.psf.gz

  Running "setupcon test1" correctly loads Uni2-Terminus32x16, but
  "setupcon test2" does not, reporting "putfont: KDFONTOP: Invalid
  argument".  "setupcon test3" works, demonstrating that not all uses of
  FONT are broken.

  I've attached the verbose output from "setupcon -v test2".

  ProblemType: Bug
  DistroRelease: Ubuntu 18.04
  Package: console-setup 1.178ubuntu2.9
  ProcVersionSignature: Ubuntu 4.15.0-88.88-generic 4.15.18
  Uname: Linux 4.15.0-88-generic x86_64
  ApportVersion: 2.20.9-0ubuntu7.11
  Architecture: i386
  CurrentDesktop: Unity:Unity7:ubuntu
  Date: Thu Feb 27 20:40:08 2020
  DistributionChannelDescriptor:
   # This is a distribution channel descriptor
   # For more information see http://wiki.ubuntu.com/DistributionChannelDescriptor
   canonical-oem-motts-20100121-3
  EcryptfsInUse: Yes
  InstallationDate: Installed on 2010-06-09 (3550 days ago)
  InstallationMedia: Ubuntu GNU/Linux 9.10 "Karmic" - Build i386 LIVE Binary 20100121-21:52
  PackageArchitecture: all
  SourcePackage: console-setup
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/console-setup/+bug/1865088/+subscriptions



More information about the foundations-bugs mailing list