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

Bug 326684

Summary: SWTException when Subversive UI plugin starts in a worker thread
Product: [Technology] Subversive Reporter: Christian Semrau <eclipse-bugs>
Component: UIAssignee: Igor Burilo <igor.burilo>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: a.gurov
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
log file from workspace metadata none

Description Christian Semrau CLA 2010-09-30 11:06:47 EDT
Build Identifier: M20090917-0800

Sometimes on startup, FlashBuilder 4 stops with a message box pointing to a log file. That log file contains lots of stack traces.


This happens with the standalone FlashBuilder 4 Premium, with Subversive as the only additional feature. Here's the list of installed software:

  Adobe Flash Builder	4.0.0	com.adobe.flexbuilder.standalone.product
    Adobe Flash Builder Localized Standalone Feature	4.0.0.272416	com.adobe.flexbuilder.feature.standalone.nl1.feature.group
    Adobe Flash Builder Standalone Feature	4.0.0.272416	com.adobe.flexbuilder.feature.standalone.feature.group
    Eclipse CVS Client	1.1.101.R35x_v20090811-7E79FEd9KKF5H2YDWFLLBL01A16	org.eclipse.cvs.feature.group
    Eclipse Help System	1.1.1.R35x_v20090811-7e7eFAnFEx2XZoYz0uPgIfwD	org.eclipse.help.feature.group
    Eclipse Platform	3.5.1.R35x_v20090910-9gEeG1_FthkNDSP2odXdThaOu9GFDPn83DGB7	org.eclipse.platform.feature.group
    Eclipse RCP	3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6	org.eclipse.rcp.feature.group
    Equinox p2 Provisioning	1.1.1.R35x_v20090811-7u6FbEFYXk1qWdbS0gnpRg2932	org.eclipse.equinox.p2.user.ui.feature.group

  Subversive SVN Connectors	2.2.2.I20100512-1900	org.polarion.eclipse.team.svn.connector.feature.group
  Subversive SVN Team Provider (Incubation)	0.7.9.I20100512-1900	org.eclipse.team.svn.feature.group
  SVNKit 1.3.2 Implementation (Optional)	2.2.2.I20100512-1900	org.polarion.eclipse.team.svn.connector.svnkit16.feature.group


From the stack traces, it looks like the Subversive UI plugin can't handle being started in a worker thread, so I guess it's a problem not specific to FlashBuilder.


java.lang.ExceptionInInitializerError
	at org.eclipse.team.svn.ui.preferences.SVNTeamPreferences.setDefaultConsoleValues(SVNTeamPreferences.java:460)
	at org.eclipse.team.svn.ui.preferences.SVNTeamPreferences.setDefaultValues(SVNTeamPreferences.java:330)
	at org.eclipse.team.svn.ui.SVNTeamUIPlugin.start(SVNTeamUIPlugin.java:106)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783)
	[...]
	at org.eclipse.team.svn.core.extension.CoreExtensionsManager.loadExtensions(CoreExtensionsManager.java:181)
	[...]
	at org.eclipse.team.svn.core.SVNTeamPlugin.getOptionProvider(SVNTeamPlugin.java:98)
	[...]
	at org.eclipse.team.svn.core.utility.ProgressMonitorUtility$1.run(ProgressMonitorUtility.java:58)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.eclipse.swt.SWTException: Invalid thread access
	[...]
	at org.eclipse.jface.preference.PreferenceConverter.<clinit>(PreferenceConverter.java:84)
	... 42 more


Reproducible: Sometimes
Comment 1 Christian Semrau CLA 2010-09-30 11:09:24 EDT
Created attachment 179966 [details]
log file from workspace metadata

The log file containing one failed and one successful start.
Comment 2 Alexander Gurov CLA 2010-10-31 04:49:34 EDT
Fixed.