Bug 52015 - Source view: AssertionFailedException while editing
Summary: Source view: AssertionFailedException while editing
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Linux-GTK
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
: 71169 175317 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-02-13 17:55 EST by Jared Burns CLA
Modified: 2007-06-22 10:04 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jared Burns CLA 2004-02-13 17:55:41 EST
Build 20040212 (M7)

I was happily editing away, using code assist and typing at high speed, when the following was 
dumped to the log:

!SESSION Feb 13, 2004 14:43:50.851 ---------------------------------------------
java.version=1.4.1_02
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments: -data /home/jburns/target
!ENTRY org.eclipse.ui 4 4 Feb 13, 2004 14:43:50.852
!MESSAGE Unhandled event loop exception
!ENTRY org.eclipse.ui 4 0 Feb 13, 2004 14:43:50.876
!MESSAGE Failed to execute runnable (org.eclipse.jface.text.Assert$AssertionFailedException: 
Assertion failed: )
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable (org.eclipse.jface.text.
Assert$AssertionFailedException: Assertion failed: )
	at org.eclipse.swt.SWT.error(SWT.java:2608)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:105)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1848)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1652)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1550)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1526)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:265)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:47)
	at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:257)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:104)
	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:324)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:279)
	at org.eclipse.core.launcher.Main.run(Main.java:742)
	at org.eclipse.core.launcher.Main.main(Main.java:581)
!ENTRY org.eclipse.ui 4 4 Feb 13, 2004 14:43:50.948
!MESSAGE *** SWT nested exception
!ENTRY org.eclipse.ui 4 0 Feb 13, 2004 14:43:50.983
!MESSAGE Assertion failed: 
!STACK 0
org.eclipse.jface.text.Assert$AssertionFailedException: Assertion failed: 
	at org.eclipse.jface.text.Assert.isTrue(Assert.java:175)
	at org.eclipse.jface.text.Assert.isTrue(Assert.java:160)
	at org.eclipse.jface.text.Position.<init>(Position.java:55)
	at org.eclipse.jface.text.rules.DefaultPartitioner.computePartitioning(DefaultPartitioner.java:
468)
	at org.eclipse.jface.text.AbstractDocument.computePartitioning(AbstractDocument.java:
1188)
	at org.eclipse.jface.text.TextUtilities.computePartitioning(TextUtilities.java:411)
	at org.eclipse.jface.text.presentation.PresentationReconciler.
createPresentation(PresentationReconciler.java:430)
	at org.eclipse.jface.text.presentation.PresentationReconciler.
processDamage(PresentationReconciler.java:543)
	at org.eclipse.jface.text.presentation.PresentationReconciler.
access$5(PresentationReconciler.java:541)
	at org.eclipse.jface.text.presentation.PresentationReconciler$InternalListener.
inputDocumentChanged(PresentationReconciler.java:113)
	at org.eclipse.jface.text.TextViewer.fireInputDocumentChanged(TextViewer.java:2294)
	at org.eclipse.jface.text.TextViewer.setDocument(TextViewer.java:2342)
	at org.eclipse.jface.text.source.SourceViewer.setDocument(SourceViewer.java:409)
	at org.eclipse.jface.text.source.SourceViewer.setDocument(SourceViewer.java:384)
	at org.eclipse.jface.text.TextViewer.setInput(TextViewer.java:2324)
	at org.eclipse.jdt.internal.ui.infoviews.SourceView.setInput(SourceView.java:408)
	at org.eclipse.jdt.internal.ui.infoviews.AbstractInfoView.doSetInput(AbstractInfoView.java:
454)
	at org.eclipse.jdt.internal.ui.infoviews.AbstractInfoView.access$2(AbstractInfoView.java:
453)
	at org.eclipse.jdt.internal.ui.infoviews.AbstractInfoView$3.run(AbstractInfoView.java:442)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:102)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1848)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1652)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1550)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1526)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:265)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:47)
	at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:257)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:104)
	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:324)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:279)
	at org.eclipse.core.launcher.Main.run(Main.java:742)
	at org.eclipse.core.launcher.Main.main(Main.java:581)
Comment 1 Dani Megert CLA 2004-02-16 11:37:38 EST
Looks like the initial partitioning isn't correct: the source view creates a new
document and its partitioner and later crashes when iterating over the
partitions due to overlapping partitions.

There were some bugs in the same area, see bug 14493 and bug 14571.
Comment 2 Dani Megert CLA 2004-03-09 13:36:08 EST
We can't do anything here without a test case
Comment 3 Dani Megert CLA 2004-08-02 04:49:59 EDT
*** Bug 71169 has been marked as a duplicate of this bug. ***
Comment 4 Dani Megert CLA 2007-02-23 12:05:56 EST
*** Bug 175317 has been marked as a duplicate of this bug. ***
Comment 5 Dani Megert CLA 2007-06-22 09:58:49 EDT
Get rid of deprecated state.
Comment 6 Dani Megert CLA 2007-06-22 10:04:14 EDT
.