Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 129701 - [JFace Text] Editing build.xml file causes Assertion exception and IllegalStateExceptions
Summary: [JFace Text] Editing build.xml file causes Assertion exception and IllegalSta...
Status: RESOLVED DUPLICATE of bug 126176
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.2   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: 2006-02-27 19:43 EST by Morten Moeller CLA
Modified: 2006-03-18 14:38 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Morten Moeller CLA 2006-02-27 19:43:54 EST
I've been editing a lot of build files on M5. While I was trying to delete a chunk of data, eclipse froze and eventually showed a generic popup saying 'there has been an error'.. The editor was then forever broken and I couldn't save or do anyuthing on it.. The log-file was filled with the same IllegalStateException that seems to have originated from the failed assertion I pasted in below.

Eclipse 3.2M5, editing build.xml (ant), WinXP-64bit


!ENTRY org.eclipse.ui 4 4 2006-02-27 18:35:19.895
!MESSAGE Unhandled event loop exception

!ENTRY org.eclipse.ui 4 0 2006-02-27 18:35:19.895
!MESSAGE Assertion failed: 
!STACK 0
org.eclipse.jface.text.Assert$AssertionFailedException: Assertion failed: 
	at org.eclipse.jface.text.Assert.isTrue(Assert.java:188)
	at org.eclipse.jface.text.Assert.isTrue(Assert.java:173)
	at org.eclipse.jface.text.rules.FastPartitioner.documentChanged2(FastPartitioner.java:296)
	at org.eclipse.jface.text.AbstractDocument.updateDocumentStructures(AbstractDocument.java:652)
	at org.eclipse.jface.text.AbstractDocument.fireDocumentChanged(AbstractDocument.java:751)
	at org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1112)
	at org.eclipse.core.internal.filebuffers.SynchronizableDocument.replace(SynchronizableDocument.java:151)
	at org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1119)
	at org.eclipse.core.internal.filebuffers.SynchronizableDocument.replace(SynchronizableDocument.java:137)
	at org.eclipse.jface.text.projection.ProjectionTextStore.replace(ProjectionTextStore.java:111)
	at org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1105)
	at org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1119)
	at org.eclipse.jface.text.projection.ProjectionDocument.replace(ProjectionDocument.java:615)
	at org.eclipse.jface.text.DefaultDocumentAdapter.replaceTextRange(DefaultDocumentAdapter.java:243)
	at org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:5755)
	at org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:6466)
	at org.eclipse.swt.custom.StyledText.doBackspace(StyledText.java:2043)
	at org.eclipse.swt.custom.StyledText.invokeAction(StyledText.java:5641)
	at org.eclipse.swt.custom.StyledText.handleKey(StyledText.java:5043)
	at org.eclipse.swt.custom.StyledText.handleKeyDown(StyledText.java:5065)
	at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:4804)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:925)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:949)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:934)
	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:962)
	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:958)
	at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1272)
	at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3336)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:3236)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:3965)
	at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1799)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2905)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1899)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1863)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:417)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:106)
	at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:99)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:374)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:169)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.core.launcher.Main.invokeFramework(Main.java:338)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:282)
	at org.eclipse.core.launcher.Main.run(Main.java:977)
	at org.eclipse.core.launcher.Main.main(Main.java:952)

!ENTRY org.eclipse.ui 4 4 2006-02-27 18:35:19.910
!MESSAGE Unhandled event loop exception

!ENTRY org.eclipse.ui 4 0 2006-02-27 18:35:19.910
!MESSAGE java.lang.IllegalStateException
!STACK 0
java.lang.IllegalStateException
	at org.eclipse.jface.text.projection.ProjectionTextStore.internalError(ProjectionTextStore.java:85)
	at org.eclipse.jface.text.projection.ProjectionTextStore.get(ProjectionTextStore.java:152)
	at org.eclipse.jface.text.AbstractDocument.get(AbstractDocument.java:997)
	at org.eclipse.jface.text.DefaultDocumentAdapter.doGetLine(DefaultDocumentAdapter.java:145)
	at org.eclipse.jface.text.DefaultDocumentAdapter.getLine(DefaultDocumentAdapter.java:168)
	at org.eclipse.swt.custom.StyledText.getOffsetAtLocation(StyledText.java:3749)
	at org.eclipse.jface.text.source.AnnotationPainter.computeClippingRegion(AnnotationPainter.java:1269)
	at org.eclipse.jface.text.source.AnnotationPainter.handleDrawRequest(AnnotationPainter.java:1159)
	at org.eclipse.jface.text.source.AnnotationPainter.paintControl(AnnotationPainter.java:1144)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:83)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:925)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:949)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:934)
	at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1240)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:3289)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:3965)
	at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1799)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2905)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1899)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1863)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:417)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:106)
	at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:99)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:374)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:169)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.core.launcher.Main.invokeFramework(Main.java:338)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:282)
	at org.eclipse.core.launcher.Main.run(Main.java:977)
	at org.eclipse.core.launcher.Main.main(Main.java:952)

