Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 476929

Summary: IllegalArgumentException in TextConsoleViewer.handleDispose (TextConsoleViewer.java:729)
Product: [Eclipse Project] Platform Reporter: EPP Error Reports <error-reports-inbox>
Component: DebugAssignee: Sarika Sinha <sarika.sinha>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: sarika.sinha
Version: 4.5   
Target Milestone: 4.6   
Hardware: All   
OS: All   
Whiteboard:

Description EPP Error Reports CLA 2015-09-08 23:40:23 EDT
The following incident was reported via the automated error reporting:


    code:                   0
    plugin:                 org.eclipse.ui_3.107.0.v20150507-1945
    message:                Unhandled event loop exception
    fingerprint:            c35caf55
    exception class:        org.eclipse.swt.SWTException
    exception message:      Failed to execute runnable (java.lang.IllegalArgumentException: Index out of bounds)
    number of children:     0
    
    org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.IllegalArgumentException: Index out of bounds)
    at org.eclipse.swt.SWT.error(SWT.java:4491)
    at org.eclipse.swt.SWT.error(SWT.java:4406)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:138)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3794)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3433)
    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:654)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:598)
    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(NativeMethodAccessorImpl.java:-2)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:483)
    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.IllegalArgumentException: Index out of bounds
    at org.eclipse.swt.SWT.error(SWT.java:4472)
    at org.eclipse.swt.SWT.error(SWT.java:4406)
    at org.eclipse.swt.SWT.error(SWT.java:4377)
    at org.eclipse.swt.graphics.TextLayout._getOffset(TextLayout.java:1197)
    at org.eclipse.swt.graphics.TextLayout.getPreviousOffset(TextLayout.java:1394)
    at org.eclipse.swt.custom.StyledText.getPointAtOffset(StyledText.java:5481)
    at org.eclipse.swt.custom.StyledText.setCaretLocation(StyledText.java:8544)
    at org.eclipse.swt.custom.StyledText.removeLineStyleListener(StyledText.java:7706)
    at org.eclipse.ui.console.TextConsoleViewer.handleDispose(TextConsoleViewer.java:729)
    at org.eclipse.jface.text.TextViewer$2.widgetDisposed(TextViewer.java:1802)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:123)
    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:1327)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1351)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1336)
    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1117)
    at org.eclipse.swt.custom.StyledText.handleDispose(StyledText.java:5871)
    at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:5681)
    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:1327)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1351)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1332)
    at org.eclipse.swt.widgets.Widget.release(Widget.java:1136)
    at org.eclipse.swt.widgets.Control.release(Control.java:3806)
    at org.eclipse.swt.widgets.Widget.dispose(Widget.java:478)
    at org.eclipse.swt.custom.StyledText.dispose(StyledText.java:6910)
    at org.eclipse.ui.part.PageBookView.removePage(PageBookView.java:889)
    at org.eclipse.ui.part.PageBookView.partClosed(PageBookView.java:815)
    at org.eclipse.ui.internal.console.ConsoleView.partClosed(ConsoleView.java:138)
    at org.eclipse.ui.internal.console.ConsoleView$5.run(ConsoleView.java:423)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3794)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3433)
    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:654)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:598)
    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(NativeMethodAccessorImpl.java:-2)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:483)
    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)
   
  

General Information:

    reported-by:      
    anonymous-id:     7f5370b2-e8a8-4910-9b4d-69adca8a2b70
    eclipse-build-id: 4.5.0.I20150603-2000
    eclipse-product:  org.eclipse.epp.package.jee.product
    operating system: Linux 3.19.0 (x86_64) - gtk
    jre-version:      1.8.0_31-b13

The following plug-ins were present on the execution stack (*):
    1. org.eclipse.core.databinding.observable_1.5.0.v20150422-0725
    2. org.eclipse.core.databinding_1.5.0.v20150422-0725
    3. org.eclipse.core.runtime_3.11.0.v20150405-1723
    4. org.eclipse.e4.ui.workbench_1.3.0.v20150531-1948
    5. org.eclipse.e4.ui.workbench.swt_0.13.0.v20150504-0621
    6. org.eclipse.equinox.app_1.3.300.v20150423-1356
    7. org.eclipse.equinox.launcher_1.3.100.v20150511-1540
    8. org.eclipse.jface.text_3.10.0.v20150603-1752
    9. org.eclipse.jface_3.11.0.v20150602-1400
    10. org.eclipse.swt_3.104.0.v20150528-0211
    11. org.eclipse.ui_3.107.0.v20150507-1945
    12. org.eclipse.ui.console_3.6.0.v20150512-1341
    13. org.eclipse.ui.ide.application_1.1.0.v20150422-0725
    14. org.eclipse.ui.ide_3.11.0.v20150510-1749

Please note that:
* Messages, stacktraces, and nested status objects may be shortened.
* Bug fields like status, resolution, and whiteboard are sent
  back to reporters.
* The list of present bundles and their respective versions was
  calculated by package naming heuristics. This may or may not reflect reality.

Other Resources:
* Report: https://dev.eclipse.org/recommenders/committers/confess/#/problems/55ca24eee4b08f80b00c307d  
* Manual: https://dev.eclipse.org/recommenders/community/confess/#/guide


Thank you for your assistance.
Your friendly error-reports-inbox.

This bug was created on behalf of sarika.sinha@xxxxxxxxxxxx.
Comment 1 Sarika Sinha CLA 2015-09-11 06:53:40 EDT
This Exception is coming from private method
org.eclipse.swt.graphics.TextLayout._getOffset(TextLayout.java:1197)and is already fixed by SWT.

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