-
Notifications
You must be signed in to change notification settings - Fork 1
ConcurrentModificationException, not sure how to replicate #1144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Ran into this as well : All I did was open https://github.com/eclipse/lemminx with vscode-java in a workspace that was clean and as the import/build was occuring, I would switch between stacktrace1
stacktrace2
|
I can see it also relatively often (a few times a day when running an IDE using a launch config). Overally, the JavacFileManager isn't really concurrent-friendly. We may need to put some extra synchronization here and there in our custom filemanager. I suspect this is not the first occurrence of the problem. NetBeans or IntelliJ probably got the same and I'm wondering whether there could be a pre-existing JavacFileManager (with jar caching and so on) we could reuse somewhere... |
java.util.ConcurrentModificationException
at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1230)
at jdk.compiler/com.sun.tools.javac.file.JavacFileManager.pathsAndContainers(JavacFileManager.java:1021)
at jdk.compiler/com.sun.tools.javac.file.JavacFileManager.list(JavacFileManager.java:777)
at jdk.compiler/com.sun.tools.javac.platform.JDKPlatformProvider$PlatformDescriptionImpl$1.list(JDKPlatformProvider.java:188)
at java.compiler@23-ea/javax.tools.ForwardingJavaFileManager.list(ForwardingJavaFileManager.java:82)
at org.eclipse.jdt.internal.javac.CachingJDKPlatformArguments$1$1.list(CachingJDKPlatformArguments.java:123)
at jdk.compiler/com.sun.tools.javac.main.DelegatingJavaFileManager.list(DelegatingJavaFileManager.java:83)
at jdk.compiler/com.sun.tools.javac.code.ClassFinder.list(ClassFinder.java:749)
at jdk.compiler/com.sun.tools.javac.code.ClassFinder.scanModulePaths(ClassFinder.java:621)
at jdk.compiler/com.sun.tools.javac.code.ClassFinder.fillIn(ClassFinder.java:569)
at jdk.compiler/com.sun.tools.javac.code.ClassFinder.complete(ClassFinder.java:311)
at jdk.compiler/com.sun.tools.javac.code.Symbol.complete(Symbol.java:687)
at jdk.compiler/com.sun.tools.javac.code.Symbol$PackageSymbol.members(Symbol.java:1183)
at jdk.compiler/com.sun.tools.javac.comp.TypeEnter$ImportsPhase.implicitImports(TypeEnter.java:329)
at jdk.compiler/com.sun.tools.javac.comp.TypeEnter$ImportsPhase.resolveImports(TypeEnter.java:381)
at jdk.compiler/com.sun.tools.javac.comp.TypeEnter$ImportsPhase.runPhase(TypeEnter.java:318)
at jdk.compiler/com.sun.tools.javac.comp.TypeEnter$Phase.doCompleteEnvs(TypeEnter.java:279)
at jdk.compiler/com.sun.tools.javac.comp.TypeEnter$Phase.completeEnvs(TypeEnter.java:248)
at jdk.compiler/com.sun.tools.javac.comp.TypeEnter.complete(TypeEnter.java:195)
at jdk.compiler/com.sun.tools.javac.code.Symbol.complete(Symbol.java:687)
at jdk.compiler/com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1455)
at jdk.compiler/com.sun.tools.javac.comp.Enter.complete(Enter.java:632)
at jdk.compiler/com.sun.tools.javac.comp.Enter.main(Enter.java:599)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:1077)
at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.enter(JavacTaskImpl.java:345)
at org.eclipse.jdt.core.dom.JavacBindingResolver.resolve(JavacBindingResolver.java:465)
at org.eclipse.jdt.core.dom.JavacBindingResolver.resolvePackage(JavacBindingResolver.java:1236)
at org.eclipse.jdt.core.dom.PackageDeclaration.resolveBinding(PackageDeclaration.java:323)
at org.eclipse.jdt.core.dom.JavacCompilationUnitResolver.resolveBindings(JavacCompilationUnitResolver.java:461)
at org.eclipse.jdt.core.dom.JavacCompilationUnitResolver.resolveBindings(JavacCompilationUnitResolver.java:455)
at org.eclipse.jdt.core.dom.JavacCompilationUnitResolver.toCompilationUnit(JavacCompilationUnitResolver.java:548)
at org.eclipse.jdt.core.dom.ASTParser.internalCreateASTCached(ASTParser.java:1381)
at org.eclipse.jdt.core.dom.ASTParser.lambda$1(ASTParser.java:1260)
at org.eclipse.jdt.internal.core.JavaModelManager.cacheZipFiles(JavaModelManager.java:5708)
at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1260)
at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:915)
at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:294)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:47)
at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:286)
at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:199)
at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:189)
at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:189)
at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:167)
at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.lambda$0(SelectionListenerWithASTManager.java:149)
at org.eclipse.jdt.internal.core.JavaModelManager.cacheZipFiles(JavaModelManager.java:5708)
at org.eclipse.jdt.internal.core.JavaModelManager.callReadOnly(JavaModelManager.java:5697)
at org.eclipse.jdt.core.JavaCore.callReadOnly(JavaCore.java:6150)
at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:149)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
The text was updated successfully, but these errors were encountered: