<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>456</bug_id>
          
          <creation_ts>2010-10-13 19:34:59 +0000</creation_ts>
          <short_desc>matchbox desktop icons crash</short_desc>
          <delta_ts>2011-08-22 23:05:00 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>1.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Edwin Zhai">edwin.zhai</reporter>
          <assigned_to name="Edwin Zhai">edwin.zhai</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>julie.n.fleischer</cc>
    
    <cc>kevin.tian</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
    
    <cc>shane.wang</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>10456</commentid>
    <comment_count>0</comment_count>
    <who name="Edwin Zhai">edwin.zhai</who>
    <bug_when>2010-10-13 19:34:59 +0000</bug_when>
    <thetext>On RC1 image, after several times of booting, qemux86/-64 image probably has icons on the matchbox desktop crashed. That is, an icon of big &quot;X&quot; take place of original application&apos;s icon like contacts,dates..</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10500</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2010-10-14 11:15:10 +0000</bug_when>
    <thetext>How are you shutting down the qemu images? Could this be corruption of the images?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10565</commentid>
    <comment_count>2</comment_count>
    <who name="Edwin Zhai">edwin.zhai</who>
    <bug_when>2010-10-14 17:52:42 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; How are you shutting down the qemu images? Could this be corruption of the
&gt; images?

I shutdown it by clicking the shutdown icon, and heard somebody has same experience. Will look into it if I can reproduce.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12209</commentid>
    <comment_count>3</comment_count>
    <who name="Edwin Zhai">edwin.zhai</who>
    <bug_when>2011-03-02 04:28:47 +0000</bug_when>
    <thetext>This bug is not hard to reproduce, but hard to debug.

The matchbox-desktop in the final sato image(strip &amp; prelink) can reproduce it, but all other versions can _not_, including matchbox-desktop in .../image(non-strip &amp; non-prelink), and the one in .../packcages-split(strip &amp; non-prelink).

Even with the bogus binary, change the running sequence for debug make this bug disappear, including:
*use gdb to attach matchbox-desktop
*use strace to log the system call
*change the start order of applications in X script.
*add some simple printf in matchbox-desktop

The error log looks like:
** (matchbox-desktop:418): WARNING **: Error loading icon: Icon &apos;application-x-executable&apos; not present in theme

The phenomenon is:
All the icons on matchbox-desktop are missing, except icons of dates, tasks, keyboard and gThumb. Dates, tasks and gThumb changed to the icon of &quot;hicolor&quot;, while keyboard and gThumb come from the /usr/share/pixmaps.

So the culprit should be:
For some tricky race condition issue, matchbox-desktop failed to locate the default gtk icon theme:&quot;Sato&quot;, and use the fall-back theme &quot;hicolor&quot;. In theory, this should not happen as all the icon, index, cache and config files never changed, but...

Possible fix:
We can explictly make the gtk icon theme as &quot;Sato&quot; in the file of &quot;/home/root/.gtkrc-2.0&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12250</commentid>
    <comment_count>4</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-03-03 17:31:00 +0000</bug_when>
    <thetext>Work around provided for 1.0, this will need to be fixed more correctly for 1.1

http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=72afe301d14873296e97738028f52afd4a73a847</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12382</commentid>
    <comment_count>5</comment_count>
    <who name="Edwin Zhai">edwin.zhai</who>
    <bug_when>2011-03-08 18:27:50 +0000</bug_when>
    <thetext>
some debug info:

==== matchbox-desktop ====
matchbox-desktop loads icons when idle based on glib mechanism, need further checking...
gtk_icon_theme_load_icon failed to lead the &quot;Error loading icon: xxx&quot; issue.


==== gtk+ ====
* icon loading *
gtk_icon_theme_load_icon        ==&gt;&gt;
gtk_icon_theme_lookup_icon      ==&gt;&gt;
choose_icon: for each theme in priv-&gt;themes, look for the required icon


* icon themes loading *
....                    ==&gt;&gt;
ensure_valid_themes     ==&gt;&gt;
load_themes             ==&gt;&gt;
_gtk_icon_cache_new_for_path


* themes changing *
GtkIconTheme::priv-&gt;current_theme
gobject: &quot;gtk-icon-theme-name&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15650</commentid>
    <comment_count>6</comment_count>
    <who name="Edwin Zhai">edwin.zhai</who>
    <bug_when>2011-08-22 23:05:00 +0000</bug_when>
    <thetext>I have tried it on latest master, and couldn&apos;t reproduce it. I guess glib or gtk upgrade fix this tricky race condition.

I mark it as fixed, and revisit it if recur in future.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>