Bug 561741 - Build freezes and makes Eclipse unresponsive
Summary: Build freezes and makes Eclipse unresponsive
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: m2e (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2020-04-03 11:07 EDT by Martijn Dashorst CLA
Modified: 2021-04-19 13:27 EDT (History)
1 user (show)

See Also:


Attachments
JFR dump of Eclipse hanging on 77% of building a submodule (3.00 MB, application/octet-stream)
2020-04-03 11:07 EDT, Martijn Dashorst CLA
no flags Details
First stack dump (89.43 KB, text/plain)
2020-04-03 11:33 EDT, Martijn Dashorst CLA
no flags Details
Second stack dump (88.29 KB, text/plain)
2020-04-03 11:34 EDT, Martijn Dashorst CLA
no flags Details
Third stack dump (88.29 KB, text/plain)
2020-04-03 11:34 EDT, Martijn Dashorst CLA
no flags Details
Fourth stack dump (89.43 KB, text/plain)
2020-04-03 11:34 EDT, Martijn Dashorst CLA
no flags Details
Fifth stack dump (88.29 KB, text/plain)
2020-04-03 11:35 EDT, Martijn Dashorst CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martijn Dashorst CLA 2020-04-03 11:07:40 EDT
Created attachment 282324 [details]
JFR dump of Eclipse hanging on 77% of building a submodule

My Eclipse tried to rebuild my workspace after saving a HTML file, and got to 77% of one of our submodules.

The project is a roughly 1M lines of Java code, Maven based project with 60-70 submodules.

I've attached a JDK Flight Recording of 5 minutes of data capture of the "Profile" settings. This includes 5 stack traces.

The symptom is that the build hangs on 77%. When you open up the dialog for progress, you can't stop the build. Eclipse effectively hangs, even though some UI processing seems to come through.

This is not limited to macOS, as this also apparently happens with the Windows installation of a coworker, anecdotally also at 77%.
Comment 1 Andrey Loskutov CLA 2020-04-03 11:17:28 EDT
Can you please attach jstack dump from the hanging Eclipse? I believe jfr is not available for RHEL.
Comment 2 Andrey Loskutov CLA 2020-04-03 11:18:29 EDT
Also please provide used Eclipse / JDK versions.
Comment 3 Martijn Dashorst CLA 2020-04-03 11:28:24 EDT
OpenJDK 64-Bit Server VM (12.0.1+12) for bsd-amd64 JRE (Zulu12.2+3-CA) (12.0.1+12), built on Apr 10 2019 03:33:25 by "zulu_re" with gcc 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)