!ENTRY org.eclipse.ui 4 4 2006-02-27 18:35:20.520
!MESSAGE Unhandled event loop exception
Comment 1 Eric Moffatt CLA 2006-03-01 14:22:28 EST
Susan, I'll pass this to you for a first look since the upper part of the traceback is all jface related...

Comment 2 Susan McCourt CLA 2006-03-01 16:26:25 EST
Actually, this is something happening in JFace text.  It appears that a document changed event is firing and the document is not matching what was expected by the partitioner.  Passing this to platform text.
Comment 3 Dani Megert CLA 2006-03-02 02:32:32 EST
Which VM did you use?

*** This bug has been marked as a duplicate of 126176 ***
Comment 4 Morten Moeller CLA 2006-03-18 14:38:30 EST
a 32bit 1.5 VM

Here is my relevant(?) configuration details:

*** Date: Sat Mar 18 13:37:41 CST 2006

*** Platform Details:

*** System properties:
awt.toolkit=sun.awt.windows.WToolkit
eclipse.buildId=I20060217-1115
eclipse.commands=-os
win32
-ws
win32
-arch
x86
-launcher
C:\Dev\eclipse-3.2M5\eclipse.exe
-name
Eclipse
-showsplash
600
-exitdata
ed8_98
-vm
C:\WINDOWS\system32\javaw.exe
eclipse.ee.install.verify=false
eclipse.product=org.eclipse.sdk.ide
eclipse.startTime=1142603323627
eclipse.vm=C:\WINDOWS\system32\javaw.exe
eclipse.vmargs=-Xms300m
-Xmx600m
-jar
C:\Dev\eclipse-3.2M5\startup.jar
eof=eof
file.encoding=Cp1252
file.encoding.pkg=sun.io
file.separator=\
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
java.awt.printerjob=sun.awt.windows.WPrinterJob
java.class.path=C:\Dev\eclipse-3.2M5\startup.jar
java.class.version=49.0
java.endorsed.dirs=C:\Program Files (x86)\Java\jre1.5.0_06\lib\endorsed
java.ext.dirs=C:\Program Files (x86)\Java\jre1.5.0_06\lib\ext
java.home=C:\Program Files (x86)\Java\jre1.5.0_06
java.io.tmpdir=C:\DOCUME~1\mmoeller\LOCALS~1\Temp\
java.library.path=C:\WINDOWS\system32;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WAS\IBM\WebSphere MQ\Java\lib;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files (x86)\Perforce;C:\Program Files (x86)\Microsoft Command Shell\v1.0\;C:\Program Files (x86)\QuickTime\QTSystem\;c:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\WAS\IBM\WebSphere MQ\bin;C:\WAS\IBM\WebSphere MQ\tools\c\samples\bin;C:\PROGRA~2\IBM\SQLLIB\BIN;C:\PROGRA~2\IBM\SQLLIB\FUNCTION;C:\PROGRA~2\IBM\SQLLIB\SAMPLES\REPL;C:\Program Files (x86)\Common Files\Adobe\AGL
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version=1.5.0_06-b05
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.specification.version=1.5
java.vendor=Sun Microsystems Inc.
java.vendor.url=http://java.sun.com/
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
java.version=1.5.0_06
java.vm.info=mixed mode
java.vm.name=Java HotSpot(TM) Client VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Sun Microsystems Inc.
java.vm.specification.version=1.0
java.vm.vendor=Sun Microsystems Inc.
java.vm.version=1.5.0_06-b05
line.separator=