Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] xfce4-panel crashes w/ Asian chars in window title
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Alcyone
n00b
n00b


Joined: 14 Aug 2005
Posts: 10
Location: Helsinki, Finland

PostPosted: Thu Oct 20, 2016 6:48 pm    Post subject: [Solved] xfce4-panel crashes w/ Asian chars in window title Reply with quote

Just in case somebody is struggling with this. Maybe even installed FireTitle addon to Firefox and suppress window title change to current tab title...

Symptoms
xfce4-panel-4.12.0 crashes when any window title contains Asian (or non-ISO-8859-1) characters. When running xfce4-panel in terminal the following is printed consistently with each crash and crash occurs almost instantly while window titles have those characters:

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

When all window titles have ISO-8859-1 characters, then xfce4-panel works just fine.

You may or may not have x11-themes/gtk-engines-murrine installed (I didn't, but I had it installed way back).
Installing media-fonts/ttf-droid (or other fonts) doesn't help (ttf-droid might help with Chrome).

What Worked for Me
Installed a patched gtk-engines-murrine. Started xfce4-panel, worked without X restart.

gtk-engines-murrine-0.98.2-r2.ebuild
Code:
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI="5"
GNOME_ORG_MODULE="murrine"

inherit gnome.org multilib-minimal

DESCRIPTION="Murrine GTK+2 Cairo Engine"

HOMEPAGE="http://www.cimitan.com/murrine/"

LICENSE="LGPL-2.1 LGPL-3"
SLOT="0"
KEYWORDS="amd64 ~arm ppc ppc64 x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux"
IUSE="+themes animation-rtl"

RDEPEND=">=x11-libs/gtk+-2.24.23:2[${MULTILIB_USEDEP}]
   >=dev-libs/glib-2.34.3:2[${MULTILIB_USEDEP}]
   >=x11-libs/gdk-pixbuf-2.30.7:2[${MULTILIB_USEDEP}]
   >=x11-libs/cairo-1.12.14-r4[${MULTILIB_USEDEP}]
   >=x11-libs/pango-1.36.3[${MULTILIB_USEDEP}]
   >=x11-libs/pixman-0.32.4[${MULTILIB_USEDEP}]
   abi_x86_32? (
      !<=app-emulation/emul-linux-x86-gtklibs-20140508
      !app-emulation/emul-linux-x86-gtklibs[-abi_x86_32(-)]
   )"
PDEPEND="themes? ( x11-themes/murrine-themes )"
DEPEND="${RDEPEND}
   >=dev-util/intltool-0.37.1
   sys-devel/gettext
   >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]"

DOCS="AUTHORS ChangeLog NEWS TODO"

src_prepare() {
   epatch "${FILESDIR}"/${PN}_pango_cairo_update_layout.patch
   # Linking fix, in next release (commit 6e8eb244). Sed to avoid eautoreconf.
   sed -e 's:\($(GTK_LIBS) $(pixman_LIBS)\)$:\1 -lm:' \
      -i Makefile.* || die "sed failed"
}

multilib_src_configure() {
   ECONF_SOURCE=${S} \
   econf --enable-animation \
      --enable-rgba \
      $(use_enable animation-rtl animationrtl)
}

multilib_src_install_all() {
   einstalldocs
   prune_libtool_files --all
}


gtk-engines-murrine_pango_cairo_update_layout.patch
Code:
diff -Naur a/src/murrine_style.c b/src/murrine_style.c
--- a/src/murrine_style.c   2012-01-17 20:37:54.000000000 +0200
+++ b/src/murrine_style.c   2016-10-20 02:40:52.131490844 +0300
@@ -2171,6 +2171,7 @@
          cairo_t *cr;
          cr = murrine_begin_paint (window, area);
          cairo_translate (cr, x+xos, y+yos);
+         pango_cairo_update_layout (cr, layout);
          pango_cairo_layout_path (cr, layout);
          murrine_set_color_rgba (cr, &temp, 0.5);
          cairo_stroke (cr);


Patch Reference
https://bugs.freedesktop.org/show_bug.cgi?id=78787 -- Comment 9
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum