Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [swtbot-dev] swtbot-dev Digest, Vol 60, Issue 2

Quick reply is highly appreciated. As it's already 2 weeks past with the same issue :(

Best Regards,
Melwyn Jensen.


On Wed, Dec 18, 2013 at 4:40 PM, melwyn jensen <melwynjensen@xxxxxxxxx> wrote:
Hi Lorenzo/Alex/Mickael,

Thanks a lot for your replies. Was confused on the heading given as Vol 60, Issue 2 but once went through the mail properly I found out your replies.

@Lorenzo - I have changed Xvfb to Xvnc process now but still the build hangs.

@Alex - You are right Xvnc process gives us the hold to login to the session and check the issue and now I have tried the same but the result is the entire Xvnc display session is just frozen what I mean is I am not able to click or do anything with the Eclipse which is opened. It just looks like a snapshot when I try to open up vncviewer with the Display port which I have configured. Tried adding bot.sleep() for sometime before start of the swtbot testcase and that time I am able to access the eclipse opened with Xvnc but the moment the swtbot testcase starts it just goes on for sometime and then the entire eclipse just gets freezed.

@Mickael - Yes, I tried the same with local Linux machine and the testcases passed without any issue. 

Right now I tried few more things which as follows,

-> Ran the entire Jenkins build manually in the same machine and I can see the swtbot testcases executing properly without any issue but the same when I try to trigger from Jenkins frontend it just hangs. 

-> Tried changing the Jenkins to a new machine thinking that some Display issue with the older one but still with Jenkins frontend build trigger the build hangs on swtbot testcase.

Can someone please comment on the usage of metacity --sm-disable --replace &? which is given in http://wiki.eclipse.org/SWTBot/Automate_test_execution#On_Jenkins
I can see that the swtbot testcases fails with widgetnotfound exception if metacity (windows manager) is not started but I am curious that this the reason for the problem. Is there anyother Windows manager we can use for swtbot? If so can you please provide an example for the usage? 

Best Regards,
Melwyn Jensen.


On Fri, Dec 6, 2013 at 10:30 PM, <swtbot-dev-request@xxxxxxxxxxx> wrote:
Send swtbot-dev mailing list submissions to
        swtbot-dev@xxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
        https://dev.eclipse.org/mailman/listinfo/swtbot-dev
or, via email, send a message with subject or body 'help' to
        swtbot-dev-request@xxxxxxxxxxx

You can reach the person managing the list at
        swtbot-dev-owner@xxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of swtbot-dev digest..."


Today's Topics:

   1. SWTBot Tests hanging in Jenkins! (melwyn jensen)
   2. Re: SWTBot Tests hanging in Jenkins! (Mickael Istria)
   3. Re: SWTBot Tests hanging in Jenkins! (Silgidjian, Alexander)
   4. Re: SWTBot Tests hanging in Jenkins! (Lorenzo Bettini)


----------------------------------------------------------------------

Message: 1
Date: Fri, 6 Dec 2013 14:11:32 +0530
From: melwyn jensen <melwynjensen@xxxxxxxxx>
To: swtbot-dev@xxxxxxxxxxx
Subject: [swtbot-dev] SWTBot Tests hanging in Jenkins!
Message-ID:
        <CAJkw5PGDO3LgSxUnZ1vGhajXUH4+WGGsBdxdLdZBASD4bCV4ZQ@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset="iso-8859-1"

Hello All,

We are currently working on SWTBot for our plugin UI tests and we were able
to successfully integrate with Jenkins and the test cases were passing
without any issues but recently we started facing some issue where in
between the SWTBot test execution the whole build just gets hung forever.

Initially we were thinking that the problem is with the virtual display
which we started with Xvfb process but then simple SWTBot testcase with
just 2-5 lines works without any issues and anything more than 5 lines the
entire build gets hung during the execution of the SWTBot testcase.

Can someone please help me in this? What is the reason for this issue?
Tried using the SWTUtils.captureScreenshot("3.png") to get the screenshot
and it shows up the eclipse launch with the plugin opened but no process
happens once it gets hung.

