Project: aptanastudio
Issue APSTUD-5040: Assertion Failed in ThemeingDamagerRepairer.storeScope()
Aptana crashed when coding (some PDO function) and cannot open the file anymore with the following error: {code} 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:330) com.aptana.editor.common.text.rules.ThemeingDamagerRepairer.getTokenTextAttribute(ThemeingDamagerRepairer.java:276) org.eclipse.jface.text.rules.DefaultDamagerRepairer.createPresentation(DefaultDamagerRepairer.java:179) com.aptana.editor.common.text.rules.ThemeingDamagerRepairer.createPresentation(ThemeingDamagerRepairer.java:129) com.aptana.editor.common.text.reconciler.CommonPresentationReconciler.createPresentation(CommonPresentationReconciler.java:179) com.aptana.editor.common.text.reconciler.CommonPresentationReconciler.createPresentation(CommonPresentationReconciler.java:125) 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.inputDocumentChanged(PresentationReconciler.java:119) org.eclipse.jface.text.TextViewer.fireInputDocumentChanged(TextViewer.java:2888) org.eclipse.jface.text.TextViewer.setDocument(TextViewer.java:2937) org.eclipse.jface.text.source.SourceViewer.setDocument(SourceViewer.java:640) org.eclipse.jface.text.source.projection.ProjectionViewer.setDocument(ProjectionViewer.java:376) org.eclipse.jface.text.source.SourceViewer.setDocument(SourceViewer.java:588) org.eclipse.ui.texteditor.AbstractTextEditor.initializeSourceViewer(AbstractTextEditor.java:4030) org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:3558) org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:54) org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:440) com.aptana.editor.common.internal.AbstractFoldingEditor.createPartControl(AbstractFoldingEditor.java:59) com.aptana.editor.common.AbstractThemeableEditor.createPartControl(AbstractThemeableEditor.java:317) com.aptana.editor.html.HTMLEditor.createPartControl(HTMLEditor.java:148) com.aptana.editor.php.internal.ui.editor.PHPSourceEditor.createPartControl(PHPSourceEditor.java:154) org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670) org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465) org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595) org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289) org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2945) org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850) org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842) org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793) org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789) org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773) org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2764) org.eclipse.ui.ide.IDE.openEditor(IDE.java:651) org.eclipse.ui.ide.IDE.openEditor(IDE.java:610) org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileAction.java:99) org.eclipse.ui.actions.OpenSystemEditorAction.run(OpenSystemEditorAction.java:99) org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java:221) org.eclipse.ui.navigator.CommonNavigatorManager$3.open(CommonNavigatorManager.java:185) org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48) org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866) org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49) org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:864) org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152) org.eclipse.ui.navigator.CommonViewer.handleOpen(CommonViewer.java:462) org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256) org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275) org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269) org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309) 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.notifyListeners(Widget.java:1270) org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3974) org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3613) 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