[Spice-devel] Resolution still remains when windowed mode is switched to Full-screen mode

Alon Levy alevy at redhat.com
Fri Mar 9 14:38:13 PST 2012


On Fri, Mar 09, 2012 at 06:47:04AM -0800, Naga Mohan Pothula wrote:
>    Hi Alon,
>    I'm getting the same error "ASSERT(_process_loop &&
>    !_process_loop->is_same_thread(pthread_self()));" even I
>    defined ResolutionChangeEvent class at red_client.cpp.
>    I called "_client.send_agent_monitors_config();" in "response virtual
>    function of  ResolutionChangeEvent class"
>    This error happens at "MonitorsQuery syncevent wait"
>    in send_agent_monitors_config();
>    Thanks\Naga.

Perhaps the assert is wrong, perhaps you aren't using the event
correctly, perhaps you need to push the event to a specific thread.

Can you provide a full stack trace? all threads please.

> 
>    --------------------------------------------------------------------------
> 
>    From: Alon Levy <alevy at redhat.com>
>    To: Naga Mohan Pothula <nagamohan.pothula at yahoo.com>;
>    "spice-devel at lists.freedesktop.org" <spice-devel at lists.freedesktop.org>
>    Sent: Thursday, March 8, 2012 12:30 AM
>    Subject: Re: [Spice-devel] Resolution still remains when windowed mode is
>    switched to Full-screen mode
>    On Wed, Mar 07, 2012 at 10:40:40PM +0200, Alon Levy wrote:
>    > On Wed, Mar 07, 2012 at 11:24:15AM -0800, Naga Mohan Pothula wrote:
>    > > Hi, 
>    > >
>    > > I'm trying to set resolution at guest by calling
>    "send_agent_monitors_config" from "Application::toggle_full_screen" in
>    Spicec module.
>    > > But facing Assertion "ASSERT(_process_loop &&
>    !_process_loop->is_same_thread(pthread_self()));" due to keep on waiting
>    in same thread.
>    > >
>    > > Is there any other way of setting guest resolution when we toggle
>    full-screen? like raising toggle-screen event to
>    call send_agent_monitors_config
>    > >
>    >
>    > You should be pushing an event to the queue, it will be processed from
>    > another thread. You probably need to create a new Event class for this,
>    > see for instance MouseModeEvent, it's usage is like so:
>    s/it's/its/ sigh..
> 
>    >
>    > AutoRef<MouseModeEvent> event(new MouseModeEvent(*this));
>    > push_event(*event);
>    >
>    > >
>    > > Thanks for your help in advance,
>    > > ~Naga.
>    > >
>    > > ________________________________
>    > >  From: Naga Mohan Pothula <[1]nagamohan.pothula at yahoo.com>
>    > > To: "[2]spice-devel at lists.freedesktop.org"
>    <[3]spice-devel at lists.freedesktop.org>
>    > > Sent: Monday, February 27, 2012 4:06 PM
>    > > Subject: [Spice-devel] Resolution still remains when windowed mode is
>    switched to Full-screen mode
>    > > 
>    > >
>    > > Hi,
>    > >
>    > > When Spice client (spicec) is launched in windowed mode, screen
>    resolution is 1024*600 and it remains even when it is switched to
>    full-screen mode.
>    > > Screen resolution didn't change to client monitor's resolution. Tested
>    with Upstream spice and trying to get 
>    > >
>    > > windowed mode : 1024*600 resolution
>    > > Full-screen mode: client monitor's resolution.
>    > >
>    > > Auto-config is not working at this scenario. It is working only when
>    spicec is launched with "--full-screen=auto-conf"
>    > > I think "send_agent_monitors_config" needs to be called when toggling
>    to full-screen. 
>    > >
>    > > Looking for approaches to do. Appreciated your help.
>    > >
>    > >
>    > > Thanks,
>    > > Naga.
>    > >
>    > >
>    > > _______________________________________________
>    > > Spice-devel mailing list
>    > > [4]Spice-devel at lists.freedesktop.org
>    > > http://lists.freedesktop.org/mailman/listinfo/spice-devel
>    >
>    > _______________________________________________
>    > Spice-devel mailing list
>    > [5]Spice-devel at lists.freedesktop.org
>    > [6]http://lists.freedesktop.org/mailman/listinfo/spice-devel
> 
> References
> 
>    Visible links
>    1. mailto:nagamohan.pothula at yahoo.com
>    2. mailto:spice-devel at lists.freedesktop.org
>    3. mailto:spice-devel at lists.freedesktop.org
>    4. mailto:Spice-devel at lists.freedesktop.org
>    5. mailto:Spice-devel at lists.freedesktop.org
>    6. http://lists.freedesktop.org/mailman/listinfo/spice-devel


More information about the Spice-devel mailing list