Scala IDE plugin causes hangs even for normal java projects
I have been having some hangs in Eclipse and have tracked them down to the Scala IDE project. When the IDE hangs I have run jstack and got the following output. I am not actively using Scala in my workspace (that I know of), but it still shows up in jstack
"main" prio=10 tid=0x0000000053721800 nid=0x1ba9 runnable [0x000000004144e000]
java.lang.Thread.State: RUNNABLE
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:114)
at java.util.zip.ZipFile.<init>(ZipFile.java:131)
at org.eclipse.jdt.internal.core.JavaModelManager.getZipFile(JavaModelManager.java:2518)
at org.eclipse.jdt.internal.core.JarPackageFragmentRoot.getJar(JarPackageFragmentRoot.java:152)
at org.eclipse.jdt.internal.core.ClassFile.getBytes(ClassFile.java:316)
at scala.tools.eclipse.contribution.weaving.jdt.cfprovider.ClassFileProviderAspect.ajc$around$scala_tools_eclipse_contribution_weaving_jdt_cfprovider_ClassFileProviderAspect$1$9776bbb8(ClassFileProviderAspect.aj:145)
at org.eclipse.jdt.internal.core.JarPackageFragment.computeChildren(JarPackageFragment.java:73)
at org.eclipse.jdt.internal.core.JarPackageFragment.buildStructure(JarPackageFragment.java:54)
at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:258)
at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:515)
at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:252)
at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:238)
at org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaElement.java:193)
at org.eclipse.jdt.internal.core.NameLookup.seekTypesInBinaryPackage(NameLookup.java:1018)
at org.eclipse.jdt.internal.core.NameLookup.seekTypes(NameLookup.java:984)
at org.eclipse.jdt.internal.core.NameLookup.findAllTypes(NameLookup.java:325)
at org.eclipse.jdt.internal.core.NameLookup.seekTypes(NameLookup.java:960)
at org.eclipse.jdt.internal.core.SearchableEnvironment.findTypes(SearchableEnvironment.java:634)
at org.eclipse.jdt.internal.core.SearchableEnvironment.findTypes(SearchableEnvironment.java:467)
at org.eclipse.jdt.internal.core.SearchableEnvironment.findTypes(SearchableEnvironment.java:308)
at org.eclipse.jdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:947)
at org.eclipse.jdt.internal.core.Openable.codeSelect(Openable.java:162)
at org.eclipse.jdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:377)
at org.eclipse.jdt.internal.core.CompilationUnit.codeSelect_aroundBody0(CompilationUnit.java:371)
at org.eclipse.jdt.internal.core.CompilationUnit.codeSelect_aroundBody1$advice(CompilationUnit.java:314)
at org.eclipse.jdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:1)
at org.eclipse.jdt.internal.ui.javaeditor.JavaElementHyperlinkDetector.detectHyperlinks(JavaElementHyperlinkDetector.java:67)
at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80)
at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:276)
- locked <0x00000000ad440688> (a [Lorg.eclipse.jface.text.hyperlink.IHyperlinkDetector;)
at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:452)
"main" prio=10 tid=0x0000000053721800 nid=0x1ba9 runnable [0x000000004144e000]
java.lang.Thread.State: RUNNABLE
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:114)
at java.util.zip.ZipFile.<init>(ZipFile.java:131)
at org.eclipse.jdt.internal.core.JavaModelManager.getZipFile(JavaModelManager.java:2518)
at org.eclipse.jdt.internal.core.JarPackageFragmentRoot.getJar(JarPackageFragmentRoot.java:152)
at org.eclipse.jdt.internal.core.ClassFile.getBytes(ClassFile.java:316)
at scala.tools.eclipse.contribution.weaving.jdt.cfprovider.ClassFileProviderAspect.ajc$around$scala_tools_eclipse_contribution_weaving_jdt_cfprovider_ClassFileProviderAspect$1$9776bbb8(ClassFileProviderAspect.aj:145)
at org.eclipse.jdt.internal.core.JarPackageFragment.computeChildren(JarPackageFragment.java:73)
at org.eclipse.jdt.internal.core.JarPackageFragment.buildStructure(JarPackageFragment.java:54)
at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:258)
at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:515)
at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:252)
at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:238)
at org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaElement.java:193)
at org.eclipse.jdt.internal.core.NameLookup.seekTypesInBinaryPackage(NameLookup.java:1018)
at org.eclipse.jdt.internal.core.NameLookup.seekTypes(NameLookup.java:984)
at org.eclipse.jdt.internal.core.NameLookup.findAllTypes(NameLookup.java:325)
at org.eclipse.jdt.internal.core.NameLookup.seekTypes(NameLookup.java:960)
at org.eclipse.jdt.internal.core.SearchableEnvironment.findTypes(SearchableEnvironment.java:634)
at org.eclipse.jdt.internal.core.SearchableEnvironment.findTypes(SearchableEnvironment.java:467)
at org.eclipse.jdt.internal.core.SearchableEnvironment.findTypes(SearchableEnvironment.java:308)
at org.eclipse.jdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:947)
at org.eclipse.jdt.internal.core.Openable.codeSelect(Openable.java:162)
at org.eclipse.jdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:377)
at org.eclipse.jdt.internal.core.CompilationUnit.codeSelect_aroundBody0(CompilationUnit.java:371)
at org.eclipse.jdt.internal.core.CompilationUnit.codeSelect_aroundBody1$advice(CompilationUnit.java:314)
at org.eclipse.jdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:1)
at org.eclipse.jdt.internal.ui.javaeditor.JavaElementHyperlinkDetector.detectHyperlinks(JavaElementHyperlinkDetector.java:67)
at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80)
at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:276)
- locked <0x00000000ad440688> (a [Lorg.eclipse.jface.text.hyperlink.IHyperlinkDetector;)
at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:452)
Leave a comment
on 2011-02-01 11:15 *
By David Bernard
This issue will not be fixed in master.
There is partial fixe in the wip_exp_backport branch. Can you give it a try ?
There is partial fixe in the wip_exp_backport branch. Can you give it a try ?
on 2011-02-05 10:38 *
By yuri.schimke
Thanks for the fix, I am unlikely to have a chance to test as its a work computer and we have a standardised eclipse installed. As well, I would rather not spend the time building this plugin, as I am not an active user of the Scala IDE at work, I was just getting hit by it being included in the standardised eclipse.
Sorry! I hope the stacktrace gave you enough to go on.
Sorry! I hope the stacktrace gave you enough to go on.
on 2011-02-05 16:16 *
By David Bernard
wip_exp_backport is available like "master" branch from download page (not need to compile)
update-site : http://download.scala-ide.org/nightly-update-wip-exp-backport-2.8.1.final
This version is the future "release".
update-site : http://download.scala-ide.org/nightly-update-wip-exp-backport-2.8.1.final
This version is the future "release".
Updating tickets (#1000199, #1000200, #1000201, #1000204, #1000205, #1000209, #1000210, #1000211, #1000212, #1000215, #1000217, #1000218, #1000220, #1000222, #1000226, #1000227, #1000228, #1000230, #1000231, #1000232, #1000233, #1000235, #1000236, #1000237, #1000239, #1000240, #1000241, #1000242, #1000243, #1000244, #1000248, #1000249, #1000252, #1000253, #1000254, #1000255, #1000256, #1000258, #1000259, #1000032, #1000059, #1000062, #1000163, #1000197, #1000216, #1000221, #1000224, #1000121, #1000175, #1000219, #1000251, #1000069, #1000195, #1000213, #1000223, #1000006, #1000021, #1000038, #1000048, #1000051, #1000052, #1000075, #1000103, #1000109, #1000115, #1000119, #1000156, #1000186, #1000207, #1000238, #1000262, #1000263, #380, #389, #683, #1238, #1331, #1635, #1645, #1715, #1729, #1744, #1783, #1839, #1869, #1885, #1890, #1902, #1918, #1919, #1924, #1925, #1946, #1964, #1991, #2131, #2233, #2342, #2348, #2408)
Hi, I'm having the same problem and it looks like GDT guys too. See:
http://groups.google.com/group/google-web-toolkit-contributors/browse_thread/thread/668646e64f4b4d1d/8ca678559fa8281d?#8ca678559fa8281d
My scala-ide version is 2.0.0.201105131126-beta4-92f1b27, but I had this issue with all versions I tried in the past.
I use Eclipse Java EE IDE for Web Developer Helios Service Release 2 with bunch of additional plugins, including Spring IDE, Hibernate Tools, FindBugs etc.
Any idea when this could be fixed?
Thanks,
Marek
http://groups.google.com/group/google-web-toolkit-contributors/browse_thread/thread/668646e64f4b4d1d/8ca678559fa8281d?#8ca678559fa8281d
My scala-ide version is 2.0.0.201105131126-beta4-92f1b27, but I had this issue with all versions I tried in the past.
I use Eclipse Java EE IDE for Web Developer Helios Service Release 2 with bunch of additional plugins, including Spring IDE, Hibernate Tools, FindBugs etc.
Any idea when this could be fixed?
Thanks,
Marek
(In revision:e35df9d23870f3a93686d812aafc2931ab44e04c) Don't read classfile bytes if the classfile is not part of a Scala project. This may cause large delays when the class files are on a network mounted file system.
Fixed #1000742, Fixed #1000233, Fixed #1000643.
Branch: issue/plugin-reading-jars-unnecessarily-1000742
Fixed #1000742, Fixed #1000233, Fixed #1000643.
Branch: issue/plugin-reading-jars-unnecessarily-1000742
on 2011-11-10 15:07 *
By Iulian Dragos
(In revision:e35df9d23870f3a93686d812aafc2931ab44e04c) Don't read classfile bytes if the classfile is not part of a Scala project. This may cause large delays when the class files are on a network mounted file system.
Fixed #1000742, Fixed #1000233, Fixed #1000643.
Branch: master
Fixed #1000742, Fixed #1000233, Fixed #1000643.
Branch: master
on 2011-11-10 15:09 *
By Iulian Dragos
(In revision:726dd67b1e9cc6e4a7d3808eb14360c041fc297a) Don't read classfile bytes if the classfile is not part of a Scala project. This may cause large delays when the class files are on a network mounted file system.
Fixed #1000742, Fixed #1000233, Fixed #1000643.
(cherry picked from commit e35df9d23870f3a93686d812aafc2931ab44e04c)
Branch: release/scala-ide-2.0.x
Fixed #1000742, Fixed #1000233, Fixed #1000643.
(cherry picked from commit e35df9d23870f3a93686d812aafc2931ab44e04c)
Branch: release/scala-ide-2.0.x
on 2011-11-13 08:44 *
By Iulian Dragos
(In revision:e35df9d23870f3a93686d812aafc2931ab44e04c) Don't read classfile bytes if the classfile is not part of a Scala project. This may cause large delays when the class files are on a network mounted file system.
Fixed #1000742, Fixed #1000233, Fixed #1000643.
Branch: platform/indigo-3.7
Fixed #1000742, Fixed #1000233, Fixed #1000643.
Branch: platform/indigo-3.7
on 2011-11-21 07:01 *
By Iulian Dragos
(In revision:fb5cd1d83edd9c5d619ccf00c968ae45b2658efd) Don't read classfile bytes if the classfile is not part of a Scala project. This may cause large delays when the class files are on a network mounted file system.
Fixed #1000742, Fixed #1000233, Fixed #1000643.
(cherry picked from commit e35df9d23870f3a93686d812aafc2931ab44e04c)
(cherry picked from commit 726dd67b1e9cc6e4a7d3808eb14360c041fc297a)
Branch: release/scala-ide-2.0.0
Fixed #1000742, Fixed #1000233, Fixed #1000643.
(cherry picked from commit e35df9d23870f3a93686d812aafc2931ab44e04c)
(cherry picked from commit 726dd67b1e9cc6e4a7d3808eb14360c041fc297a)
Branch: release/scala-ide-2.0.0