Community
Participate
Working Groups
When i go : File > New Project > PHP Project i have this error : « Unhandled event loop exception » « java.lang.NullPointerException at org.eclipse.swt.widgets.TabFolder.gtk_switch_page(TabFolder.java:570) at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:2009) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4723) at org.eclipse.swt.internal.gtk.OS._gtk_widget_show(Native Method) at org.eclipse.swt.internal.gtk.OS.gtk_widget_show(OS.java:14774) at org.eclipse.swt.widgets.TabFolder.createItem(TabFolder.java:311) at org.eclipse.swt.widgets.TabItem.createWidget(TabItem.java:123) at org.eclipse.swt.widgets.TabItem.<init>(TabItem.java:75) at org.eclipse.php.internal.ui.preferences.includepath.PHPIncludePathsBlock.createControl(PHPIncludePathsBlock.java:155) at org.eclipse.dltk.ui.wizards.CapabilityConfigurationPage.createControl(CapabilityConfigurationPage.java:176) at org.eclipse.php.internal.ui.wizards.PHPProjectWizardSecondPage.createControl(PHPProjectWizardSecondPage.java:245) at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:175) at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:705) at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:597) at org.eclipse.jface.window.Window.create(Window.java:430) at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1096) at org.eclipse.ui.internal.actions.NewWizardShortcutAction.run(NewWizardShortcutAction.java:123) at org.eclipse.jface.action.Action.runWithEvent(Action.java:473) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:595) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:511) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:420) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4481) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1329) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3819) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3430) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:694) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:606) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608) at org.eclipse.equinox.launcher.Main.run(Main.java:1515) at org.eclipse.equinox.launcher.Main.main(Main.java:1488) » session data : « eclipse.buildId=4.5.2.M20160212-1500 java.version=1.8.0_91 java.vendor=Oracle Corporation BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=fr_FR Framework arguments: -product org.eclipse.epp.package.php.product Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.php.product »
You probably are Ubuntu user. Can you try with GTK 3 disabled? See this article: https://coffeeorientedprogramming.wordpress.com/2014/10/27/how-to-tell-if-you-are-running-eclipse-on-gtk2-or-on-gtk3/
See also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=486069 This bug will be fixed in eclipse 4.6
(In reply to Dawid Pakula from comment #1) > You probably are Ubuntu user. Can you try with GTK 3 disabled? > > See this article: > https://coffeeorientedprogramming.wordpress.com/2014/10/27/how-to-tell-if- > you-are-running-eclipse-on-gtk2-or-on-gtk3/ I'm on Debian Stretch $ export SWT_GTK3=0 I have the same problem
but I did not have this problem a few weeks ago. Only after update of gnome i think ?
Strange. Export SWT_GTK3 not work if run from .desktop file. Can you check Help -> About -> Installation Details -> Configuration Tab as it's described in linked article? Or check recent Neon build [1]? Recent GTK3 cause a lot of problems. [1] - https://www.eclipse.org/downloads/index-developer.php
As an alternative way to disable GTK3 you can use eclipse.ini file. Just add: --launcher.GTK_version 2 before -vmargs
(In reply to Dawid Pakula from comment #5) > Strange. > > Export SWT_GTK3 not work if run from .desktop file. Can you check Help -> > About -> Installation Details -> Configuration Tab as it's described in > linked article? Or check recent Neon build [1]? > > Recent GTK3 cause a lot of problems. > > [1] - https://www.eclipse.org/downloads/index-developer.php Can you check Help -> About -> Installation Details -> Configuration Tab as it's described in linked article? No i can't cause the window will not open ... Okay i try with ini file
(In reply to Michal Niewrzal from comment #6) > As an alternative way to disable GTK3 you can use eclipse.ini file. Just add: > --launcher.GTK_version > 2 > > before -vmargs Ok it works with GTK_version 2
Too keep others informed I'm marking this bug as duplicate of bug 486069. Since neon (PDT 4.0) everything should working fine. *** This bug has been marked as a duplicate of bug 486069 ***