Package: xpra
Version: 0.17.6+dfsg-1+b1
Followup-For: Bug #821291

By chance I think I hit this bug too, and also found the factor that
makes it happen. I created small scripts to test the idea. The culprit
is something in the icon themes, so maybe the bug should be assigned
to them (or maybe not and xpra should ignore the error and use a
fallback theme).

First create multiple rc files, one per icon theme avaliable based in
the current one (new setting at end, so it overrides previous value):

---8<---
mkdir /tmp/rc-xpra
for i in in /usr/share/icons/*/ ; do
  THEME=$( basename $i )
  cp ~/.gtkrc-2.0 /tmp/rc-xpra/gtkrc2-$THEME
  echo gtk-icon-theme-name = \"$THEME\" >> "/tmp/rc-xpra/gtkrc2-$THEME"
done
--->8---

Start xpra as normal in one console and note down the display, for
example 7.

Then identify the problematic themes for attach command in another
console, by hitting C-c if it works or letting the process crash
(SIGSEGV 11, 128 + 11 = 139):

---8<---
XPRADISP=7
mkdir /tmp/rc-fail
cd /tmp/
for i in /tmp/rc-xpra/* ; do
  echo === TESTING $i ===
  GTK2_RC_FILES=$i xpra attach :$XPRADISP
  if [ 139 -eq $? ] ; then
    mv $i /tmp/rc-fail/
  fi
  echo === FINISHED $i ===
done
--->8---

"default" theme works but complains with:

---8<---
/usr/lib/python2.7/dist-packages/xpra/client/gtk_base/gtk_client_base.py:360: 
GtkWarning: Theme file for default has no name

  log("contexts: %s", it.list_contexts())
/usr/lib/python2.7/dist-packages/xpra/client/gtk_base/gtk_client_base.py:360: 
GtkWarning: Theme file for default has no directories

  log("contexts: %s", it.list_contexts())
--->8---

Meaning it can handle settings that have problems, at least sometimes.

Of the other small collection I have, icon theme Fog has empty
directory, yet works.

ContrastHigh and HighContrast fail with the g_str_hash +
gtk_icon_theme_list_contexts backtrace.

So if this is the case, workaround until proper fix could be creating
a new rc file with a working icon theme, and always launching with:

---8<---
GTK2_RC_FILES=~/.xpra/gtkrc-2.0 xpra attach [params]
--->8---

Cheers,
GSR
 

Reply via email to