Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 495368 - GTK3: search dialog not working -- NPE
Summary: GTK3: search dialog not working -- NPE
Status: CLOSED DUPLICATE of bug 486069
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.5.2   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-03 05:42 EDT by arne anka CLA
Modified: 2016-06-04 03:19 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description arne anka CLA 2016-06-03 05:42:06 EDT
due to a change in GTK2 in debian/sid, Eclipse now crashes every few minutes and I was forced to switch to GTK3.

calling Search either via short cut or menu (main menu -> search -> search ...) does not produce the expected dialog, but in <WS>/.metadata/.log:

!ENTRY org.eclipse.ui 4 0 2016-06-03 11:36:40.615
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.e4.core.di.InjectionException: java.lang.NullPointerException
        at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:68)
        at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:252)
        at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:234)
        at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
        at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:152)
        at org.eclipse.core.commands.Command.executeWithChecks(Command.java:493)
        at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:486)
        at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210)
        at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:286)
        at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:507)
        at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:558)
        at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.filterKeySequenceBindings(KeyBindingDispatcher.java:378)
        at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.access$0(KeyBindingDispatcher.java:324)
        at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher$KeyDownFilter.handleEvent(KeyBindingDispatcher.java:86)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1550)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1328)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1353)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1338)
        at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1365)
        at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.java:763)
        at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:3325)                                                                                  
        at org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java:793)                                                                               
        at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1980)                                                                                             
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:5685)                                                                                           
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4717)                                                                                           
        at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)                                                                                       
        at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:9326)                                                                                         
        at org.eclipse.swt.widgets.Display.eventProc(Display.java:1225)
        at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
        at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2435)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3428)
        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)
Caused by: 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.search.internal.ui.SearchDialog.createPageArea(SearchDialog.java:437)
        at org.eclipse.search.internal.ui.util.ExtendedDialogWindow.createDialogArea(ExtendedDialogWindow.java:140)
        at org.eclipse.jface.dialogs.Dialog.createContents(Dialog.java:768)
        at org.eclipse.jface.window.Window.create(Window.java:430)
        at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1096)
        at org.eclipse.search.internal.ui.SearchDialog.create(SearchDialog.java:301)
        at org.eclipse.jface.window.Window.open(Window.java:792)
        at org.eclipse.search.internal.ui.OpenSearchDialogAction.run(OpenSearchDialogAction.java:54)
        at org.eclipse.search.ui.NewSearchUI.openSearchDialog(NewSearchUI.java:299)
        at org.eclipse.search.internal.ui.OpenFileSearchPageAction.run(OpenFileSearchPageAction.java:46)
        at org.eclipse.ui.internal.handlers.ActionDelegateHandlerProxy.execute(ActionDelegateHandlerProxy.java:299)
        at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
        at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
        ... 53 more
Comment 1 Patrik Suzzi CLA 2016-06-04 03:19:01 EDT
Thanks for reporting!

This is the same as Bug 493454, the relevant exception is here: 

Caused by: java.lang.NullPointerException
        at org.eclipse.swt.widgets.TabFolder.gtk_switch_page(TabFolder.java:570)

You're probably using Eclipse Mars.2 or lower, and this bug is resolved via Bug 486069. 

I suggest you to download the latest developer build of Eclipse Neon, and verify the error is solved. 
https://www.eclipse.org/downloads/index-developer.php

*** This bug has been marked as a duplicate of bug 486069 ***