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 <[email protected]> > To: Naga Mohan Pothula <[email protected]>; > "[email protected]" <[email protected]> > 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][email protected]> > > > To: "[2][email protected]" > <[3][email protected]> > > > 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][email protected] > > > http://lists.freedesktop.org/mailman/listinfo/spice-devel > > > > _______________________________________________ > > Spice-devel mailing list > > [5][email protected] > > [6]http://lists.freedesktop.org/mailman/listinfo/spice-devel > > References > > Visible links > 1. mailto:[email protected] > 2. mailto:[email protected] > 3. mailto:[email protected] > 4. mailto:[email protected] > 5. mailto:[email protected] > 6. http://lists.freedesktop.org/mailman/listinfo/spice-devel _______________________________________________ Spice-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/spice-devel
