Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 358717

Summary: "Reporting encoding changes" being reported after importing projects
Product: [Eclipse Project] Platform Reporter: Grant Taylor <gdtaylor>
Component: ResourcesAssignee: Platform-Resources-Inbox <platform-resources-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 3.4   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description Grant Taylor CLA 2011-09-23 09:03:47 EDT
Build Identifier: org.eclipse.core.resources_3.6.1.R36x_v20110131-1630.jar

Our product is an Eclipse IDE implementation.  When certain projects are imported to the workspace, the user sometimes receives errors in a dialog about encoding changes.  Below is the exception:

!MESSAGE An internal error occurred during: "Reporting encoding changes.".
!STACK 0
org.eclipse.core.runtime.AssertionFailedException: assertion failed: 
	at org.eclipse.core.runtime.Assert.isTrue(Assert.java:110)
	at org.eclipse.core.runtime.Assert.isTrue(Assert.java:96)
	at org.eclipse.core.internal.watson.ElementTree.openElementData(ElementTree.java:640)
	at org.eclipse.core.internal.resources.Workspace.getResourceInfo(Workspace.java:1410)
	at org.eclipse.core.internal.resources.CharsetDeltaJob$3.visitElement(CharsetDeltaJob.java:121)
	at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82)
	at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:86)
	at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:86)
	at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:86)
	at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:127)
	at org.eclipse.core.internal.resources.CharsetDeltaJob.processNextEvent(CharsetDeltaJob.java:129)
	at org.eclipse.core.internal.resources.CharsetDeltaJob.run(CharsetDeltaJob.java:157)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

I found this defect:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=98034
but the stack looks a little different and was fixed a long time ago.  We do seem to be hitting on something similar though.  Perhaps the CharsetDeltaJob doesn't have the proper scheduling rule?  Is it possible that another job doesn't have the correct scheduling rule?  I'm not ruling out issues with our product code, but I'd like to know under which circumstances the above error are likely to occur.

Reproducible: Sometimes
Comment 1 Lars Vogel CLA 2019-11-14 03:46:42 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

If the bug is still relevant, please remove the "stalebug" whiteboard tag.