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

Bug 448013

Summary: "Invalid thread access" on quickfix and Eclipse freeze
Product: [Tools] Oomph Reporter: Esteban DUGUEPEROUX <esteban.dugueperoux>
Component: Version ManagementAssignee: Project Inbox <oomph-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: major    
Priority: P3    
Version: 1.0.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Esteban DUGUEPEROUX CLA 2014-10-21 03:30:18 EDT
I start my Oomph based Standard Mars M2 Eclipse on my CDO master workspace, 6d04c6655c13af225b32b7e0dcb2a29ae6937d64 commit.
The version management tooling detects one version problem about "org.eclipse.net4j.util" plugin which have its content changed, the release must be changed from 3.4.0 to 3.4.100. Then I apply the quickfix with the MANIFEST.MF opened on the first page.
Here the new "Error Reporting Tool" opens its dialog to report an exception in the error log but my Eclipse is frozen. 

When seeing the content of .metadata/.log I get three time the following exception :

org.eclipse.swt.SWTException: Invalid thread access
	at org.eclipse.swt.SWT.error(SWT.java:4441)
	at org.eclipse.swt.SWT.error(SWT.java:4356)
	at org.eclipse.swt.SWT.error(SWT.java:4327)
	at org.eclipse.swt.widgets.Widget.error(Widget.java:476)
	at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:414)
	at org.eclipse.swt.custom.StyledText.getLinePixel(StyledText.java:4202)
	at org.eclipse.swt.custom.StyledText.handleTextChanging(StyledText.java:6287)
	at org.eclipse.swt.custom.StyledText$6.textChanging(StyledText.java:5638)
	at org.eclipse.jface.text.DefaultDocumentAdapter.fireTextChanging(DefaultDocumentAdapter.java:392)
	at org.eclipse.jface.text.DefaultDocumentAdapter.documentAboutToBeChanged(DefaultDocumentAdapter.java:309)
	at org.eclipse.jface.text.AbstractDocument.fireDocumentAboutToBeChanged(AbstractDocument.java:656)
	at org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1182)
	at org.eclipse.core.internal.filebuffers.SynchronizableDocument.replace(SynchronizableDocument.java:194)
	at org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1210)
	at org.eclipse.core.internal.filebuffers.SynchronizableDocument.replace(SynchronizableDocument.java:180)
	at org.eclipse.oomph.version.ui.quickfixes.ReplaceResolution.apply(ReplaceResolution.java:119)
	at org.eclipse.oomph.version.ui.quickfixes.AbstractDocumentResolution.apply(AbstractDocumentResolution.java:44)
	at org.eclipse.oomph.version.ui.quickfixes.AbstractResolution.run(AbstractResolution.java:125)
	at org.eclipse.ui.views.markers.WorkbenchMarkerResolution.run(WorkbenchMarkerResolution.java:48)
	at org.eclipse.oomph.version.ui.quickfixes.AbstractResolution.access$0(AbstractResolution.java:1)
	at org.eclipse.oomph.version.ui.quickfixes.AbstractResolution$1$1.run(AbstractResolution.java:107)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2311)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2293)
	at org.eclipse.oomph.version.ui.quickfixes.AbstractResolution$1.run(AbstractResolution.java:103)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Note that I'm using Linux Debian.
Comment 1 Esteban DUGUEPEROUX CLA 2014-10-21 03:33:28 EDT
I get the exception only I applying the quickfix from the problems view, not directly from the editor.
Comment 2 Esteban DUGUEPEROUX CLA 2014-10-21 03:37:37 EDT
I haven't issue when applying quickfix directly from the problems view when it is about feature.xml.
Comment 3 Eike Stepper CLA 2014-10-25 00:28:54 EDT
We've fixed this via bug 447892.

*** This bug has been marked as a duplicate of bug 447892 ***
Comment 4 Eike Stepper CLA 2014-10-25 04:33:44 EDT
Closing.