Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » No more handles [gtk_init_check() failed]
No more handles [gtk_init_check() failed] [message #998978] Fri, 11 January 2013 04:32 Go to next message
Akshay Jadye is currently offline Akshay JadyeFriend
Messages: 2
Registered: January 2013
Junior Member
Hi,

We have created an eclipse application which is intended to run in the headless mode, , i.e. from the command-line without the usage of the Eclipse GUI. We are using Eclipse Indigo (3.7.2)

On Windows it is working fine, but on Linux, it fails with the following exception:

Caused by: org.osgi.framework.BundleException: Exception in org.eclipse.ui.internal.ide.IDEWorkbenchPlugin.start() of bundle org.eclipse.ui.ide.
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:268)
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
... 48 more
Caused by: org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
at org.eclipse.swt.SWT.error(SWT.java:4308)
at org.eclipse.swt.widgets.Display.createDisplay(Display.java:909)
at org.eclipse.swt.widgets.Display.create(Display.java:897)
at org.eclipse.swt.graphics.Device.<init>(Device.java:157)
at org.eclipse.swt.widgets.Display.<init>(Display.java:500)
at org.eclipse.swt.widgets.Display.<init>(Display.java:491)
at org.eclipse.swt.widgets.Display.getDefault(Display.java:1681)
at org.eclipse.ui.internal.ide.IDEWorkbenchPlugin.createProblemsViews(IDEWorkbenchPlugin.java:394)
at org.eclipse.ui.internal.ide.IDEWorkbenchPlugin.start(IDEWorkbenchPlugin.java:351)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
... 54 more

The same application when run on Eclipse Helios (3.6.2) works fine on both Windows and Linux.
Is there any work around or a way in which we can run the application in headless mode.
Re: No more handles [gtk_init_check() failed] [message #1000285 is a reply to message #998978] Mon, 14 January 2013 12:40 Go to previous messageGo to next message
Thorsten Meinl is currently offline Thorsten MeinlFriend
Messages: 85
Registered: July 2009
Member
Have you tried setting java.awt.headless=true?

Am 11.01.2013 15:09, schrieb Akshay Jadye:
> Hi,
>
> We have created an eclipse application which is intended to run in the
> headless mode, , i.e. from the command-line without the usage of the
> Eclipse GUI. We are using Eclipse Indigo (3.7.2)
>
> On Windows it is working fine, but on Linux, it fails with the following
> exception:
>
> Caused by: org.osgi.framework.BundleException: Exception in
> org.eclipse.ui.internal.ide.IDEWorkbenchPlugin.start() of bundle
> org.eclipse.ui.ide.
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
>
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299)
>
> at
> org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:268)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
>
> ... 48 more
> Caused by: org.eclipse.swt.SWTError: No more handles [gtk_init_check()
> failed]
> at org.eclipse.swt.SWT.error(SWT.java:4308)
> at org.eclipse.swt.widgets.Display.createDisplay(Display.java:909)
> at org.eclipse.swt.widgets.Display.create(Display.java:897)
> at org.eclipse.swt.graphics.Device.<init>(Device.java:157)
> at org.eclipse.swt.widgets.Display.<init>(Display.java:500)
> at org.eclipse.swt.widgets.Display.<init>(Display.java:491)
> at org.eclipse.swt.widgets.Display.getDefault(Display.java:1681)
> at
> org.eclipse.ui.internal.ide.IDEWorkbenchPlugin.createProblemsViews(IDEWorkbenchPlugin.java:394)
>
> at
> org.eclipse.ui.internal.ide.IDEWorkbenchPlugin.start(IDEWorkbenchPlugin.java:351)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
>
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
>
> ... 54 more
>
> The same application when run on Eclipse Helios (3.6.2) works fine on
> both Windows and Linux.
> Is there any work around or a way in which we can run the application in
> headless mode.
>
Re: No more handles [gtk_init_check() failed] [message #1000645 is a reply to message #1000285] Tue, 15 January 2013 06:58 Go to previous messageGo to next message
Akshay Jadye is currently offline Akshay JadyeFriend
Messages: 2
Registered: January 2013
Junior Member
yes, i have tried with java.awt.headless=true. But still the issue exists.
Re: No more handles [gtk_init_check() failed] [message #1780594 is a reply to message #998978] Wed, 24 January 2018 10:29 Go to previous message
chaitanya k is currently offline chaitanya kFriend
Messages: 1
Registered: January 2018
Junior Member
Did you got any solution to this.
Previous Topic:Having trouble in installing a plug-in
Next Topic:Unicode - General OS question
Goto Forum:
  


Current Time: Tue Mar 19 10:35:19 GMT 2024

Powered by FUDForum. Page generated in 0.02207 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top