Headless Intellij Inspection stuck
已回答
I run Intellij Inspection on my Jenkins, sadly the IDEA seems to be stuck.
Jenkins & IntelliJ log:
+ /snap/intellij-idea-ultimate/current/bin/inspect.sh /var/lib/jenkins/workspace/nightly_services/pom.xml /var/lib/jenkins/workspace/nightly_services/Project_Default.xml /var/lib/jenkins/workspace/nightly_services/target/idea_inspections -v2 2021-11-16 04:04:20,116 [ 1034] WARN - llij.ide.plugins.PluginManager - id redefinition ([row,col,system-id]: [2,3,"product classpath"]) Starting up IntelliJ IDEA 2021.2.3 (build IU-212.5457.46) ...done. Opening project... 2021-11-16 04:04:36,774 [ 17692] WARN - l.NotificationGroupManagerImpl - Notification group CodeWithMe is already registered (group=com.intellij.notification.NotificationGroup@36ddfeab). Plugin descriptor: PluginDescriptor(name=Code With Me, id=com.jetbrains.codeWithMe, descriptorPath=plugin.xml, path=/snap/intellij-idea-ultimate/326/plugins/cwm-plugin, version=212.5457.46, package=null) + rm -f /var/lib/jenkins/workspace/nightly_services/target/idea_inspections/JpaDataSourceORMInspection.xml + sed -i 's/\$PROJECT_DIR\$\///g' 'target/idea_inspections/*.xml'
2021-11-16 04:04:41,656 [ 22574] INFO - #org.jetbrains.idea.maven - Connecting maven connector in /var/lib/jenkins/workspace/nightly_services
2021-11-16 04:04:42,223 [ 23141] INFO - #org.jetbrains.idea.maven - Sent token to maven server
2021-11-16 04:04:43,730 [ 24648] INFO - leBasedIndexDataInitialization - Index data initialization done: 10010 ms. Initialized indexes: [FilenameIndex, FrameworkDetectionIndex, TodoIndex, IdIndex, filetypes, Stubs, Trigram.Index, fileIncludes, DomFileIndex, RelaxSymbolIndex, XmlTagNames, XmlNamespaces, html5.custom.attributes.index, SchemaTypeInheritance, json.file.root.values, HashFragmentIndex, yaml.keys.name, editorconfig.index.name, xmlProperties, HtmlTagIdIndex, CssIndex, css.template.selectors, CompassFunctionsIndex, bytecodeAnalysis, java.auto.module.name, java.source.module.name, java.null.method.argument, java.fun.expression, java.binary.plus.expression, LombokConfigIndex, ant-imports, protoeditor.java.outer.class.index, XsltSymbolIndex, VtlFileIndex, js.test.names, js.package.index, js.custom.single.entry.index, js.implicit.elements.index, js.string.literal.words.index, TypeScriptExternalPathCandidates, angularjs.template.cache, angularjs.ui.router.views.index, angularjs.app.index, sql.types.count.index, sql.routine.index, com.intellij.uiDesigner.FormClassIndex, http.request.execution.environment, http.request.completion.host, http.request.headers.values.index, java.cucumber.java8.step, JavaFxControllerClassIndex, javafx.id.name, javafx.custom.component, javafx.stylesheets.name, docker.compose.services, groovy.trait.fields, groovy.trait.methods, groovy.cucumber.step, OpenapiSpecificationContentIndexer, IdeaPluginRegistrationIndex, PluginIdModuleIndex, PluginIdDependenciesIndex, devkit.ExtensionPointIndex, devkit.ExtensionPointClassIndex, taglibUris, org.jetbrains.kotlin.idea.versions.KotlinJvmMetadataVersionIndex, org.jetbrains.kotlin.idea.versions.KotlinJsMetadataVersionIndex, org.jetbrains.kotlin.idea.vfilefinder.KotlinClassFileIndex, org.jetbrains.kotlin.idea.vfilefinder.KotlinJavaScriptMetaFileIndex, org.jetbrains.kotlin.idea.vfilefinder.KotlinMetadataFileIndex, org.jetbrains.kotlin.idea.vfilefinder.KotlinMetadataFilePackageIndex, org.jetbrains.kotlin.idea.vfilefinder.KotlinModuleMappingIndex, org.jetbrains.kotlin.idea.vfilefinder.KotlinPackageSourcesMemberNamesIndex, org.jetbrains.kotlin.idea.vfilefinder.KotlinJvmModuleAnnotationsIndex, org.jetbrains.kotlin.idea.vfilefinder.KotlinBuiltInsMetadataIndex, org.jetbrains.kotlin.idea.vfilefinder.KotlinStdlibIndex, org.jetbrains.kotlin.idea.vfilefinder.KlibMetaFileIndex, com.android.tools.idea.model.AndroidManifestIndex$Companion$NAME$1.NAME, BindingXmlIndex, MlModelFileIndex, NavXmlIndex, SpringXmlBeansIndex, spring.spiFileIndex, GspIncludeIndex, FtlFileIndex, FileBasedWSIndex, spring.autoConfigureMetadataIndex].
2021-11-16 04:04:44,522 [ 25440] INFO - exImpl$StubIndexInitialization - Index data initialization done: 791 ms. Initialized stub indexes: {Css.attr, es6.exported.index, angular2.metadata.directive.index, java.method.parameter.types, JS.class.super, org.jetbrains.kotlin.idea.stubindex.KotlinTopLevelTypeAliasByPackageIndex, org.jetbrains.kotlin.idea.stubindex.KotlinTopLevelPropertyByPackageIndex, ts.external.module.index, Css.custom.property, Css.id, org.jetbrains.kotlin.idea.stubindex.KotlinProbablyNothingPropertyShortNameIndex, angularjs.symbol.index, angularjs.module.index, angularjs.filter.index, angularjs.controller.index, org.jetbrains.kotlin.idea.stubindex.KotlinFilePartClassIndex, es6.assignment.index, org.jetbrains.kotlin.idea.stubindex.KotlinProbablyNothingFunctionShortNameIndex, JS.global.qualified.elements, js.global.symbol.index, JS.class.implements, java.module.name, java.class.fqn, js.element.qualifiedName, JS.custom.stub.index, org.jetbrains.kotlin.idea.stubindex.KotlinFileFacadeClassByPackageIndex, org.jetbrains.kotlin.idea.stubindex.KotlinFileFacadeFqNameIndex, js.imported.bindings.index, ts.local.classes, amd.requirePaths.index, java.class.shortname, js.exported.index, java.anonymous.baseref, jvm.static.member.type, jvm.static.member.name, gr.class.fqn, angular2.ivy.directive.index, js.typedef.index2, angularjs.templateUrl.index, js.qualified.shortName, gr.anonymous.class, js.nonglobal.symbol.index, protobuf.byQualifiedName, org.jetbrains.kotlin.idea.stubindex.KotlinExtensionsInObjectsByReceiverTypeIndex, Css.ampersand.selector, Stylus.variables, sql.column.name, org.jetbrains.kotlin.idea.stubindex.KotlinJvmNameAnnotationIndex, org.jetbrains.kotlin.idea.stubindex.KotlinPropertyShortNameIndex, Scss.mixin, angularjs.ui.router.states.index, org.jetbrains.kotlin.idea.stubindex.KotlinTypeAliasShortNameIndex, angularjs.directives.index, Less.mixins, angular2.metadata.function.index, gr.field.name, gr.script.class, angular2.metadata.pipe.index, org.jetbrains.kotlin.idea.stubindex.KotlinClassShortNameIndex, angularjs.delimiter.index, dom.namespaceKey, angular2.source.module.index, org.jetbrains.kotlin.idea.stubindex.KotlinTopLevelClassByPackageIndex, org.jetbrains.kotlin.idea.stubindex.KotlinOverridableInternalMembersShortNameIndex, Scss.variable, js.doc.modules, gr.annot.method.name, angular2.templateUrl.index, angular2.source.pipe.index, Scss.placeholder.selector, js.gcl.modules, js.amd.modules, org.jetbrains.kotlin.idea.stubindex.KotlinTopLevelTypeAliasFqNameIndex, org.jetbrains.kotlin.idea.stubindex.KotlinTopLevelPropertyFqnNameIndex, org.jetbrains.kotlin.idea.stubindex.KotlinTopLevelFunctionFqnNameIndex, markdown.header, org.jetbrains.kotlin.idea.stubindex.KotlinSuperClassIndex, org.jetbrains.kotlin.idea.stubindex.KotlinTopLevelExtensionsByReceiverTypeIndex, js.lazy.packages, Scss.function, sql.table.shortName, JS.base.types.index, org.jetbrains.kotlin.idea.stubindex.KotlinScriptFqnIndex, org.jetbrains.kotlin.idea.stubindex.KotlinMultifileClassPartIndex, java.annotations, org.jetbrains.kotlin.idea.stubindex.KotlinTypeAliasByExpansionShortNameIndex, js.symbol.qualified.names.index, js.generics.index, JS.subclass.stub.index, js.local.namespace.members.index, js.namespace.index, js.class.index2, java.field.name, java.method.name, java.class.extlist, Stylus.mixins, org.jetbrains.kotlin.idea.stubindex.KotlinFileFacadeShortNameIndex, amd.baseUrl.index, properties.index, org.jetbrains.kotlin.idea.stubindex.KotlinAnnotationsIndex, js.symbol.index2, org.jetbrains.kotlin.idea.stubindex.KotlinExactPackagesIndex, protobuf.byShortName, ts.embedded.content.index, angularjs.ui.router.generic.states.index, org.jetbrains.kotlin.idea.stubindex.KotlinFullClassNameIndex, org.jetbrains.kotlin.idea.stubindex.KotlinFunctionShortNameIndex, sql.names, Less.variables, angularjs.directives.doc.index, Css.custom.mixin, Css.class, org.jetbrains.kotlin.idea.stubindex.KotlinTopLevelFunctionByPackageIndex, angularjs.generic.modules.index, angular2.source.directive.index, gr.class.super, dom.elementClass, angular2.ivy.pipe.index, angular2.metadata.module.index, angular2.metadata.node.index, angular2.metadata.className.index, gr.script.fqn, angular2.ivy.module.index, gr.annot.members, gr.method.name, org.jetbrains.kotlin.idea.stubindex.KotlinProbablyContractedFunctionShortNameIndex}.
2021-11-16 04:04:44,657 [ 25575] INFO - #org.jetbrains.idea.maven - Connector in /var/lib/jenkins/workspace/nightly_services has been connected
2021-11-16 04:05:02,393 [ 43311] INFO - intellij.diagnostic.JitWatcher - JIT compilation state checking enabled
2021-11-16 04:05:07,588 [ 48506] INFO - plication.impl.ApplicationImpl - LONG VFS PROCESSING. Topic=BulkFileListener, offender=class com.intellij.openapi.vfs.newvfs.AsyncEventSupport$1, message=before, time=1546ms
2021-11-16 04:05:08,183 [ 49101] INFO - plication.impl.ApplicationImpl - LONG VFS PROCESSING. Topic=BulkFileListener, offender=class com.intellij.openapi.vfs.newvfs.AsyncEventSupport$1, message=after, time=587ms
2021-11-16 09:46:17,795 [20518713] INFO - il.indexing.FileBasedIndexImpl - START INDEX SHUTDOWN
2021-11-16 09:46:18,575 [20519493] INFO - tellij.psi.stubs.StubIndexImpl - StubIndexExtension-s were unloaded
2021-11-16 09:46:18,856 [20519774] INFO - il.indexing.FileBasedIndexImpl - END INDEX SHUTDOWN
2021-11-16 09:46:18,856 [20519774] INFO - newvfs.persistent.PersistentFS - VFS dispose started
2021-11-16 09:46:18,872 [20519790] INFO - newvfs.persistent.PersistentFS - VFS dispose completed
2021-11-16 09:46:18,872 [20519790] INFO - stubs.SerializationManagerImpl - Start shutting down /var/lib/jenkins/.cache/JetBrains/IntelliJIdea2021.2/index/rep.names
2021-11-16 09:46:18,876 [20519794] INFO - stubs.SerializationManagerImpl - Finished shutting down /var/lib/jenkins/.cache/JetBrains/IntelliJIdea2021.2/index/rep.names
2021-11-16 09:46:18,876 [20519794] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE SHUTDOWN ------------------------------------------------------
2021-11-16 09:46:18,928 [20519846] INFO - org.jetbrains.io.BuiltInServer - web server stopped
Note that 2021-11-16 09:46:17,795 was a manual abort. The Inspection seems completely stuck at 2021-11-16 04:05:08,183.
Starting the Jenkins job repeatedly sometimes work and the inspection will run. Any Idea why the Inspection seems to freeze most of the times?
请先登录再写评论。
Please upload the thread dumps at https://uploads.jetbrains.com and provide the upload ID here.
Use jstack to get the dumps of the process that runs the inspections: https://intellij-support.jetbrains.com/hc/en-us/articles/206544899.
Upload id: 2021_11_22_KQG8opUCN97Qhqfz (file: jenkins-dump.txt)
@Lukas Biernat please try latest version from https://www.jetbrains.com/idea/nextversion There were related changes.
If problem remains, please file an issue with idea.log file and jstack thread dump of the IDE process attached. Thank you.