java.lang.StringIndexOutOfBoundsException in TextLayout with formatter-embedded OOMPH setup xml file [message #1852095] |
Thu, 28 April 2022 18:08  |
Eclipse User |
|
|
|
Hi!
I am not sure, if my problem is an SWT problem, but since this is the upmost entry in the stack trace, I will try here first.
I am experiencing the following problem:
If I open a certain XML file with the Text Editor or the XML Editor (only tested these two), I get a StringIndexOutOfBoundsException as soon as I scroll over a certain line. Also, in some parts of the editor, the text may disappear and I only see black.
The XML file is an OOMPH setup file that has a formatter embedded - this means an xml file where one element contains the formatter as an escaped xml "file" in its value. I will attach a sample file that shows this behaviour in my Eclipse 2022-03.
The stack trace is the following:
java.lang.StringIndexOutOfBoundsException: begin 32019, end 64019, length 57932
at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3734)
at java.base/java.lang.String.getChars(String.java:873)
at org.eclipse.swt.graphics.TextLayout.breakRun(TextLayout.java:250)
at org.eclipse.swt.graphics.TextLayout.splitLongRun(TextLayout.java:2915)
at org.eclipse.swt.graphics.TextLayout.merge(TextLayout.java:2892)
at org.eclipse.swt.graphics.TextLayout.itemize(TextLayout.java:2789)
at org.eclipse.swt.graphics.TextLayout.computeRuns(TextLayout.java:270)
at org.eclipse.swt.graphics.TextLayout.getLineCount(TextLayout.java:1918)
at org.eclipse.swt.custom.StyledTextRenderer.getTextLayout(StyledTextRenderer.java:1270)
at org.eclipse.swt.custom.StyledTextRenderer.getTextLayout(StyledTextRenderer.java:908)
at org.eclipse.swt.custom.StyledTextRenderer.drawLine(StyledTextRenderer.java:453)
at org.eclipse.swt.custom.StyledText.handlePaint(StyledText.java:6445)
at org.eclipse.swt.custom.StyledText.lambda$28(StyledText.java:5938)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4243)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1063)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1087)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1072)
at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1536)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4803)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:340)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5023)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(Native Method)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3630)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1155)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1046)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06032 seconds