Eclipse Platform
Version: 2020-03 (4.15)
Build id: I20200305-0155

  Buildship: Eclipse Plug-ins for Gradle	3.1.3.v20191118-1057	org.eclipse.buildship.feature.group	Eclipse Buildship
  EclEmma Java Code Coverage	3.1.3.202002252234	org.eclipse.eclemma.feature.feature.group	Eclipse EclEmma
  Eclipse Java Development Tools	3.18.300.v20200305-0155	org.eclipse.jdt.feature.group	Eclipse.org
  Eclipse Java Web Developer Tools	3.15.0.v201908261515	org.eclipse.jst.web_ui.feature.feature.group	Eclipse Web Tools Platform
  Eclipse JDT Plug-in Developer Resources	3.18.300.v20200305-0155	org.eclipse.jdt.source.feature.group	Eclipse.org
  Eclipse Platform	4.15.0.I20200305-0155	org.eclipse.platform.ide	Eclipse.org
  Eclipse Web Developer Tools	3.17.0.v202002172151	org.eclipse.wst.web_ui.feature.feature.group	Eclipse Web Tools Platform
  Eclipse XML Editors and Tools	3.17.0.v202001091420	org.eclipse.wst.xml_ui.feature.feature.group	Eclipse Web Tools Platform
  Git integration for Eclipse	5.7.0.202003110725-r	org.eclipse.egit.feature.group	Eclipse EGit
  Git integration for Eclipse - Task focused interface	5.7.0.202003110725-r	org.eclipse.egit.mylyn.feature.group	Eclipse EGit
  Java implementation of Git	5.7.0.202003110725-r	org.eclipse.jgit.feature.group	Eclipse JGit
  JBoss AS, WildFly & EAP Server Tools	3.9.101.v20200320-1930	org.jboss.ide.eclipse.as.feature.feature.group	Red Hat
  JBoss Maven Integration	1.9.3.v20190827-1345	org.jboss.tools.maven.feature.feature.group	Red Hat
  JBoss Tools EGit Integration	3.10.0.v20200315-1233	org.jboss.tools.openshift.egit.integration.feature.feature.group	Red Hat
  JBoss Tools Java Standard Tools	3.9.101.v20190109-0825	org.jboss.tools.jst.feature.feature.group	Red Hat
  JBoss Tools JDT Extensions	3.12.0.v20200122-2145	org.jboss.tools.common.jdt.feature.feature.group	Red Hat
  JBoss Tools Maven Packaging Configurator	1.9.3.v20190827-1345	org.jboss.tools.maven.jbosspackaging.feature.feature.group	Red Hat
  JBoss Tools Maven Source Lookup	1.9.3.v20190827-1345	org.jboss.tools.maven.sourcelookup.feature.feature.group	Red Hat
  JRebel (required)	2020.2.0.RELEASE	org.zeroturnaround.eclipse.feature.feature.group	ZeroTurnaround
  JRebel for Java EE	2020.2.0.RELEASE	org.zeroturnaround.eclipse.wtp.feature.feature.group	ZeroTurnaround
  JRebel Maven support (requires m2eclipse plugin)	2020.2.0.RELEASE	org.zeroturnaround.eclipse.m2e.feature.feature.group	ZeroTurnaround
  m2e - Maven Integration for Eclipse (includes Incubating components)	1.15.0.20200310-1832	org.eclipse.m2e.feature.feature.group	Eclipse.org - m2e
  m2e - slf4j over logback logging (Optional)	1.15.0.20200108-1649	org.eclipse.m2e.logback.feature.feature.group	Eclipse.org - m2e
  m2e connector for antlr	0.15.0.201207090124	org.sonatype.m2e.antlr.feature.feature.group	Sonatype, Inc.
  m2e connector for build-helper-maven-plugin	0.15.0.201405280027	org.sonatype.m2e.buildhelper.feature.feature.group	Sonatype, Inc.
  m2e connector for maven-remote-resources-plugin	0.0.1.201411160138	com.coderplus.m2e.remoteresourcesfeature.feature.group	null
  m2e-wtp - Maven Integration for WTP	1.4.4.20200220-1005	org.eclipse.m2e.wtp.feature.feature.group	Eclipse.org - m2e-wtp
  Marketplace Client	1.8.2.v20200309-0038	org.eclipse.epp.mpc.feature.group	Eclipse Marketplace Client
  Maven Integration for Eclipse JDT APT	1.5.3.201911081053	org.jboss.tools.maven.apt.feature.feature.group	JBoss by Red Hat
  Mylyn Builds Connector: Hudson/Jenkins	1.17.0.v20190115-0250	org.eclipse.mylyn.hudson.feature.group	Eclipse Mylyn
  Mylyn Context Connector: Eclipse IDE	3.25.0.v20180628-1730	org.eclipse.mylyn.ide_feature.feature.group	Eclipse Mylyn
  Mylyn Context Connector: Java Development	3.25.0.v20180628-1730	org.eclipse.mylyn.java_feature.feature.group	Eclipse Mylyn
  Mylyn Task List	3.25.0.v20190128-2356	org.eclipse.mylyn_feature.feature.group	Eclipse Mylyn
  Mylyn Task-Focused Interface	3.25.0.v20180628-1730	org.eclipse.mylyn.context_feature.feature.group	Eclipse Mylyn
  Mylyn Tasks Connector: Bugzilla	3.25.0.v20190128-2356	org.eclipse.mylyn.bugzilla_feature.feature.group	Eclipse Mylyn
  Mylyn Versions Connector: Git	1.17.0.v20180628-1737	org.eclipse.mylyn.git.feature.group	Eclipse Mylyn
  Mylyn WikiText	3.0.36.202002070035	org.eclipse.mylyn.wikitext_feature.feature.group	Eclipse Mylyn
  qwickie	1.1.10.201505151949	qwickie.feature.feature.group	count.negative
  SpotBugs	4.0.0.201904010749-792e955	com.github.spotbugs.plugin.eclipse.feature.group	SpotBugs Project
  Tip of the Day UI Feature	0.2.900.v20200303-0904	org.eclipse.tips.feature.feature.group	Eclipse.org
