Bug 535735 - [minimap] IllegalArgumentException below MinimapWidget$EditorTracker.addPresentation (thrown in StyledText.setStyleRanges)
Summary: [minimap] IllegalArgumentException below MinimapWidget$EditorTracker.addPrese...
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.8   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 321410
Blocks:
  Show dependency tree
 
Reported: 2018-06-09 08:12 EDT by EPP Error Reports CLA
Modified: 2018-06-22 03:04 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description EPP Error Reports CLA 2018-06-09 08:12:29 EDT
Steps to reproduce

1. Create a plugin project (with ui + runtime as deps)
2. Create a class, open class in editor
3. Activate minimap
4. Extend viewpart on the class
5. Press CTRL+1 quick fix and select "add unimplemented methods"

The following problem was reported via the automated error reporting:

Message: Problems occurred when invoking code from plug-in: "org.eclipse.text".
java.lang.IllegalArgumentException: Index out of bounds
    at org.eclipse.swt.custom.StyledText.setStyleRanges(StyledText.java:10013)
    at org.eclipse.swt.custom.StyledText.replaceStyleRanges(StyledText.java:7957)
    at org.eclipse.ui.internal.views.minimap2.MinimapWidget$EditorTracker.addPresentation(MinimapWidget.java:166)
    at org.eclipse.ui.internal.views.minimap2.MinimapWidget$EditorTracker.applyTextPresentation(MinimapWidget.java:92)
    at org.eclipse.jface.text.TextViewer.changeTextPresentation(TextViewer.java:4755)
    at org.eclipse.jface.text.presentation.PresentationReconciler.applyTextRegionCollection(PresentationReconciler.java:559)
    at org.eclipse.jface.text.presentation.PresentationReconciler.processDamage(PresentationReconciler.java:548)
    at org.eclipse.jface.text.presentation.PresentationReconciler.access$3(PresentationReconciler.java:544)
    at org.eclipse.jface.text.presentation.PresentationReconciler$InternalListener.textChanged(PresentationReconciler.java:212)
    at org.eclipse.jface.text.TextViewer.updateTextListeners(TextViewer.java:2699)
    at org.eclipse.jface.text.TextViewer.fireRedrawChanged(TextViewer.java:4913)
    at org.eclipse.jface.text.TextViewer.enabledRedrawing(TextViewer.java:4953)
    at org.eclipse.jface.text.TextViewer.enabledRedrawing(TextViewer.java:4921)
    at org.eclipse.jface.text.TextViewer.setRedraw(TextViewer.java:5003)
    at org.eclipse.jface.text.TextViewer.setRedraw(TextViewer.java:4977)
    at org.eclipse.jface.text.TextViewer$RewriteTarget.setRedraw(TextViewer.java:1004)
    at org.eclipse.jface.text.TextViewer$DocumentRewriteSessionListener.documentRewriteSessionChanged(TextViewer.java:1396)
    at org.eclipse.jface.text.AbstractDocument.fireRewriteSessionChanged(AbstractDocument.java:1437)
    at org.eclipse.jface.text.AbstractDocument.stopRewriteSession(AbstractDocument.java:1518)
    at org.eclipse.core.internal.filebuffers.SynchronizableDocument.stopRewriteSession(SynchronizableDocument.java:105)
    at org.eclipse.ltk.core.refactoring.TextChange.performEdits(TextChange.java:280)
    at org.eclipse.ltk.core.refactoring.TextFileChange.access$0(TextFileChange.java:1)
    at org.eclipse.ltk.core.refactoring.TextFileChange$1.run(TextFileChange.java:269)
    at org.eclipse.ui.internal.editors.text.UISynchronizationContext.run(UISynchronizationContext.java:32)
    at org.eclipse.core.internal.filebuffers.TextFileBufferManager.execute(TextFileBufferManager.java:591)
    at org.eclipse.ltk.core.refactoring.TextFileChange.performEdits(TextFileChange.java:281)
    at org.eclipse.ltk.core.refactoring.TextChange.perform(TextChange.java:237)
    at org.eclipse.jdt.ui.text.java.correction.ChangeCorrectionProposal.performChange(ChangeCorrectionProposal.java:188)
    at org.eclipse.jdt.internal.ui.text.correction.proposals.LinkedCorrectionProposal.performChange(LinkedCorrectionProposal.java:148)
    at org.eclipse.jdt.ui.text.java.correction.CUCorrectionProposal.apply(CUCorrectionProposal.java:181)
    at org.eclipse.jdt.internal.ui.text.correction.proposals.FixCorrectionProposal.apply(FixCorrectionProposal.java:179)
    at org.eclipse.jface.text.contentassist.CompletionProposalPopup.insertProposal(CompletionProposalPopup.java:982)
    at org.eclipse.jface.text.contentassist.CompletionProposalPopup.insertSelectedProposalWithMask(CompletionProposalPopup.java:931)
    at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$9(CompletionProposalPopup.java:927)
    at org.eclipse.jface.text.contentassist.CompletionProposalPopup$5.widgetDefaultSelected(CompletionProposalPopup.java:672)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:120)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)


The reporter(s) left the following comment(s):

--- Wim Jongman wrote on 9441: ---
Steps to reproduce

1. Create a plugin project (with ui + runtime as deps)
2. Create a class, open class in editor
3. Activate minimap
4. Extend viewpart on the class
5. Press CTRL+1 quick fix and select "add unimplemented methods"

Bundles:
| org.eclipse.core.filebuffers | 3.6.200.v20171212-0901 | 3.6.200.v20171212-0901 |
| org.eclipse.jdt.ui | 3.14.0.v20180305-0824 | 3.14.0.v20180305-0824 |
| org.eclipse.jface.text | 3.13.0.v20180307-1059 | 3.13.0.v20180307-1059 |
| org.eclipse.ltk.core.refactoring | 3.9.0.v20180220-2105 | 3.9.0.v20180220-2105 |
| org.eclipse.swt | 3.107.0.v20180308-0607 | 3.107.0.v20180308-0607 |
| org.eclipse.ui.editors | 3.11.100.v20180223-1158 | 3.11.100.v20180223-1158 |
| org.eclipse.ui.views | 3.9.100.v20180228-1600 | 3.9.100.v20180228-1600 |

Operating Systems:
| Windows | 10.0.0 | 10.0.0 |


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

Thank you for your assistance.
 Your friendly error-reports-inbox.
Comment 1 Angelo ZERR CLA 2018-06-15 05:27:44 EDT
Please retry my new gerrit patch https://git.eclipse.org/r/#/c/123936/

It should fix this issue.
Comment 2 Lars Vogel CLA 2018-06-15 05:29:42 EDT
Amazing to see already error reports for a not yet finished implementation. Thanks Wim.
Comment 3 Lars Vogel CLA 2018-06-22 03:04:04 EDT
Should be fixed with Bug 321410.