Project: aptanastudio
Issue APSTUD-4774: Deadlock in creating new Ruble project
# Open Titanium Studio # Create a new Ruby Project, choosing to use the Ruble template. # On "Finish" Studio deadlocks. # No files were created On a subsequent run, I was not able to replicate the issue, so it must be one of timing. {code} Found one Java-level deadlock: ============================= "Worker-25": waiting to lock monitor 0000000001203ebc (object 0000000006e80160, a org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader), which is held by "ModalContext" "ModalContext": waiting to lock monitor 00000000012034f8 (object 0000000006e80078, a org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader), which is held by "Worker-25" Java stack information for the threads listed above: =================================================== "Worker-25": org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoadedClass(ClasspathManager.java:477)	- waiting to lock <0000000006e80160> (a org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader) org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:456) org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216) org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:400) org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:35) org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:473) org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429) org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417) org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107) java.lang.ClassLoader.loadClass(ClassLoader.java:247) com.aptana.editor.css.preferences.PreferenceInitializer.initializeDefaultPreferences(PreferenceInitializer.java:48) org.eclipse.core.internal.preferences.PreferenceServiceRegistryHelper$1.run(PreferenceServiceRegistryHelper.java:281) org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) org.eclipse.core.internal.preferences.PreferenceServiceRegistryHelper.runInitializer(PreferenceServiceRegistryHelper.java:284) org.eclipse.core.internal.preferences.PreferenceServiceRegistryHelper.applyRuntimeDefaults(PreferenceServiceRegistryHelper.java:130) org.eclipse.core.internal.preferences.PreferencesService.applyRuntimeDefaults(PreferencesService.java:368) org.eclipse.core.internal.preferences.DefaultPreferences.applyRuntimeDefaults(DefaultPreferences.java:166) org.eclipse.core.internal.preferences.DefaultPreferences.load(DefaultPreferences.java:237) org.eclipse.core.internal.preferences.EclipsePreferences.create(EclipsePreferences.java:387) org.eclipse.core.internal.preferences.EclipsePreferences.internalNode(EclipsePreferences.java:631) org.eclipse.core.internal.preferences.EclipsePreferences.node(EclipsePreferences.java:757) org.eclipse.core.internal.preferences.PreferencesService$5.run(PreferencesService.java:623) org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) org.eclipse.core.internal.preferences.PreferencesService.getNodes(PreferencesService.java:607) org.eclipse.core.internal.preferences.PreferencesService.getDouble(PreferencesService.java:531) com.aptana.editor.common.contentassist.MetadataLoader.versionChanged(MetadataLoader.java:251) com.aptana.editor.common.contentassist.MetadataLoader.run(MetadataLoader.java:182) org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) "ModalContext": org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoadedClass(ClasspathManager.java:477)	- waiting to lock <0000000006e80078> (a org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader) org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:456) org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216) org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:400) org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:476) org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429) org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417) org.eclipse.osgi.internal.loader.buddy.RegisteredPolicy.loadClass(RegisteredPolicy.java:79) org.eclipse.osgi.internal.loader.buddy.PolicyHandler.doBuddyClassLoading(PolicyHandler.java:135) org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501) org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429) org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417) org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107) java.lang.ClassLoader.loadClass(ClassLoader.java:247) org.apache.velocity.runtime.log.CommonsLogLogChute.init(CommonsLogLogChute.java:75) org.apache.velocity.runtime.log.LogManager.createLogChute(LogManager.java:157) org.apache.velocity.runtime.log.LogManager.updateLog(LogManager.java:255) org.apache.velocity.runtime.RuntimeInstance.initializeLog(RuntimeInstance.java:795) org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:250)	- locked <0000000006e828d8> (a org.apache.velocity.runtime.RuntimeInstance) org.apache.velocity.runtime.RuntimeSingleton.init(RuntimeSingleton.java:114)	- locked <000000004a5de5e8> (a java.lang.Class for org.apache.velocity.runtime.RuntimeSingleton) org.apache.velocity.app.Velocity.init(Velocity.java:79) com.aptana.projects.internal.wizards.AbstractNewProjectWizard.applyTemplateVariables(AbstractNewProjectWizard.java:781) com.aptana.projects.internal.wizards.AbstractNewProjectWizard.getInputStream(AbstractNewProjectWizard.java:736) com.aptana.projects.internal.wizards.AbstractNewProjectWizard.extractZip(AbstractNewProjectWizard.java:621) com.aptana.projects.internal.wizards.AbstractNewProjectWizard.extractZip(AbstractNewProjectWizard.java:538) com.aptana.projects.internal.wizards.AbstractNewProjectWizard.createNewProject(AbstractNewProjectWizard.java:426) com.aptana.projects.internal.wizards.AbstractNewProjectWizard$1.run(AbstractNewProjectWizard.java:256) org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) {code}
Story points: 13