** Description changed:

- Reproduce: In Xubuntu (xfce), go to Settings Manager -> Appearance ->
- Fonts -> Default Font, select an installed fixed-width, bitmapped .pcf
- font (e.g. ProFont).  Desktop crashes; the new font does appear in the
- apport dialogs, but attempting to log back into the session, xfdesktop
- crashes with an assert in cairo, with gtk up the stacktrace:
+ [Impact]
  
- cairo-scaled-font.c:459: _cairo_scaled_glyph_page_destroy: Assertion
- `!scaled_font->cache_frozen' failed.
+ Due to a problem in the Murrine engine, using bitmap fonts and Murrine-based
+ themes at the same time might lead to crash of various GTK+2 apps. This issue
+ was around for about 3-4 years, or maybe even more.
  
- To undo the change and be able to log in, I had to remove the GTK Font
- property in xfce4's xsettings.xml config file.  It would be a fair
- limitation if certain bitmap fonts failed over gracefully or were
- disallowed for selection, however, allowing an the interface to select
- the font without error, and then crashing and hanging the session on
- every login, leaving the config in a bad state should be fixed.
+ It affects a lot of Xfce and MATE users who choose to use bitmap fonts, and
+ it's present in two current LTS releases, so it would be really nice to apply
+ the fix there.
  
- uname:
- 3.11.0-18-generic #32-Ubuntu SMP Tue Feb 18 21:11:14 UTC 2014 x86_64 x86_64 
x86_64 GNU/Linux
+ The patch which is posted below fixes the crashes for good and allows people
+ to use bitmap fonts and Murrine-based themes together again.
  
- lsb_release:
- Distributor ID:       Ubuntu
- Description:  Ubuntu 13.10
- Release:      13.10
- Codename:     saucy
+ [Test Case]
+ 
+ Steps to reproduce:
+ 
+ 1. Have Xubuntu (or Xfce in any other Ubuntu edition) installed. It can be
+    any release from 14.04 to 16.10.
+ 2. Install gtk2-engines-murrine, murrine-themes and shimmer-themes packages,
+    if they're not installed.
+ 3. Install some package with bitmap fonts, for example, xfonts-terminus.
+ 4. Run xfce4-appearance-settings and select some Murrine-based theme, for
+    example, Greybird or Murrine-Light.
+ 5. Switch to the Fonts tab and select some bitmap font, for example, Terminus.
+ 6. Exit xfce4-appearance-settings.
+ 
+ Now some GTK+2 apps will crash right on start with the following error
+ message:
+ 
+ ../../../../src/cairo-scaled-font.c:459:
+ _cairo_scaled_glyph_page_destroy: Assertion `!scaled_font->cache_frozen'
+ failed.
+ 
+ It's reproducible with mousepad, gimp, geany. With some Murrine-based themes,
+ like Greybird, it's also reproducible with xfce4-panel and Xfce configuration
+ apps: xfce4-appearance-settings, xfce4-mouse-settings, xfce4-session-settings,
+ etc.
+ 
+ It also affects some MATE apps, like mate-panel or mate-control-center.
+ 
+ [Regression Potential]
+ 
+ After several months of testing the fix in Debian Jessie and a few Ubuntu
+ releases, I hadn't found any regressions. Since the patch is very small and
+ it fixes all the crashes for good, I don't think there's much space for the
+ regressions.
+ 
+ [Other Info]
+ 
+ Appearance settings being affected is a nasty thing. However, you can reset
+ the font to default via the console tool:
+ $ xfconf-query -c xsettings -p /Gtk/FontName -r
+ 
+ The patch was made following the proposed solution at:
+ https://bugs.freedesktop.org/show_bug.cgi?id=78787#c9
  
  Similar report seen in archlinux/xfce4:
  https://bbs.archlinux.org/viewtopic.php?id=169433
  
  ProblemType: Bug
  DistroRelease: Ubuntu 13.10
  Package: libgtk2.0-0 2.24.20-1ubuntu1
  ProcVersionSignature: Ubuntu 3.11.0-18.32-generic 3.11.10.4
  Uname: Linux 3.11.0-18-generic x86_64
  ApportVersion: 2.12.5-0ubuntu2.2
  Architecture: amd64
  Date: Wed Mar 19 10:41:54 2014
  InstallationDate: Installed on 2013-11-01 (138 days ago)
  InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 