Logs which use to show up is this,

Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message
with a timestamp of 0 for 0x800b64 (New Projec)*18:12:18* Window
manager warning: meta_window_activate called by a pager with a 0
timestamp; the pager needs to be fixed.*18:12:19* Window manager
warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a
timestamp of 0 for 0x801124 (Open Assoc)*18:12:19* Window manager
warning: meta_window_activate called by a pager with a 0 timestamp;
the pager needs to be fixed.*18:12:19* Window manager warning: Buggy
client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for
0x800058 (Java - Ecl)*18:12:19* Window manager warning:
meta_window_activate called by a pager with a 0 timestamp; the pager
needs to be fixed.*18:12:20* Window manager warning: Buggy client sent
a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x800058 (Java
- Ecl)*18:12:20* Window manager warning: meta_window_activate called
by a pager with a 0 timestamp; the pager needs to be fixed.*20:42:45*
Dec 5, 2013 8:42:45 PM java.util.prefs.FileSystemPreferences$7
run*20:42:45* WARNING: Prefs file removed in background
/home/unify_ci/.java/.userPrefs/_!':!bw"t!#4!bg"z!'4!.g"v!(:!cw!u!'0!~!"r/pm/prefs.xml*20:50:15*
Dec 5, 2013 8:50:15 PM java.util.prefs.FileSystemPreferences$7
run*20:50:15* WARNING: Prefs file removed in background
/home/unify_ci/.java/.userPrefs/_!':!bw"t!#4!bg"z!'4!.g"v!(:!cw!u!'0!~!"r/pm/prefs.xml*20:57:15*
Dec 5, 2013 8:57:15 PM java.util.prefs.FileSystemPreferences$7
run*20:57:15* WARNING: Prefs file removed in background
/home/unify_ci/.java/.userPrefs/_!':!bw"t!#4!bg"z!'4!.g"v!(:!cw!u!'0!~!"r/pm/prefs.xml*00:26:15*
Dec 6, 2013 12:26:15 AM java.util.prefs.FileSystemPreferences$7
run*00:26:15* WARNING: Prefs file removed in background
/home/unify_ci/.java/.userPrefs/_!':!bw"t!#4!bg"z!'4!.g"v!(:!cw!u!'0!~!"r/pm/prefs.xml*02:10:15*
Dec 6, 2013 2:10:15 AM java.util.prefs.FileSystemPreferences$7
run*02:10:15* WARNING: Prefs file removed in background
/home/unify_ci/.java/.userPrefs/_!':!bw"t!#4!bg"z!'4!.g"v!(:!cw!u!'0!~!"r/pm/prefs.xml*04:02:17*
Dec 6, 2013 4:02:17 AM java.util.prefs.FileSystemPreferences$7
run*04:02:17* WARNING: Prefs file removed in background
/home/unify_ci/.java/.userPrefs/_!':!bw"t!#4!bg"z!'4!.g"v!(:!cw!u!'0!~!"r/prefs.xml*04:02:17*
Dec 6, 2013 4:02:17 AM java.util.prefs.FileSystemPreferences$7
run*04:02:17* WARNING: Prefs file removed in background
/home/unify_ci/.java/.userPrefs/_!':!bw"t!#4!bg"z!'4!.g"v!(:!cw!u!'0!~!"r/pm/prefs.xml


When I try to kill the build it shows up the error as *XOpenDisplay()
failed * at times.


