-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editor closing causes NullPointerExceptions in Linux Eclipse #25
Comments
I get the same exception sporadically with glance 1.2.1.201702271753 in eclipse 4.6.3. I did not close any tabs when the issue occurred last, but I may have closed a split editor shortly before it happened. The issue is particularly annoying because eclipse is frozen afterwards. It seems to be still processing the event queue, so it's not marked as not responding, but the UI is longer updated. The only solution seems to be killing and restarting eclipse. Stacktrace:
Stacktrace during freeze:
|
I hit the same error in Linux Eclipse by doing this:
The .metadata/.log says: !ENTRY org.eclipse.ui 4 0 2019-09-04 16:03:00.320 |
Hi,
I have installed Glance in Eclipse 4.1 (Juno) at Linux (Debian v 6.0.6). I opened glance bar and a java file. I entered some word into Glance ant it's occurences were found.
But then I right-clicked on the tab related to opened java file and selected "Close". In error log I got "Unhandeled event loop exception" from org.eclipse.ui. NullPointer (stack trace below). From then on, many actions I did including usage of Error log view and opening the closed java file resulted with more Error log messages with NPE. Also, the Glance stopped finding the words it should have.
I have an RCP application that also uses glance, and it has similar problem on linux. However, on Windows 7 Proffesional, no such problem occurs.
Also, none of this happens if once closes an editor with the "x" sign, instead of right-click and Close. Only the Close (and Close All) causes this.
org.eclipse.swt.SWTException: Widget is disposed
at org.eclipse.swt.SWT.error(SWT.java:4361)
at org.eclipse.swt.SWT.error(SWT.java:4276)
at org.eclipse.swt.SWT.error(SWT.java:4247)
at org.eclipse.swt.widgets.Widget.error(Widget.java:480)
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:417)
at org.eclipse.swt.widgets.Control.removeFocusListener(Control.java:1841)
at com.xored.glance.ui.controls.text.styled.TextSelector.dispose(TextSelector.java:39)
at com.xored.glance.internal.ui.viewers.SourceViewerControl.dispose(SourceViewerControl.java:65)
at com.xored.glance.ui.utils.UITextSource.dispose(UITextSource.java:63)
at com.xored.glance.internal.ui.search.SearchManager.setDescription(SearchManager.java:302)
at com.xored.glance.internal.ui.search.SearchManager.update(SearchManager.java:168)
at com.xored.glance.internal.ui.search.SearchManager.access$1(SearchManager.java:162)
at com.xored.glance.internal.ui.search.SearchManager$SourceListener.sourceChanged(SearchManager.java:406)
at com.xored.glance.internal.ui.sources.TextSourceListener.handleEvent(TextSourceListener.java:48)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1483)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1275)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1300)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1281)
at org.eclipse.swt.widgets.Control.sendFocusEvent(Control.java:3619)
at org.eclipse.swt.widgets.Control.gtk_event_after(Control.java:2970)
at org.eclipse.swt.widgets.Tree.gtk_event_after(Tree.java:1906)
at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1753)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:5116)
at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:3459)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4369)
at org.eclipse.swt.internal.gtk.OS._gtk_widget_grab_focus(Native Method)
at org.eclipse.swt.internal.gtk.OS.gtk_widget_grab_focus(OS.java:13088)
at org.eclipse.swt.widgets.Tree.gtk_button_press_event(Tree.java:1869)
at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1746)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:5116)
at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:3459)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4369)
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:8307)
at org.eclipse.swt.widgets.Display.eventProc(Display.java:1192)
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:2332)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3177)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1029)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
The text was updated successfully, but these errors were encountered: