[Spice-devel] palette id: not found.

Songwen Liao songwen.liao at gmail.com
Fri Aug 26 03:01:46 PDT 2011


Hi,Marian,
     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.
     Just in the client/cache.hpp:
        T* get(uint64_t id)
        {
retry:
Item* item = _hash[key(id)];

        while (item && item->id != id) {
            item = item->next;
        }

        if (!item) {
id = key(id) + rand();
goto retry;
        }
        return Treat::get(item->data);
    }

It'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.

Thanks.

2011/8/15 Marian Krcmarik <mkrcmari at redhat.com>

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



-- 
Name:   Ryan
------------------------------------------
Msn:    liaosongwen at live.cn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20110826/e28ae201/attachment.htm>


More information about the Spice-devel mailing list