Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] RE: [cdt-test-dev] CDT test from command line and cron

This usually means Eclipse couldn't open its window. This usually happens
when your DISPLAY variable isn't set in the cron job.

Doug Schaefer, QNX Software Systems
Eclipse CDT Project Lead, http://cdtdoug.blogspot.com
 

> -----Original Message-----
> From: cdt-test-dev-bounces@xxxxxxxxxxx [mailto:cdt-test-dev-
> bounces@xxxxxxxxxxx] On Behalf Of Alex Yin
> Sent: Wednesday, January 18, 2006 1:18 PM
> To: cdt-test-dev@xxxxxxxxxxx
> Subject: [cdt-test-dev] CDT test from command line and cron
> 
> Hi,
> 
> I have been trying to run CDT regression tests from the command line on a
> Linux machine using Eclipse 3.1 and CDT 3.0.0, and got some strange issue.
> I
> have a shell script, which calls "java -cp <eclipse_home>/startup.jar
> ...".
> If I run this script manually from a console/terminal under X-Windows, it
> works fine; but if I set up a cron job to start this script, I got
> following
> error message after "java -cp <eclipse_home>/startup.jar ...":
> 
> eclipse-test:
>      [echo] Running org.eclipse.cdt.ui.tests.AutomatedSuite
>      [java] !SESSION 2006-01-17 18:35:34.922
> -----------------------------------------------
>      [java] eclipse.buildId=I20050627-1435
>      [java] java.version=1.4.2_09
>      [java] java.vendor=Sun Microsystems Inc.
>      [java] BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
>      [java] Framework arguments:  -application
> org.eclipse.test.uitestapplication
> formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultForma
> tter,org.eclipse.cdt.ui.tests.AutomatedSuite.xml
> -testPluginName org.eclipse.cdt.ui.tests -className
> org.eclipse.cdt.ui.tests.AutomatedSuite
>      [java] Command-line arguments:  -application
> org.eclipse.test.uitestapplication -dev bin -data
> <eclipse_home>/cdt_ui_folder
> formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultForma
> tter,org.eclipse.cdt.ui.tests.AutomatedSuite.xml
> -testPluginName org.eclipse.cdt.ui.tests -className
> org.eclipse.cdt.ui.tests.AutomatedSuite -os linux -ws gtk -arch x86
> -consolelog
> 
>      [java] !ENTRY org.eclipse.osgi 2006-01-17 18:35:37.802
>      [java] !MESSAGE Application error
>      [java] !STACK 1
>      [java] org.eclipse.swt.SWTError: No more handles [gtk_init_check()
> failed]
>      [java]     at org.eclipse.swt.SWT.error(SWT.java:2968)
>      [java]     at
> org.eclipse.swt.widgets.Display.createDisplay(Display.java:757)
> ...
> ...
> 
> I searched this error message, and found following bug report, which is
> very
> similar to what I have seen:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=106396
> 
> The suggestion there is to set "JAVA_HIGH_ZIPFDS" to 500 or higher. I
> tried
> 500, 1000, and 1500, but none worked. I have also compared all the env
> variables between cron environment and xterm environment, and made sure
> they
> are the same, but still get the same error. One thing I haven't tried is
> to
> use a different Java virtual machine, will that help? Is there any
> solution
> or workaround for this problem?
> 
> Thanks,
> --alex
> 
> _________________________________________________________________
> Is your PC infected? Get a FREE online computer virus scan from McAfee(r)
> Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
> 
> _______________________________________________
> cdt-test-dev mailing list
> cdt-test-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-test-dev


Back to the top