Any idea what is the reason for this issue? Can someone please help me
asap on this since we are got stuck up with the issue for 2 long days
:(


--
Best Regards,
Melwyn Jensen.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dev.eclipse.org/mailman/private/swtbot-dev/attachments/20131206/8d05c9bf/attachment.html>

------------------------------

Message: 2
Date: Fri, 06 Dec 2013 09:53:34 +0100
From: Mickael Istria <mistria@xxxxxxxxxx>
To: swtbot-dev@xxxxxxxxxxx
Subject: Re: [swtbot-dev] SWTBot Tests hanging in Jenkins!
Message-ID: <52A1908E.8060209@xxxxxxxxxx>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"

On 12/06/2013 09:41 AM, melwyn jensen wrote:
> Initially we were thinking that the problem is with the virtual
> display which we started with Xvfb process but then simple SWTBot
> testcase with just 2-5 lines works without any issues and anything
> more than 5 lines the entire build gets hung during the execution of
> the SWTBot testcase.
Does the same build command works and runs tests correctly locally?
I guess it's not a matter of number of lines, but rather of what it is
actually done. For example, all methods related to mouse seems to fail
against some X server implementations. It's indeed possible that Xvfb
has a bug, you could try Xvnc instead (which isn't free of bugs neither).

HTH
--
Mickael Istria
Eclipse developer at JBoss, by Red Hat <http://www.jboss.org/tools>
My blog <http://mickaelistria.wordpress.com> - My Tweets
<http://twitter.com/mickaelistria>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dev.eclipse.org/mailman/private/swtbot-dev/attachments/20131206/575a0259/attachment.html>

------------------------------

Message: 3
Date: Fri, 6 Dec 2013 08:59:09 +0000
From: "Silgidjian, Alexander" <alexander.silgidjian@xxxxxxx>
To: SWTBot developers list <swtbot-dev@xxxxxxxxxxx>
Subject: Re: [swtbot-dev] SWTBot Tests hanging in Jenkins!
Message-ID:
        <387B14ACFAA05C479156BED90644573E2AF665DF@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset="us-ascii"

Hi Melwyn,

Such behavior could happen if there is some kind of popup opened that prevents the job from exiting.
We are using Xvnc and in such cases we connect to the open session and check what is opened.
You may also check the recent changes to your plugin and its tests. An option is also to try to isolate the test causing the issue.
Also as an workaround you may put a job timeout, but it is preferable to find out and fix the cause.

Kind Regards,
Alex

From: swtbot-dev-bounces@xxxxxxxxxxx [mailto:swtbot-dev-bounces@xxxxxxxxxxx] On Behalf Of Mickael Istria
Sent: 06 December, 2013 10:54 AM
To: swtbot-dev@xxxxxxxxxxx
Subject: Re: [swtbot-dev] SWTBot Tests hanging in Jenkins!

On 12/06/2013 09:41 AM, melwyn jensen wrote:
Initially we were thinking that the problem is with the virtual display which we started with Xvfb process but then simple SWTBot testcase with just 2-5 lines works without any issues and anything more than 5 lines the entire build gets hung during the execution of the SWTBot testcase.
Does the same build command works and runs tests correctly locally?
I guess it's not a matter of number of lines, but rather of what it is actually done. For example, all methods related to mouse seems to fail against some X server implementations. It's indeed possible that Xvfb has a bug, you could try Xvnc instead (which isn't free of bugs neither).

HTH
--
Mickael Istria
Eclipse developer at JBoss, by Red Hat<http://www.jboss.org/tools>
My blog<http://mickaelistria.wordpress.com> - My Tweets<http://twitter.com/mickaelistria>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dev.eclipse.org/mailman/private/swtbot-dev/attachments/20131206/847394b3/attachment.html>

------------------------------

Message: 4
Date: Fri, 06 Dec 2013 15:22:19 +0100
From: Lorenzo Bettini <lorenzo.bettini@xxxxxxxxx>
To: swtbot-dev@xxxxxxxxxxx
Subject: Re: [swtbot-dev] SWTBot Tests hanging in Jenkins!
Message-ID: <52A1DD9B.4030007@xxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1

On 06/12/2013 09:53, Mickael Istria wrote:
> On 12/06/2013 09:41 AM, melwyn jensen wrote:
>> Initially we were thinking that the problem is with the virtual
>> display which we started with Xvfb process but then simple SWTBot
>> testcase with just 2-5 lines works without any issues and anything
>> more than 5 lines the entire build gets hung during the execution of
>> the SWTBot testcase.
> Does the same build command works and runs tests correctly locally?
> I guess it's not a matter of number of lines, but rather of what it is
> actually done. For example, all methods related to mouse seems to fail
> against some X server implementations. It's indeed possible that Xvfb
> has a bug, you could try Xvnc instead (which isn't free of bugs neither).

Just my two cents: I've never managed to have SWTBot tests running in
Jenkins with Xvfb (only Plug-in Junit tests): for running SWTBot I
always use Xvnc.

cheers
        Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it
Xtext Book:
http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book



------------------------------

_______________________________________________
swtbot-dev mailing list
swtbot-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/swtbot-dev


End of swtbot-dev Digest, Vol 60, Issue 2
*****************************************



--
Best Regards,
Melwyn Jensen.



--
Best Regards,
Melwyn Jensen.

Back to the top