[GRADLE-915] gradle --dependencies loops forever when there is a cycle in the dependency graph Created: 19/Apr/10  Updated: 04/Jan/13  Resolved: 21/Aug/11

Status: Resolved
Project: Gradle
Affects Version/s: 0.9.1
Fix Version/s: 1.0-milestone-5

Type: Bug
Reporter: Adam Murdoch Assignee: Luke Daley
Resolution: Fixed Votes: 1

Attachments: File build.gradle    

 Comments   
Comment by Joern Huxhorn [ 10/Aug/11 ]

Simple example file to reproduce this issue.

Just adding org.apache.xmlgraphics:fop:1.0 as a dependency is enough to trigger this problem.

Comment by Joern Huxhorn [ 10/Aug/11 ]

This is still an issue in 1.0-m4

The exception thrown by 'gradle dependencies' looks like this:

* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':dependencies'.
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:71)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:48)
	at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:34)
	at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:55)
	at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:57)
	at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:41)
	at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:51)
	at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:52)
	at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:42)
	at org.gradle.api.internal.AbstractTask.execute(AbstractTask.java:237)
	at org.gradle.execution.DefaultTaskGraphExecuter.executeTask(DefaultTaskGraphExecuter.java:167)
	at org.gradle.execution.DefaultTaskGraphExecuter.doExecute(DefaultTaskGraphExecuter.java:160)
	at org.gradle.execution.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:78)
	at org.gradle.execution.TaskNameResolvingBuildExecuter.execute(TaskNameResolvingBuildExecuter.java:113)
	at org.gradle.execution.DelegatingBuildExecuter.execute(DelegatingBuildExecuter.java:54)
	at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:155)
	at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:109)
	at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:77)
	at org.gradle.launcher.RunBuildAction.execute(RunBuildAction.java:41)
	at org.gradle.launcher.RunBuildAction.execute(RunBuildAction.java:27)
	at org.gradle.launcher.ExceptionReportingAction.execute(ExceptionReportingAction.java:32)
	at org.gradle.launcher.ExceptionReportingAction.execute(ExceptionReportingAction.java:21)
	at org.gradle.launcher.CommandLineActionFactory$WithLoggingAction.execute(CommandLineActionFactory.java:219)
	at org.gradle.launcher.CommandLineActionFactory$WithLoggingAction.execute(CommandLineActionFactory.java:203)
	at org.gradle.launcher.Main.execute(Main.java:55)
	at org.gradle.launcher.Main.main(Main.java:40)
	at org.gradle.launcher.ProcessBootstrap.runNoExit(ProcessBootstrap.java:49)
	at org.gradle.launcher.ProcessBootstrap.run(ProcessBootstrap.java:31)
	at org.gradle.launcher.GradleMain.main(GradleMain.java:24)
Caused by: java.lang.StackOverflowError
	at org.gradle.messaging.dispatch.ExceptionTrackingFailureHandler.dispatchFailed(ExceptionTrackingFailureHandler.java:34)
	at org.gradle.messaging.dispatch.BroadcastDispatch.dispatch(BroadcastDispatch.java:90)
	at org.gradle.messaging.dispatch.BroadcastDispatch.dispatch(BroadcastDispatch.java:32)
	at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:75)
	at $Proxy0.onOutput(Unknown Source)
	at org.gradle.logging.internal.OutputEventRenderer.onOutput(OutputEventRenderer.java:168)
	at org.gradle.logging.internal.TextStreamOutputEventListener.onTextEvent(TextStreamOutputEventListener.java:52)
	at org.gradle.logging.internal.TextStreamOutputEventListener.onOutput(TextStreamOutputEventListener.java:36)
	at org.gradle.logging.internal.LoggingBackedStyledTextOutput$LogAction.execute(LoggingBackedStyledTextOutput.java:96)
	at org.gradle.logging.internal.LoggingBackedStyledTextOutput$LogAction.execute(LoggingBackedStyledTextOutput.java:61)
	at org.gradle.util.LineBufferingOutputStream$StringOutput.write(LineBufferingOutputStream.java:147)
	at org.gradle.util.LineBufferingOutputStream.flush(LineBufferingOutputStream.java:120)
	at org.gradle.util.LineBufferingOutputStream.write(LineBufferingOutputStream.java:92)
	at org.gradle.logging.internal.LoggingBackedStyledTextOutput.doAppend(LoggingBackedStyledTextOutput.java:55)
	at org.gradle.logging.internal.AbstractStyledTextOutput.text(AbstractStyledTextOutput.java:70)
	at org.gradle.logging.internal.AbstractStyledTextOutput.println(AbstractStyledTextOutput.java:65)
	at org.gradle.api.tasks.diagnostics.internal.GraphRenderer.visit(GraphRenderer.java:42)
	at org.gradle.api.tasks.diagnostics.internal.AsciiReportRenderer.render(AsciiReportRenderer.java:86)
	at org.gradle.api.tasks.diagnostics.internal.AsciiReportRenderer.renderChildren(AsciiReportRenderer.java:100)
	at org.gradle.api.tasks.diagnostics.internal.AsciiReportRenderer.render(AsciiReportRenderer.java:92)
	at org.gradle.api.tasks.diagnostics.internal.AsciiReportRenderer.renderChildren(AsciiReportRenderer.java:100)
	at org.gradle.api.tasks.diagnostics.internal.AsciiReportRenderer.render(AsciiReportRenderer.java:92)
	at org.gradle.api.tasks.diagnostics.internal.AsciiReportRenderer.renderChildren(AsciiReportRenderer.java:100)
	at org.gradle.api.tasks.diagnostics.internal.AsciiReportRenderer.render(AsciiReportRenderer.java:92)
	at org.gradle.api.tasks.diagnostics.internal.AsciiReportRenderer.renderChildren(AsciiReportRenderer.java:100)
	at org.gradle.api.tasks.diagnostics.internal.AsciiReportRenderer.render(AsciiReportRenderer.java:92)
Generated at Wed Jun 30 11:42:12 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.