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

Bug 520645

Summary: IllegalArgumentException below StyledText.doMouseLinkCursor (thrown in TextLayout.getLineIndex)
Product: [Eclipse Project] Platform Reporter: EPP Error Reports <error-reports-inbox>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: lshanmug, niraj.modi
Version: 4.7Keywords: triaged
Target Milestone: ---   
Hardware: All   
OS: Mac OS X   
Whiteboard: stalebug

Description EPP Error Reports CLA 2017-08-07 19:49:57 EDT
The following problem was reported via the automated error reporting:

Message: Unhandled event loop exception
java.lang.IllegalArgumentException: Index out of bounds
    at org.eclipse.swt.graphics.TextLayout.getLineIndex(TextLayout.java:944)
    at org.eclipse.swt.custom.StyledText.getOffsetAtPoint(StyledText.java:4528)
    at org.eclipse.swt.custom.StyledText.doMouseLinkCursor(StyledText.java:2778)
    at org.eclipse.swt.custom.StyledText.doMouseLinkCursor(StyledText.java:2775)
    at org.eclipse.swt.custom.StyledText.setStyleRanges(StyledText.java:10013)
    at org.eclipse.swt.custom.StyledText.replaceStyleRanges(StyledText.java:7935)
    at org.eclipse.jface.text.TextViewer.addPresentation(TextViewer.java:4692)
    at org.eclipse.jface.text.TextViewer.changeTextPresentation(TextViewer.java:4769)
    at org.eclipse.cdt.internal.ui.editor.SemanticHighlightingPresenter.updatePresentation(SemanticHighlightingPresenter.java:448)
    at org.eclipse.cdt.internal.ui.editor.SemanticHighlightingPresenter$1.run(SemanticHighlightingPresenter.java:344)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:182)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4024)



Bundles:
| org.eclipse.cdt.ui | 6.1.0.201609121658 | 6.1.0.201609121658 |
| org.eclipse.jface.text | 3.11.1.v20160819-1517 | 3.11.1.v20160819-1517 |
| org.eclipse.swt | 3.105.1.v20160907-0248 | 3.105.1.v20160907-0248 |

Operating Systems:
| MacOSX | 10.12.6 | 10.12.6 |


The above information is a snapshot of the collected data. Visit https://dev.eclipse.org/recommenders/committers/aeri/v2/#!/problems/59874943e4b05728f8e9559c for the latest data.

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


Created on behalf of zeratul976@xxxxxx.xxx
Comment 1 Niraj Modi CLA 2017-08-09 03:18:01 EDT
This issue reported on MAC 10.12.6, note a similar looking exception was handled on Windows via bug 452141.
Comment 2 Eclipse Genie CLA 2020-08-14 12:23:43 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.