Project: aptanastudio
Issue APSTUD-4920: AssertionFailedException in ThemeingDamagerRepairer.storeScope()
Found in a customer's log file. Unfortunately no reproduction case ATM. Suggested solution: * Catch/rethrow the error message with additional information to that we can possibly fix it in the future. * Or...figure out the root cause and fix it {code} !ENTRY org.eclipse.text 4 2 2012-06-12 23:36:34.144 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.text". !STACK 0 org.eclipse.core.runtime.AssertionFailedException: assertion failed: org.eclipse.core.runtime.Assert.isTrue(Assert.java:110) org.eclipse.core.runtime.Assert.isTrue(Assert.java:96) org.eclipse.jface.text.Position.(Position.java:63) org.eclipse.jface.text.TypedPosition.(TypedPosition.java:35) com.aptana.editor.common.text.rules.ThemeingDamagerRepairer.storeScope(ThemeingDamagerRepairer.java:285) com.aptana.editor.common.text.rules.ThemeingDamagerRepairer.getTokenTextAttribute(ThemeingDamagerRepairer.java:231) org.eclipse.jface.text.rules.DefaultDamagerRepairer.createPresentation(DefaultDamagerRepairer.java:179) com.aptana.editor.common.text.rules.ThemeingDamagerRepairer.createPresentation(ThemeingDamagerRepairer.java:80) com.aptana.editor.common.text.reconciler.CommonPresentationReconciler.createPresentation(CommonPresentationReconciler.java:151) com.aptana.editor.common.text.reconciler.CommonPresentationReconciler.createPresentation(CommonPresentationReconciler.java:109) org.eclipse.jface.text.presentation.PresentationReconciler.processDamage(PresentationReconciler.java:566) org.eclipse.jface.text.presentation.PresentationReconciler.access$3(PresentationReconciler.java:564) org.eclipse.jface.text.presentation.PresentationReconciler$InternalListener.textChanged(PresentationReconciler.java:225) org.eclipse.jface.text.TextViewer.updateTextListeners(TextViewer.java:2824) org.eclipse.jface.text.TextViewer$VisibleDocumentListener.documentChanged(TextViewer.java:403) org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged2(AbstractDocument.java:769) org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged(AbstractDocument.java:736) org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged(AbstractDocument.java:721) org.eclipse.jface.text.AbstractDocument.fireDocumentChanged(AbstractDocument.java:796) org.eclipse.jface.text.projection.ProjectionDocument.fireDocumentChanged(ProjectionDocument.java:777) org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1191) org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1210) org.eclipse.jface.text.projection.ProjectionDocument.replace(ProjectionDocument.java:629) org.eclipse.jface.text.DefaultDocumentAdapter.replaceTextRange(DefaultDocumentAdapter.java:248) org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:7180) org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:7994) org.eclipse.swt.custom.StyledText.doBackspace(StyledText.java:2266) org.eclipse.swt.custom.StyledText.invokeAction(StyledText.java:6988) org.eclipse.swt.custom.StyledText.handleKey(StyledText.java:5915) org.eclipse.swt.custom.StyledText.handleKeyDown(StyledText.java:5941) org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:5635) org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) org.eclipse.swt.widgets.Display.sendEvent(Display.java:4128) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1465) org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1494) org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1490) org.eclipse.swt.widgets.Canvas.sendKeyEvent(Canvas.java:493) org.eclipse.swt.widgets.Control.doCommandBySelector(Control.java:1060) org.eclipse.swt.widgets.Display.windowProc(Display.java:5563) org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method) org.eclipse.swt.internal.cocoa.NSResponder.interpretKeyEvents(NSResponder.java:68) org.eclipse.swt.widgets.Composite.keyDown(Composite.java:587) org.eclipse.swt.widgets.Display.windowProc(Display.java:5473) org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method) org.eclipse.swt.widgets.Widget.callSuper(Widget.java:220) org.eclipse.swt.widgets.Widget.windowSendEvent(Widget.java:2095) org.eclipse.swt.widgets.Shell.windowSendEvent(Shell.java:2253) org.eclipse.swt.widgets.Display.windowProc(Display.java:5535) org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method) org.eclipse.swt.widgets.Display.applicationSendEvent(Display.java:4989) org.eclipse.swt.widgets.Display.applicationProc(Display.java:5138) org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method) org.eclipse.swt.internal.cocoa.NSApplication.sendEvent(NSApplication.java:128) org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3610) org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701) org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665) org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499) org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679) org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668) org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) com.aptana.rcp.IDEApplication.start(IDEApplication.java:125) org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) org.eclipse.equinox.launcher.Main.run(Main.java:1410) {code}
Story points: 8