Hi,Marian,<div>     I fixed that bug in a  irregular way.But it works right now.I know that way is not correctly,but can make the client work without no palette id exception.</div><div>     Just in the client/cache.hpp:</div>
<div>        T* get(uint64_t id)<div>        {</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>retry:</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>Item* item = _hash[key(id)];</div>
<div><br></div><div>        while (item &amp;&amp; item-&gt;id != id) {</div><div>            item = item-&gt;next;</div><div>        }</div><div><br></div><div>        if (!item) {</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>id = key(id) + rand();</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>goto retry;</div><div>        }</div><div>        return Treat::get(item-&gt;data);</div><div>    }</div><div><br></div><div>It&#39;s just to avoid the exception.I really want know the right way to fix this bug.If you have any suggesstion,please tell me.</div>
<div><br></div><div>Thanks.</div><br><div class="gmail_quote">2011/8/15 Marian Krcmarik <span dir="ltr">&lt;<a href="mailto:mkrcmari@redhat.com">mkrcmari@redhat.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Song Wen,<br>
please could you possibly update the bug (<a href="https://bugs.freedesktop.org/show_bug.cgi?id=37124" target="_blank">https://bugs.freedesktop.org/show_bug.cgi?id=37124</a>) with your observation so that we can track it better, I guess It&#39;s same problem.<br>

Thanks.<br>
<div><div></div><div class="h5"><br>
----- Original Message -----<br>
&gt; From: &quot;Songwen Liao&quot; &lt;<a href="mailto:songwen.liao@gmail.com">songwen.liao@gmail.com</a>&gt;<br>
&gt; To: &quot;Christophe Fergeau&quot; &lt;<a href="mailto:cfergeau@redhat.com">cfergeau@redhat.com</a>&gt;<br>
&gt; Cc: <a href="mailto:spice-devel@lists.freedesktop.org">spice-devel@lists.freedesktop.org</a><br>
&gt; Sent: Monday, August 15, 2011 12:43:32 PM<br>
&gt; Subject: Re: [Spice-devel] palette id: not found.<br>
&gt; Hi,<br>
&gt; Glad to get your response.<br>
&gt;<br>
&gt; It&#39;s happens with the Linux client.It seems that some exceptions were<br>
&gt; thrown.The value of palette id is overflow.<br>
&gt; It happenes with some graphic options such as,ie,watch moive in the<br>
&gt; qemu virtual machine with xp os,and my host OS is ubuntu 10.04.<br>
&gt;<br>
&gt;<br>
&gt; I am looking at the code,and trying to find out the problem.<br>
&gt;<br>
&gt;<br>
&gt; Thanks.<br>
&gt;<br>
&gt; 2011/8/15 Christophe Fergeau &lt; <a href="mailto:cfergeau@redhat.com">cfergeau@redhat.com</a> &gt;<br>
&gt;<br>
&gt;<br>
&gt; Hey Songwen,<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Thu, Aug 11, 2011 at 10:02:49AM +0800, Songwen Liao wrote:<br>
&gt; &gt; I have found the spice client run in my envrioment always exit with<br>
&gt; &gt; the message &quot;RedChannel::run: palette id 912605, not found&quot;.<br>
&gt; &gt;<br>
&gt; &gt; The more specific messages with the client exit:<br>
&gt; &gt;<br>
&gt; &gt; 1312861320 INFO [21262:21262] DisplayChannel::create_sw_canvas:<br>
&gt; &gt; display 0: using sw<br>
&gt; &gt; 1312861940 WARN [21262:21267] RedChannel::run: palette id 912605,<br>
&gt; &gt; not<br>
&gt; &gt; found<br>
&gt; &gt; 1312861940 INFO [21262:21262] main: Spice client terminated<br>
&gt; &gt; (exitcode<br>
&gt; &gt; = 1)<br>
&gt; &gt;<br>
&gt; &gt; So,i am trying to fixed it now,anybody know how to fix it or any<br>
&gt; &gt; suggestion ?<br>
&gt;<br>
&gt; Unfortunately, I don&#39;t have any great suggestions about it apart from<br>
&gt; adding more debugging output and loooking at the code :-/ Is it<br>
&gt; happening<br>
&gt; with the windows or linux client? And do you have a way of reproducing<br>
&gt; it?<br>
&gt;<br>
&gt; Christophe<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt;<br>
&gt; Name: Ryan<br>
&gt; ------------------------------------------<br>
&gt; Msn: <a href="mailto:liaosongwen@live.cn">liaosongwen@live.cn</a><br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Spice-devel mailing list<br>
&gt; <a href="mailto:Spice-devel@lists.freedesktop.org">Spice-devel@lists.freedesktop.org</a><br>
&gt; <a href="http://lists.freedesktop.org/mailman/listinfo/spice-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/spice-devel</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>
<div>Name:   Ryan<br>------------------------------------------<br>Msn:    <a href="mailto:liaosongwen@live.cn" target="_blank">liaosongwen@live.cn</a></div>
<br>
</div>