Bug 397610 - "org.eclipse.core.runtime.AssertionFailedException" in "org.eclipse.jface.text.source.AnnotationModel.getRegionAnnotationIterator()"
Summary: "org.eclipse.core.runtime.AssertionFailedException" in "org.eclipse.jface.tex...
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.8   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 4.6 M4   Edit
Assignee: Dani Megert CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 477323 483546 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-01-07 13:34 EST by David Tonhofer CLA
Modified: 2015-12-08 10:22 EST (History)
4 users (show)

See Also:


Attachments
Stack trace (7.46 KB, text/plain)
2013-01-07 13:34 EST, David Tonhofer CLA
no flags Details
Eclipse log (the beginning at least) (33.16 KB, text/x-log)
2013-01-08 13:17 EST, David Tonhofer CLA
no flags Details
Installed sftware (274.49 KB, image/jpeg)
2013-01-09 04:27 EST, David Tonhofer CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Tonhofer CLA 2013-01-07 13:34:38 EST
Created attachment 225300 [details]
Stack trace

While dealing with Junit4 test cases written in Groovy (unfortunately I do not have any further information, except that I tried to do a "save all" on edited source; then a popup window appeared saying "assertion error" and saving was no longer an option; the corresponding pane was blank, too)
Comment 1 Dani Megert CLA 2013-01-08 13:03:37 EST
Did you use 3.8 and not 4.2? Which build ID?
In which editor did it happen?

Please attach the complete .log.
Comment 2 David Tonhofer CLA 2013-01-08 13:16:34 EST
Hi 

This is

Version: 3.8.0
Build id: I20120608-1200

...because the 4-series is not yet okayed for the dev team and 3.8.1 doesn't work of my Fedora 17
Comment 3 David Tonhofer CLA 2013-01-08 13:17:03 EST
Created attachment 225350 [details]
Eclipse log (the beginning at least)
Comment 4 Dani Megert CLA 2013-01-09 02:58:17 EST
What editor? Do you have AJDT installed?
Comment 5 David Tonhofer CLA 2013-01-09 04:27:13 EST
No AJDT, but I have GRECLIPSE

The Editor will either be the Java editor or the Groovy editor.

Installed software, see attachment.
Comment 6 David Tonhofer CLA 2013-01-09 04:27:40 EST
Created attachment 225370 [details]
Installed sftware
Comment 7 Dani Megert CLA 2013-01-09 04:31:36 EST
I can't reproduce it on our latest official build:
http://download.eclipse.org/eclipse/downloads/drops4/I20130108-0800/

and the AFE should theoretically not happen. If you can provide detailed steps (starting off a fresh install and workspace), then please reopen this bug.
Comment 8 Dani Megert CLA 2013-01-09 04:31:45 EST
.
Comment 9 David Tonhofer CLA 2013-01-24 13:44:43 EST
Clearly a GRECLIPSE problem

I have his this four times today when editing Groovy code (never when editing Java code), but I don't know how to reproduce this with any consistency.

Eclipse does not allow saving of edited code after this occurs either...
Comment 10 David Tonhofer CLA 2013-01-24 15:08:18 EST
Occurs when content assist was active immediately before.

Googling for

org.eclipse.jface.text.source.AnnotationModel.getRegionAnnotationIterator(AnnotationModel.java:742)

Brings this up:

http://jira.codehaus.org/browse/GRECLIPSE-1433
http://jira.codehaus.org/browse/GRECLIPSE-1452
Comment 11 Dani Megert CLA 2015-10-29 12:18:28 EDT
Reopening since the AFE can indeed happen if e.g. the document doesn't contain the default category, or when the default category gets removed in a different thread.
Comment 12 Dani Megert CLA 2015-10-29 12:19:03 EDT
*** Bug 477323 has been marked as a duplicate of this bug. ***
Comment 14 Dani Megert CLA 2015-12-08 10:22:07 EST
*** Bug 483546 has been marked as a duplicate of this bug. ***