Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 187402 - Compare editor contents corrupted
Summary: Compare editor contents corrupted
Status: RESOLVED DUPLICATE of bug 142715
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-16 17:38 EDT by Boris Bokowski CLA
Modified: 2007-05-18 04:11 EDT (History)
1 user (show)

See Also:


Attachments
screenshot (200.20 KB, image/png)
2007-05-16 17:39 EDT, Boris Bokowski CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Boris Bokowski CLA 2007-05-16 17:38:09 EDT
I edited in the compare editor and ended up in this weird state (screenshot to follow). Found this stack trace in my .log six times:

java.lang.IllegalStateException
at org.eclipse.jface.text.projection.ProjectionMapping.toImageLine(ProjectionMapping.java:479)
at org.eclipse.jface.text.TextViewer.modelLine2WidgetLine(TextViewer.java:4869)
at org.eclipse.jface.text.JFaceTextUtil.modelLineToWidgetLine(JFaceTextUtil.java:215)
at org.eclipse.jface.internal.text.source.DiffPainter.paintLine(DiffPainter.java:220)
at org.eclipse.jface.internal.text.source.DiffPainter.paint(DiffPainter.java:158)
at org.eclipse.jface.text.source.LineNumberChangeRulerColumn.doPaint(LineNumberChangeRulerColumn.java:190)
at org.eclipse.jface.text.source.LineNumberRulerColumn.doubleBufferPaint(LineNumberRulerColumn.java:612)
at org.eclipse.jface.text.source.LineNumberRulerColumn.redraw(LineNumberRulerColumn.java:764)
at org.eclipse.jface.text.source.LineNumberRulerColumn$InternalListener.viewportChanged(LineNumberRulerColumn.java:72)
at org.eclipse.jface.text.TextViewer.updateViewportListeners(TextViewer.java:2914)
at org.eclipse.jface.text.TextViewer$ViewportGuard.widgetSelected(TextViewer.java:301)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:962)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:947)
at org.eclipse.swt.widgets.ScrollBar.wmScrollChild(ScrollBar.java:899)
at org.eclipse.swt.widgets.Scrollable.wmScroll(Scrollable.java:403)
at org.eclipse.swt.widgets.Scrollable.WM_VSCROLL(Scrollable.java:350)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3744)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4355)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2257)
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:77)
at org.eclipse.swt.widgets.Composite.WM_SYSCOMMAND(Composite.java:1425)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3738)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4342)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2257)
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:77)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3752)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4355)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2262)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3282)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2365)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2329)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2204)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
Comment 1 Boris Bokowski CLA 2007-05-16 17:39:47 EDT
Created attachment 67533 [details]
screenshot

Oh, I had a Java editor open on the same file, and it ended up in a weird state too.
Comment 2 Boris Bokowski CLA 2007-05-16 17:41:39 EDT
BTW, there was no real change where the compare editor showed a change.

I don't have time to try to reproduce this right now, but we can try tomorrow.
Comment 3 Michael Valenta CLA 2007-05-17 08:50:46 EDT
If both the Compare editor and Java editor where showing the behavior, then it sounds like a potential problem in the file buffer. Moving to Platform/Text for comment.
Comment 4 Dani Megert CLA 2007-05-18 04:11:45 EDT

*** This bug has been marked as a duplicate of bug 142715 ***