Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 283286 - [Graphics] IllegalArgumentException in TextLayout._getOffset
Summary: [Graphics] IllegalArgumentException in TextLayout._getOffset
Status: CLOSED DUPLICATE of bug 452141
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-13 04:37 EDT by Peter Larsen CLA
Modified: 2017-07-14 08:15 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Larsen CLA 2009-07-13 04:37:45 EDT
Build ID: I20090611-1540

After upgrading from eclipse 3.5rc3 to 3.5 I found this a number
of times in .log:


!SESSION 2009-07-05 17:30:53.150 -----------------------------------------------
eclipse.buildId=I20090611-1540
java.version=1.6.0_13
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=da_DK
Command-line arguments:  -os win32 -ws win32 -arch x86

This is a continuation of log file C:\workspace\.metadata\.bak_0.log
Created Time: 2009-07-05 17:30:54.947
!SESSION 2009-07-05 17:30:53.150 -----------------------------------------------
eclipse.buildId=I20090611-1540
java.version=1.6.0_13
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=da_DK
Command-line arguments:  -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.core.resources 2 10035 2009-07-05 17:30:54.947
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.

!ENTRY org.eclipse.ui 4 0 2009-07-07 03:12:03.566
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.IllegalArgumentException: Index out of bounds
	at org.eclipse.swt.SWT.error(SWT.java:3865)
	at org.eclipse.swt.SWT.error(SWT.java:3799)
	at org.eclipse.swt.SWT.error(SWT.java:3770)
	at org.eclipse.swt.graphics.TextLayout._getOffset(TextLayout.java:2003)
	at org.eclipse.swt.graphics.TextLayout.getPreviousOffset(TextLayout.java:2235)
	at org.eclipse.swt.custom.StyledText.getClusterPrevious(StyledText.java:3669)
	at org.eclipse.swt.custom.StyledText.doSelectionCursorPrevious(StyledText.java:3239)
	at org.eclipse.swt.custom.StyledText.doCursorPrevious(StyledText.java:2481)
	at org.eclipse.swt.custom.StyledText.invokeAction(StyledText.java:6336)
	at org.eclipse.swt.custom.StyledText.handleKey(StyledText.java:5818)
	at org.eclipse.swt.custom.StyledText.handleKeyDown(StyledText.java:5839)
	at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:5541)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1040)
	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1036)
	at org.eclipse.swt.widgets.Widget.wmKeyDown(Widget.java:1669)
	at org.eclipse.swt.widgets.Control.WM_KEYDOWN(Control.java:4281)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:3977)
	at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:342)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4589)
	at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2409)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3471)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
	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:368)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
Comment 1 Felipe Heidrich CLA 2009-07-14 10:24:28 EDT
Any idea how to redroduce this problem ?
Comment 2 Peter Larsen CLA 2009-07-14 11:20:29 EDT
No. I have only seen it once. 
Comment 3 Felipe Heidrich CLA 2009-11-20 09:54:49 EST
Your bug has been moved to triage, visit http://www.eclipse.org/swt/triage.php
for more info.
Comment 4 Niraj Modi CLA 2017-07-14 08:15:58 EDT
Fix for bug 452141, addressed this problem.

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