vazexqi / CodingSpectator

Watches and analyzes code edits in the Eclipse IDE non-invasively
http://codingspectator.cs.illinois.edu
Other
20 stars 14 forks source link

CodingTracker fails to replay P1/7d977b90-a9b8-48ab-b6af-74941ebb6cfe/1.0.0.201011031917 #193

Open reprogrammer opened 13 years ago

reprogrammer commented 13 years ago

CodingTracker fails to replay the sequence of changes recorded at "P1/7d977b90-a9b8-48ab-b6af-74941ebb6cfe/1.0.0.201011031917/codingtracker/codechanges.txt".

See the screenshot of the replayer when it stops to replay and the following exception trace for more details.

Exception in thread "Thread-34" org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.RuntimeException: java.lang.RuntimeException: Replaced text is not present in the document: Replaced text: Rename
New text: C
Offset: 2528
Length: 6
Timestamp: 1291501489533)
    at org.eclipse.swt.SWT.error(SWT.java:4083)
    at org.eclipse.swt.SWT.error(SWT.java:3998)
    at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:195)
    at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
    at org.eclipse.swt.widgets.Display.syncExec(Display.java:4282)
    at edu.illinois.codingspectator.codingtracker.replaying.UserOperationReplayer$UserOperationExecutionThread.executeUserOperationInUIThread(UserOperationReplayer.java:310)
    at edu.illinois.codingspectator.codingtracker.replaying.UserOperationReplayer$UserOperationExecutionThread.run(UserOperationReplayer.java:290)

!ENTRY org.eclipse.ui 4 0 2011-04-08 09:21:31.874
!MESSAGE Unhandled event loop exception
!STACKCaused by: java.lang.RuntimeException: java.lang.RuntimeException: Replaced text is not present in the document: Replaced text: Rename
New text: C
Offset: 2528
Length: 6
Timestamp: 1291501489533
    at edu.illinois.codingspectator.codingtracker.replaying.UserOperationReplayer.replayAndAdvanceCurrentUserOperation(UserOperationReplayer.java:219)
    at edu.illinois.codingspectator.codingtracker.replaying.UserOperationReplayer.access$3(UserOperationReplayer.java:206)
    at edu.illinois.codingspectator.codingtracker.replaying.UserOperationReplayer$UserOperationExecutionThread$1.run(UserOperationReplayer.java:314)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3515)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3164)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1384)
 Caused by: java.lang.RuntimeException: Replaced text is not present in the document: Replaced text: Rename
New text: C
Offset: 2528
Length: 6
Timestamp: 12915014895330

    at edu.illinois.codingspectator.codingtracker.operations.textchanges.TextChangeOperation.replay(TextChangeOperation.java:85)
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.RuntimeException: java.lang.RuntimeException: Replaced text is not present in the document: Replaced text: Rename
New text: C
Offset: 2528
Length: 6
Timestamp: 1291501489533)
    at org.eclipse.swt.SWT.error(SWT.java:4083)
    at org.eclipse.swt.SWT.error(SWT.java:3998)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:137)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3515)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3164)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1384)
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Replaced text is not present in the document: Replaced text: Rename
New text: C
Offset: 2528
Length: 6
Timestamp: 1291501489533
    at edu.illinois.codingspectator.codingtracker.replaying.UserOperationReplayer.replayAndAdvanceCurrentUserOperation(UserOperationReplayer.java:219)
    at edu.illinois.codingspectator.codingtracker.replaying.UserOperationReplayer.access$3(UserOperationReplayer.java:206)
    at edu.illinois.codingspectator.codingtracker.replaying.UserOperationReplayer$UserOperationExecutionThread$1.run(UserOperationReplayer.java:314)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
    ... 23 more
Caused by: java.lang.RuntimeException: Replaced text is not present in the document: Replaced text: Rename
New text: C
Offset: 2528
Length: 6
Timestamp: 1291501489533
    at edu.illinois.codingspectator.codingtracker.operations.textchanges.TextChangeOperation.replay(TextChangeOperation.java:85)
    at edu.illinois.codingspectator.codingtracker.replaying.UserOperationReplayer.replayAndAdvanceCurrentUserOperation(UserOperationReplayer.java:216)
    ... 27 more
    at edu.illinois.codingspectator.codingtracker.replaying.UserOperationReplayer.replayAndAdvanceCurrentUserOperation(UserOperationReplayer.java:216)
    ... 27 more