(20131016.1)
  MarkForUpload: True
  SourcePackage: gtk+2.0
  UpgradeStatus: No upgrade log present (probably fresh install)

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gtk2-engines-murrine in Ubuntu.
https://bugs.launchpad.net/bugs/1294699

Title:
  Xubuntu desktop crashes in call to cairo after setting fixed-width
  bitmap (pcf) GTK font

Status in gtk2-engines-murrine package in Ubuntu:
  Fix Released
Status in gtk2-engines-murrine source package in Xenial:
  Triaged
Status in gtk2-engines-murrine package in Debian:
  Fix Released

Bug description:
  [Impact]

  Due to a problem in the Murrine engine, using bitmap fonts and Murrine-based
  themes at the same time might lead to crash of various GTK+2 apps. This issue
  was around for about 3-4 years, or maybe even more.

  It affects a lot of Xfce and MATE users who choose to use bitmap fonts, and
  it's present in two current LTS releases, so it would be really nice to apply
  the fix there.

  The patch which is posted below fixes the crashes for good and allows people
  to use bitmap fonts and Murrine-based themes together again.

  [Test Case]

  Steps to reproduce:

  1. Have Xubuntu (or Xfce in any other Ubuntu edition) installed. It can be
     any release from 14.04 to 16.10.
  2. Install gtk2-engines-murrine, murrine-themes and shimmer-themes packages,
     if they're not installed.
  3. Install some package with bitmap fonts, for example, xfonts-terminus.
  4. Run xfce4-appearance-settings and select some Murrine-based theme, for
     example, Greybird or Murrine-Light.
  5. Switch to the Fonts tab and select some bitmap font, for example, Terminus.
  6. Exit xfce4-appearance-settings.

  Now some GTK+2 apps will crash right on start with the following error
  message:

  ../../../../src/cairo-scaled-font.c:459:
  _cairo_scaled_glyph_page_destroy: Assertion
  `!scaled_font->cache_frozen' failed.

  It's reproducible with mousepad, gimp, geany. With some Murrine-based themes,
  like Greybird, it's also reproducible with xfce4-panel and Xfce configuration
  apps: xfce4-appearance-settings, xfce4-mouse-settings, xfce4-session-settings,
  etc.

  It also affects some MATE apps, like mate-panel or mate-control-
  center.

  [Regression Potential]

  After several months of testing the fix in Debian Jessie and a few Ubuntu
  releases, I hadn't found any regressions. Since the patch is very small and
  it fixes all the crashes for good, I don't think there's much space for the
  regressions.

  [Other Info]

  Appearance settings being affected is a nasty thing. However, you can reset
  the font to default via the console tool:
  $ xfconf-query -c xsettings -p /Gtk/FontName -r

  The patch was made following the proposed solution at:
  https://bugs.freedesktop.org/show_bug.cgi?id=78787#c9

  Similar report seen in archlinux/xfce4:
  https://bbs.archlinux.org/viewtopic.php?id=169433

  ProblemType: Bug
  DistroRelease: Ubuntu 13.10
  Package: libgtk2.0-0 2.24.20-1ubuntu1
  ProcVersionSignature: Ubuntu 3.11.0-18.32-generic 3.11.10.4
  Uname: Linux 3.11.0-18-generic x86_64
  ApportVersion: 2.12.5-0ubuntu2.2
  Architecture: amd64
  Date: Wed Mar 19 10:41:54 2014
  InstallationDate: Installed on 2013-11-01 (138 days ago)
  InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 
(20131016.1)
  MarkForUpload: True
  SourcePackage: gtk+2.0
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gtk2-engines-murrine/+bug/1294699/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to