Comment 4 Martijn Dashorst CLA 2020-04-03 11:30:46 EDT
(In reply to Andrey Loskutov from comment #1)
> Can you please attach jstack dump from the hanging Eclipse? I believe jfr is
> not available for RHEL.

You can open it with e.g. Zulu Mission Control: https://www.azul.com/products/zulu-mission-control/#block-download

I'll also add the stack dumps as comments
Comment 5 Martijn Dashorst CLA 2020-04-03 11:32:54 EDT
Ok, the stack dumps are larger than bugzilla allows, so I'll attach them.
Comment 6 Martijn Dashorst CLA 2020-04-03 11:33:41 EDT
Created attachment 282325 [details]
First stack dump
Comment 7 Martijn Dashorst CLA 2020-04-03 11:34:01 EDT
Created attachment 282326 [details]
Second stack dump
Comment 8 Martijn Dashorst CLA 2020-04-03 11:34:23 EDT
Created attachment 282327 [details]
Third stack dump
Comment 9 Martijn Dashorst CLA 2020-04-03 11:34:40 EDT
Created attachment 282328 [details]
Fourth stack dump
Comment 10 Martijn Dashorst CLA 2020-04-03 11:35:08 EDT
Created attachment 282329 [details]
Fifth stack dump
Comment 11 Andrey Loskutov CLA 2020-04-03 11:43:11 EDT
Probably m2e problem, this thread below blocks all workspace tasks, and UI unfortunately requested lock on workspace for saving the file (but I believe you should see progress dialog where you can cancel the "user waiting task").

Since this is m2e & maven, we should move it to the right product, it's not JDT/Platform.

"Worker-56: Building" #13695 prio=5 os_prio=31 cpu=10144.62ms elapsed=1731.57s tid=0x00007f9092de4000 nid=0x3b91b runnable  [0x000070000ec43000]
   java.lang.Thread.State: RUNNABLE
	at java.lang.Runtime.gc(java.base@12.0.1/Native Method)
	at java.lang.System.gc(java.base@12.0.1/System.java:1803)
	at org.apache.cxf.maven_plugin.AbstractCodegenMoho.execute(AbstractCodegenMoho.java:306)
	at org.apache.cxf.maven_plugin.wsdl2java.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:511)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
	at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:332)
	at org.eclipse.m2e.core.internal.embedder.MavenImpl.lambda$8(MavenImpl.java:1379)
	at org.eclipse.m2e.core.internal.embedder.MavenImpl$$Lambda$861/0x00000008024a2c40.call(Unknown Source)
	at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:179)
	at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:114)
	at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:1378)
	at org.eclipse.m2e.core.project.configurator.MojoExecutionBuildParticipant.build(MojoExecutionBuildParticipant.java:54)
	at org.eclipse.m2e.core.internal.builder.MavenBuilderImpl.build(MavenBuilderImpl.java:135)
	at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:169)
	at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:1)
	at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod.lambda$1(MavenBuilder.java:114)
	at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod$$Lambda$956/0x0000000802720c40.call(Unknown Source)
	at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:179)
	at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:114)
	at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod.lambda$0(MavenBuilder.java:105)
	at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod$$Lambda$946/0x0000000802723440.call(Unknown Source)
	at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:179)
	at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:153)
	at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:101)
	at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod.execute(MavenBuilder.java:88)
	at org.eclipse.m2e.core.internal.builder.MavenBuilder.build(MavenBuilder.java:197)
	at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:832)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:220)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:263)
	at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:316)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:319)
	at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:371)
	at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:392)
	at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:154)
	at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:244)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Comment 12 Mickael Istria CLA 2021-03-30 05:29:28 EDT
Eclipse m2e is moving away from this bugs.eclipse.org issue tracker to https://github.com/eclipse-m2e/m2e-core/issues/ instead. If this issue is relevant to you, your action is required.
0. Verify this issue is still happening with latest Eclipse Platform and m2e release
  if issue has disappeared, please change status of this issue to "CLOSED WORKFORME" with some details about your testing environment and how you did verify the issue; and you're done
  if issue is still present when latest release:
* Create a new issue at https://github.com/eclipse-m2e/m2e-core/issues/
  ** Use as title in GitHub the title of this Bugzilla ticket (may include the bug number or not, at your own convenience)
  ** In the GitHub description, start with a link to this bugzilla ticket
  ** Optionally add new content to the description if it can helps towards resolution
  ** Submit GitHub issue
* Update bugzilla ticket
  ** Add to "See also" property (up right column) the link to the newly created GitHub issue
  ** Add a comment "Migrated to <link-to-newly-created-GitHub-issue>"
  ** Set status as CLOSED MOVED
  ** Submit

All issues that remain open will be automatically closed next week or so. Then the m2e component for m2e will be made read-only.
Comment 13 Mickael Istria CLA 2021-03-30 05:37:42 EDT
Eclipse m2e is moving away from this bugs.eclipse.org issue tracker to https://github.com/eclipse-m2e/m2e-core/issues/ instead. If this issue is relevant to you, your action is required.
0. Verify this issue is still happening with latest Eclipse Platform and m2e release
  if issue has disappeared, please change status of this issue to "CLOSED WORKFORME" with some details about your testing environment and how you did verify the issue; and you're done
  if issue is still present when latest release:
* Create a new issue at https://github.com/eclipse-m2e/m2e-core/issues/
  ** Use as title in GitHub the title of this Bugzilla ticket (may include the bug number or not, at your own convenience)
  ** In the GitHub description, start with a link to this bugzilla ticket
  ** Optionally add new content to the description if it can helps towards resolution
  ** Submit GitHub issue
* Update bugzilla ticket
  ** Add to "See also" property (up right column) the link to the newly created GitHub issue
  ** Add a comment "Migrated to <link-to-newly-created-GitHub-issue>"
  ** Set status as CLOSED MOVED
  ** Submit

All issues that remain open will be automatically closed next week or so. Then the m2e component for m2e will be made read-only.
Comment 14 Denis Roy CLA 2021-04-19 13:27:10 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/