<div dir="ltr">Hi Ara,<br><br>If at-poke recognizes, then I guess its bug in LDTP ! Will investigate it.<br><br>Thanks<br>Nagappan<br><br><div class="gmail_quote">On Fri, Aug 22, 2008 at 12:34 AM, Ara Pulido <span dir="ltr"><<a href="mailto:ara@ubuntu.com">ara@ubuntu.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
More info on this:<br>
<br>
when at-poke does not crash, as I said, gksu (in the second and<br>
following times) is kept in the list of applications recognized by<br>
at-poke, though is not longer running.<br>
<br>
If I try to poke update-manager, it gets recognized corretly. If I try<br>
to poke gksu, at-poke crashes, as the application is not longer there.<br>
<br>
Cheers,<br>
<font color="#888888">Ara.<br>
</font><div><div></div><div class="Wj3C7c"><br>
<br>
On Fri, 2008-08-22 at 09:07 +0200, Ara Pulido wrote:<br>
> Hello Nagappan (<a href="http://et.al" target="_blank">et.al</a>),<br>
><br>
> This is the behaviour I watch when doing the same with at-poke:<br>
><br>
> The first time update-manager is run:<br>
><br>
> - update-manager gets recognized by at-poke<br>
> - when checking for new updates, gksu starts (it gets recognized by<br>
> at-poke), asking for the sudo password.<br>
> - when the password is checked and confirmed, gksu closes and it gets<br>
> deleted from the application list in at-poke.<br>
> - update-manager still gets recognized.<br>
><br>
><br>
> The following times update-manager is run:<br>
><br>
> - update-manager gets recognized by at-poke<br>
> - when checking for new updates, gksu starts (it gets recognized by<br>
> at-poke), but it does not ask for the sudo password, as it is already<br>
> stored.<br>
> - This time gksu is kept in the list of recognized by at-poke (although<br>
> the process is not there anymore).<br>
> - This makes sometimes at-poke crash:<br>
><br>
> (at-poke:6268): GLib-GObject-CRITICAL **: g_signal_connect_data:<br>
> assertion `G_TYPE_CHECK_INSTANCE (instance)' failed<br>
> Warning: AT-SPI error: pre method check: add: Unknown CORBA exception<br>
> id: 'IDL:<a href="http://omg.org/CORBA/COMM_FAILURE:1.0" target="_blank">omg.org/CORBA/COMM_FAILURE:1.0</a>'<br>
><br>
> ** (at-poke:6268): CRITICAL **: get_accessible_at_index: assertion `ret'<br>
> failed<br>
> Warning: AT-SPI error: pre method check: add: Unknown CORBA exception<br>
> id: 'IDL:<a href="http://omg.org/CORBA/COMM_FAILURE:1.0" target="_blank">omg.org/CORBA/COMM_FAILURE:1.0</a>'<br>
><br>
><br>
> Any ideas?<br>
> Thanks,<br>
> Ara.<br>
> On Thu, 2008-08-21 at 08:38 -0700, Nagappan A wrote:<br>
> > Hi Ara,<br>
> ><br>
> > Could you please try the same procedure with at-poke ?<br>
> ><br>
> > Thanks<br>
> > Nagappan<br>
> ><br>
> > On Thu, Aug 21, 2008 at 2:50 AM, Ara Pulido <<a href="mailto:ara@ubuntu.com">ara@ubuntu.com</a>> wrote:<br>
> > Hello all,<br>
> ><br>
> > Let me explain the situation I have been running lately:<br>
> ><br>
> > I am writing some tests for the Update Manager in Ubuntu [1].<br>
> > This<br>
> > application searches for updates in the Ubuntu repositories<br>
> > and install<br>
> > the selected ones.<br>
> ><br>
> > The first time the application runs, if you check for new<br>
> > updates, it<br>
> > will ask for the SUDO password. The test runs correctly.<br>
> ><br>
> > The second time, as the SUDO password is valid for sometime,<br>
> > it does not<br>
> > ask for the password. In the test script this is solved with<br>
> > something<br>
> > like:<br>
> ><br>
> > if guiexist(SUDO_WINDOW):<br>
> > set_password()<br>
> > else<br>
> > do nothing<br>
> ><br>
> > After that the test tries to close the update-manager window.<br>
> > If the<br>
> > application asked for the password, it closes correctly, but<br>
> > if it<br>
> > bypasses the password (because it was already set), it does<br>
> > not find the<br>
> > update-manager anymore:<br>
> ><br>
> > Property: label - Value: Update Manager<br>
> > window_prop: Update Manager<br>
> > Key: btnClose btnClose<br>
> > Warning: AT-SPI error: pre method check: add: Unknown CORBA<br>
> > exception<br>
> > id: 'IDL:<a href="http://omg.org/CORBA/COMM_FAILURE:1.0" target="_blank">omg.org/CORBA/COMM_FAILURE:1.0</a>'<br>
> > Application: update-manager not running<br>
> > Unable to get handle<br>
> > resp_len = 117<br>
> > Sending..<br>
> > 156<br>
> > Response packet: <?xml version="1.0"<br>
> ><br>
> encoding="utf-8"?><RESPONSE><ID>MainThread43</ID><STATUS><CODE>-984</CODE><MESSAGE>Application not running</MESSAGE></STATUS></RESPONSE><br>
> > Msg:<br>
> > Bytes sent: 160<br>
> > Thu Aug 21 11:35:07 2008: ldtp-utils.c:49:ldtp_read_data() :<br>
> > Connection<br>
> > refused<br>
> > handle_client: error:<br>
> > unregister_window_creation_event - client-handler.c - 74<br>
> > client-handler.c - 77 - Argument NULL<br>
> > Removing sockfd: 17 - 2<br>
> > Removed sockfd: 17 - 1<br>
> > Removed 2 entries from client context hash table<br>
> > Clients: 1<br>
> ><br>
> > I tried running reinitldt(), but it fails.<br>
> ><br>
> > Does anyone know why does this happen and how it could be<br>
> > solved?<br>
> ><br>
> > Thanks,<br>
> > Ara.<br>
> ><br>
> > _______________________________________________<br>
> > LDTP-dev mailing list<br>
> > <a href="mailto:LDTP-dev@lists.freedesktop.org">LDTP-dev@lists.freedesktop.org</a><br>
> > <a href="http://lists.freedesktop.org/mailman/listinfo/ldtp-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/ldtp-dev</a><br>
> ><br>
> ><br>
> ><br>
> > --<br>
> > Linux Desktop (GUI Application) Testing Project -<br>
> > <a href="http://ldtp.freedesktop.org" target="_blank">http://ldtp.freedesktop.org</a><br>
> > <a href="http://nagappanal.blogspot.com" target="_blank">http://nagappanal.blogspot.com</a><br>
> ><br>
><br>
> ><br>
><br>
> _______________________________________________<br>
> LDTP-dev mailing list<br>
> <a href="mailto:LDTP-dev@lists.freedesktop.org">LDTP-dev@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/ldtp-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/ldtp-dev</a><br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Linux Desktop (GUI Application) Testing Project - <a href="http://ldtp.freedesktop.org">http://ldtp.freedesktop.org</a><br><a href="http://nagappanal.blogspot.com">http://nagappanal.blogspot.com</a><br>
</div>