Gradle task failed

Status
Can not reproduce
Type
Product/platform
MCreator/Windows
Priority
Normal
Issue description

I keep getting this error every time i try to install or reinstall mcreator. By the time the program opens up after installation and starts downloading the components it needs, a window would pop up saying "Gradle task failed" and that it was unable to detect the reason for the error. 

 

I pasted the error log below. If anyone can help me that would greatly appreciated.

 

   
Executing gradle command: cleanCache clean setupDecompWorkspace --refresh-dependencies
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
C:\Pylo\MCreator179>cd forge
C:\Pylo\MCreator179\forge>SET "JAVA_HOME=C:\Pylo\MCreator179\jdk\"
C:\Pylo\MCreator179\forge>SET JAVA_EXE=%JAVA_HOME%\bin\java.exe
C:\Pylo\MCreator179\forge>SET PATH=%JAVA_HOME%\bin\;%PATH%
C:\Pylo\MCreator179\forge>SET "GRADLE_USER_HOME=C:\Users\Kelly\.mcreator\gradle"
C:\Pylo\MCreator179\forge>gradlew -Dorg.gradle.daemon=false -Dorg.gradle.parallel=false -Dorg.gradle.jvmargs="-Xms625m -Xmx2048m" cleanCache clean setupDecompWorkspace --refresh-dependencies 
This mapping 'snapshot_20171003' was designed for MC 1.12! Use at your own peril.
#################################################
         ForgeGradle 2.3-SNAPSHOT-ee3e3df        
  https://github.com/MinecraftForge/ForgeGradle  
#################################################
                 Powered by MCP                  
             http://modcoderpack.com             
     by: Searge, ProfMobius, R4wk, ZeuX          
     Fesh0r, IngisKahn, bspkrs, LexManos         
#################################################
:cleanCache
:clean UP-TO-DATE
:deobfCompileDummyTask
:deobfProvidedDummyTask
:getVersionJson
:extractUserdev
:extractDependencyATs SKIPPED
:extractMcpData
:extractMcpMappings
:genSrgs
:downloadClient
:downloadServer
:splitServerJar
:mergeJars
:deobfMcSRG
Applying SpecialSource...
Applying Exceptor...
Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded
   at java.util.Arrays.copyOf(Arrays.java:3181)
   at java.util.ArrayList.grow(ArrayList.java:265)
   at java.util.ArrayList.ensureExplicitCapacity(ArrayList.java:239)
   at java.util.ArrayList.ensureCapacityInternal(ArrayList.java:231)
   at java.util.ArrayList.add(ArrayList.java:462)
   at org.jetbrains.java.decompiler.struct.gen.generics.GenericMain.parseMethodSignature(GenericMain.java:97)
   at org.jetbrains.java.decompiler.struct.StructMethod.readAttribute(StructMethod.java:114)
   at org.jetbrains.java.decompiler.struct.StructMember.readAttributes(StructMember.java:65)
   at org.jetbrains.java.decompiler.struct.StructMethod.(StructMethod.java:79)
   at org.jetbrains.java.decompiler.struct.StructClass.(StructClass.java:113)
   at org.jetbrains.java.decompiler.struct.StructClass.(StructClass.java:72)
   at org.jetbrains.java.decompiler.struct.StructContext.addArchive(StructContext.java:162)
   at org.jetbrains.java.decompiler.struct.StructContext.addSpace(StructContext.java:101)
   at org.jetbrains.java.decompiler.struct.StructContext.addSpace(StructContext.java:79)
   at org.jetbrains.java.decompiler.main.decompiler.BaseDecompiler.addSpace(BaseDecompiler.java:36)
   at net.minecraftforge.gradle.tasks.fernflower.FernFlowerInvoker.runFernFlower(FernFlowerInvoker.java:68)
   at net.minecraftforge.gradle.tasks.fernflower.FernFlowerInvoker.main(FernFlowerInvoker.java:41)
Picked up _JAVA_OPTIONS: -Xmx1000M
:decompileMc FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':decompileMc'.
> Process 'command 'C:\Pylo\MCreator179\jdk\bin\java.exe'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 7 mins 4.011 secs
Picked up _JAVA_OPTIONS: -Xmx1000M
C:\Pylo\MCreator179\forge>
Task completed with return code 0 in 425905 milliseconds

Issue comments

I have this problem too I think:

   
Executing gradle command: cleanCache clean setupDecompWorkspace --refresh-dependencies
Microsoft Windows [version 10.0.17134.165]
(c) 2018 Microsoft Corporation. Tous droits r‚serv‚s.
C:\Pylo\MCreator179>cd forge
C:\Pylo\MCreator179\forge>SET "JAVA_HOME=C:\Pylo\MCreator179\jdk\"
C:\Pylo\MCreator179\forge>SET JAVA_EXE=%JAVA_HOME%\bin\java.exe
C:\Pylo\MCreator179\forge>SET PATH=%JAVA_HOME%\bin\;%PATH%
C:\Pylo\MCreator179\forge>SET "GRADLE_USER_HOME=C:\Users\Hugo Tricoire\.mcreator\gradle"
C:\Pylo\MCreator179\forge>gradlew -Dorg.gradle.daemon=false -Dorg.gradle.parallel=false -Dorg.gradle.jvmargs="-Xms625m -Xmx2048m" cleanCache clean setupDecompWorkspace --refresh-dependencies 
This mapping 'snapshot_20171003' was designed for MC 1.12! Use at your own peril.
#################################################
         ForgeGradle 2.3-SNAPSHOT-ee3e3df        
  https://github.com/MinecraftForge/ForgeGradle  
#################################################
                 Powered by MCP                  
             http://modcoderpack.com             
     by: Searge, ProfMobius, R4wk, ZeuX          
     Fesh0r, IngisKahn, bspkrs, LexManos         
#################################################
:cleanCache FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':cleanCache'.
> Unable to delete file: C:\Users\Hugo Tricoire\.mcreator\gradle\caches\minecraft\net\minecraftforge\forge\1.12.2-14.23.2.2611\snapshot\20171003\forge-1.12.2-14.23.2.2611-patched.jar
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 1 mins 53.054 secs
C:\Pylo\MCreator179\forge>
Task completed with return code 0 in 121864 milliseconds

it still happens to me but is random and nothing reports in the gradle as it says gradle failed and reports the error on screen. 

Just go to C:\Users\Hugo Tricoire\.mcreator\ and delete file [gradle]and go to mcreator and delete gradle 



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.